X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiIndex.h;h=8a74c8087d981345e66a91130b282f852f7d89cf;hb=ee7dd4a11ea21851e7e32164c66b37d3bc8ac31d;hp=f354ac2c85fb2151ca20887659538d7795526075;hpb=24b95a387c659c4725dee7a5816f3a8fb16ba1b8;p=lyx.git diff --git a/src/frontends/qt4/GuiIndex.h b/src/frontends/qt4/GuiIndex.h index f354ac2c85..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. */ @@ -15,51 +16,40 @@ #include "GuiDialog.h" #include "ui_IndexUi.h" +#include "insets/InsetIndex.h" + namespace lyx { namespace frontend { -class GuiIndexDialogBase : public GuiCommand, 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: - /// - void closeEvent(QCloseEvent * e); - /// - bool isValid(); - /// Apply changes + /// Apply changes void applyView(); - /// update + /// Update dialog before showing it void updateContents(); - /// - QString label_; -}; - - -class GuiIndex : public GuiIndexDialogBase -{ -public: - GuiIndex(LyXView & lv); -}; - + bool initialiseParams(std::string const & data); + /// + void clearParams(); + /// + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } -class GuiLabel : public GuiIndexDialogBase -{ -public: - GuiLabel(LyXView & lv); + /// + InsetIndexParams params_; }; - } // namespace frontend } // namespace lyx