]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIndex.h
Whitespace.
[lyx.git] / src / frontends / qt4 / GuiIndex.h
index 32d1a27b90fbc1996cf42c57ce37af23544fc634..8a74c8087d981345e66a91130b282f852f7d89cf 100644 (file)
@@ -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.
  */
 
 #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(GuiView & lv, QString 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(GuiView & lv);
-};
-
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams();
+       ///
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
 
-class GuiLabel : public GuiIndexDialogBase
-{
-public:
-       GuiLabel(GuiView & lv);
+       ///
+       InsetIndexParams params_;
 };
 
-
 } // namespace frontend
 } // namespace lyx