]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiIndex.h
Whitespace.
[lyx.git] / src / frontends / qt4 / GuiIndex.h
index bbfb4ebbd55bd468abb08f2ccc483409df94d472..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.
  */
 #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);
+       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)
-               : GuiIndexDialogBase(lv, _("Index Entry"), qt_("&Keyword:")) 
-       {}
-};
-
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
 
-class GuiLabelDialog : public GuiIndexDialogBase
-{
-public:
-       GuiLabelDialog(LyXView & lv)
-               : GuiIndexDialogBase(lv, _("Label"), qt_("&Label:"))
-       {}
+       ///
+       InsetIndexParams params_;
 };
 
 } // namespace frontend