#include "qt_helpers.h"
#include "FuncRequest.h"
-#include <QCloseEvent>
#include <QLineEdit>
#include <QPushButton>
}
-void GuiBibitem::closeEvent(QCloseEvent *e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiBibitem::updateContents()
{
keyED->setText(toqstr(params_["key"]));
private Q_SLOTS:
void change_adaptor();
-private:
- ///
- void closeEvent(QCloseEvent * e);
-
private:
///
bool isValid();
}
-void GuiBibtex::closeEvent(QCloseEvent *e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiBibtex::updateContents()
{
bool bibtopic = usingBibtopic();
void availableChanged();
void bibEDChanged();
-private:
- void closeEvent(QCloseEvent * e);
-
private:
///
bool isValid();
}
-void GuiBox::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiBox::change_adaptor()
{
changed();
void pagebreakClicked();
private:
- ///
- void closeEvent(QCloseEvent * e);
-
/// add and remove special lengths
void setSpecial(bool ibox);
/// only show valid inner box items
}
-void GuiBranch::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiBranch::change_adaptor()
{
changed();
void change_adaptor();
private:
- ///
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView();
/// Update dialog before showing it
}
-void GuiChanges::closeEvent(QCloseEvent *e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiChanges::updateContents()
{
docstring text;
void nextChange();
private:
- void closeEvent(QCloseEvent * e);
+ ///
void updateContents();
/// Nothing to initialise in this case.
}
-void GuiCharacter::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
template<class A, class B>
static int findPos2nd(vector<pair<A, B> > const & vec, B const & val)
{
void change_adaptor();
private:
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView();
/// update
{
clearSelection();
clearParams();
- GuiDialog::closeEvent(e);
+ e->accept();
}
{}
+void GuiDialog::closeEvent(QCloseEvent *e)
+{
+ slotClose();
+ e->accept();
+}
+
+
void GuiDialog::setButtonsValid(bool valid)
{
bc().setValid(valid);
void slotApply();
// Close button clicked or closed from WindowManager
void slotClose();
+ ///
+ void closeEvent(QCloseEvent * e);
public:
/** Check whether we may apply our data.
}
-void GuiDocument::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiDocument::setLSpacing(int item)
{
textLayoutModule->lspacingLE->setEnabled(item == 3);
void classChanged();
void updateModuleInfo();
void updateEmbeddedFileList();
-
-private:
- void closeEvent(QCloseEvent * e);
private:
UiWidget<Ui::TextLayoutUi> *textLayoutModule;
}
-void GuiERT::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiERT::change_adaptor()
{
changed();
void change_adaptor();
private:
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView();
/// update
}
-void GuiErrorList::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiErrorList::showEvent(QShowEvent * e)
{
errorsLW->setCurrentRow(0);
void select(QListWidgetItem *);
private:
- ///
- void closeEvent(QCloseEvent *);
///
void showEvent(QShowEvent *);
/// update contents
}
-void GuiExternal::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiExternal::editClicked()
{
editExternal();
typedef std::map<std::string, QString> MapType;
private:
- void closeEvent(QCloseEvent * e);
- //
+ ///
bool activateAspectratio() const;
/// Apply changes
void applyView();
}
-void GuiFloat::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiFloat::updateContents()
{
floatFP->set(params_);
void change_adaptor();
private:
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView();
/// update
}
-void GuiGraphics::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiGraphics::on_browsePB_clicked()
{
docstring const str = browse(qstring_to_ucs4(filename->text()));
void on_angle_textChanged(const QString &);
private:
- void closeEvent(QCloseEvent * e);
+ ///
bool isValid();
/// Apply changes
void applyView();
}
-void GuiHyperlink::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiHyperlink::updateContents()
{
targetED->setText(toqstr(params_["target"]));
void changed_adaptor();
private:
- void closeEvent(QCloseEvent *);
///
bool isValid();
/// apply dialog
}
-void GuiInclude::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiInclude::typeChanged(int v)
{
switch (v) {
LISTINGS,
};
///
- void closeEvent(QCloseEvent * e);
- ///
void updateLists();
/// validate listings parameters and return an error message, if any
docstring validate_listings_params();
}
-void GuiListings::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiListings::change_adaptor()
{
changed();
/// show dialect when language is chosen
void on_languageCO_currentIndexChanged(int);
private:
- void closeEvent(QCloseEvent * e);
/// return false if validate_listings_params returns error
bool isValid();
/// Apply changes
}
-void GuiLog::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiLog::updateContents()
{
setTitle(toqstr(title()));
void on_copyPB_clicked();
private:
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView() {}
}
-void GuiNomenclature::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiNomenclature::updateContents()
{
prefixED->setText(toqstr(params_["prefix"]));
void reject();
private:
- ///
- void closeEvent(QCloseEvent * e);
///
bool isValid();
/// Apply changes
}
-void GuiNote::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiNote::change_adaptor()
{
changed();
private Q_SLOTS:
void change_adaptor();
private:
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView();
/// Update dialog before showing it
}
-void GuiPreferences::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiPreferences::change_adaptor()
{
changed();
void change_adaptor();
public:
- //
- void closeEvent(QCloseEvent * e);
///
void add(PrefModule * module);
/// Apply changes
{
slotClose();
reset_dialog();
- GuiDialog::closeEvent(e);
+ e->accept();
}
}
-void GuiSearch::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiSearch::findChanged()
{
if (findCO->currentText().isEmpty()) {
private:
void showEvent(QShowEvent * e);
- void closeEvent(QCloseEvent * e);
///
bool initialiseParams(std::string const &) { return true; }
void clearParams() {}
}
-void GuiSendTo::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiSendTo::updateContents()
{
all_formats_ = allFormats();
void slotFormatSelected(QListWidgetItem *) {}
private:
- void closeEvent(QCloseEvent * e);
///
bool isValid();
/// Apply from dialog
}
-void GuiShowFile::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiShowFile::updateContents()
{
setWindowTitle(toqstr(onlyFilename(filename_.absFilename())));
GuiShowFile(GuiView & lv);
private:
- ///
- void closeEvent(QCloseEvent * e);
/// update
void updateContents();
///
}
-void GuiSpellchecker::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiSpellchecker::reject()
{
slotClose();
void reject();
private:
- ///
- void closeEvent(QCloseEvent * e);
/// update from controller
void partialUpdate(int id);
///
}
-void GuiTabular::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiTabular::booktabsChanged(bool)
{
changed();
void ltLastFooterEmpty_clicked();
private:
- ///
- void closeEvent(QCloseEvent * e);
///
bool isValid() { return true; }
/// update borders
}
-void GuiTexInfo::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiTexInfo::rescanClicked()
{
// build new *Files.lst
void enableViewPB();
private:
- ///
- void closeEvent(QCloseEvent * e);
///
void updateStyles(TexFileType);
///
}
-void GuiThesaurus::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiThesaurus::entryChanged()
{
updateLists();
void itemClicked(QTreeWidgetItem *, int);
private:
- void closeEvent(QCloseEvent * e);
/// update
void updateContents();
///
}
-void GuiVSpace::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiVSpace::change_adaptor()
{
changed();
///
void change_adaptor();
///
- void closeEvent(QCloseEvent *);
- ///
void enableCustom(int);
private:
}
-void GuiWrap::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiWrap::change_adaptor()
{
changed();
void change_adaptor();
private:
- void closeEvent(QCloseEvent * e);
/// Apply changes
void applyView();
/// update