X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiIndex.h;h=8a74c8087d981345e66a91130b282f852f7d89cf;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=e6c8445f5a2ea0a764fb7acaf7b706da2ae7d3a5;hpb=022a231f3e31230754094c811fce7c79fcacff36;p=lyx.git diff --git a/src/frontends/qt4/GuiIndex.h b/src/frontends/qt4/GuiIndex.h index e6c8445f5a..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. */ @@ -14,55 +15,41 @@ #define GUIINDEX_H #include "GuiDialog.h" -#include "ControlCommand.h" #include "ui_IndexUi.h" +#include "insets/InsetIndex.h" + namespace lyx { namespace frontend { -class GuiIndexDialogBase : public GuiDialog, public Ui::IndexUi +class GuiIndex : public GuiDialog, public Ui::IndexUi { Q_OBJECT public: - GuiIndexDialogBase(LyXView & lv, docstring const & title, - QString const & label, std::string const & name); + GuiIndex(GuiView & lv); private Q_SLOTS: void change_adaptor(); - void reject(); private: + /// Apply changes + void applyView(); + /// Update dialog before showing it + void updateContents(); /// - void closeEvent(QCloseEvent * e); - /// parent controller - ControlCommand & controller() const; + bool initialiseParams(std::string const & data); /// - bool isValid(); - /// Apply changes - void applyView(); - /// update - void update_contents(); - + void clearParams(); /// - QString label_; -}; - - -class GuiIndexDialog : public GuiIndexDialogBase -{ -public: - GuiIndexDialog(LyXView & lv); -}; - + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } -class GuiLabelDialog : public GuiIndexDialogBase -{ -public: - GuiLabelDialog(LyXView & lv); + /// + InsetIndexParams params_; }; - } // namespace frontend } // namespace lyx