X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiIndex.h;h=8a74c8087d981345e66a91130b282f852f7d89cf;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=31929004a9fa2d5f9f2b3fe11d73ba23081e9214;hpb=fc36725282df43059aee9a821f098309ccdbd523;p=lyx.git diff --git a/src/frontends/qt4/GuiIndex.h b/src/frontends/qt4/GuiIndex.h index 31929004a9..8a74c8087d 100644 --- a/src/frontends/qt4/GuiIndex.h +++ b/src/frontends/qt4/GuiIndex.h @@ -4,8 +4,9 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author John Levon - * \author Kalle Dalheimer + * \author Angus Leeming + * \author Martin Vermeer + * \author Jürgen Spitzmüller * * Full author contact details are available in file CREDITS. */ @@ -13,56 +14,40 @@ #ifndef GUIINDEX_H #define GUIINDEX_H -#include "GuiDialogView.h" -#include "ControlCommand.h" +#include "GuiDialog.h" #include "ui_IndexUi.h" +#include "insets/InsetIndex.h" -#include namespace lyx { namespace frontend { -class GuiIndex; - -class GuiIndexDialog : public QDialog, public Ui::IndexUi { +class GuiIndex : public GuiDialog, public Ui::IndexUi +{ Q_OBJECT -public: - GuiIndexDialog(GuiIndex * form); - -protected Q_SLOTS: - virtual void change_adaptor(); - virtual void reject(); -protected: - virtual void closeEvent(QCloseEvent * e); -private: - GuiIndex * form_; -}; - -class GuiIndex : public GuiView -{ public: - friend class GuiIndexDialog; + GuiIndex(GuiView & lv); + +private Q_SLOTS: + void change_adaptor(); - GuiIndex(Dialog &, docstring const & title, QString const & label); - /// parent controller - ControlCommand & controller() - { return static_cast(this->getController()); } - /// parent controller - ControlCommand const & controller() const - { return static_cast(this->getController()); } -protected: - virtual bool isValid(); private: - /// Apply changes - virtual void apply(); - /// update - virtual void update_contents(); - /// build the dialog - virtual void build_dialog(); + /// Apply changes + void applyView(); + /// Update dialog before showing it + void updateContents(); + /// + bool initialiseParams(std::string const & data); + /// + void clearParams(); + /// + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } /// - QString const label_; + InsetIndexParams params_; }; } // namespace frontend