X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiIndex.h;h=8a74c8087d981345e66a91130b282f852f7d89cf;hb=b6eacd8d4f86734e8abef3335b190ce12a6a11b5;hp=fdeea347ffacde53b860859b461b8fcfb00da439;hpb=a1cec91afaca91968b46e695533c10ad2a3f73d3;p=lyx.git diff --git a/src/frontends/qt4/GuiIndex.h b/src/frontends/qt4/GuiIndex.h index fdeea347ff..8a74c8087d 100644 --- a/src/frontends/qt4/GuiIndex.h +++ b/src/frontends/qt4/GuiIndex.h @@ -4,65 +4,53 @@ * 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. */ -#ifndef QINDEX_H -#define QINDEX_H +#ifndef GUIINDEX_H +#define GUIINDEX_H -#include "GuiDialogView.h" +#include "GuiDialog.h" #include "ui_IndexUi.h" +#include "insets/InsetIndex.h" -#include -#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 ControlCommand; - -class GuiIndex : - public QController > -{ public: - friend class GuiIndexDialog; + GuiIndex(GuiView & lv); + +private Q_SLOTS: + void change_adaptor(); - GuiIndex(Dialog &, docstring const & title, QString const & label); -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 } // namespace lyx -#endif // QINDEX_H +#endif // GUIINDEX_H