* 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 <QDialog>
-#include <QCloseEvent>
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<ControlCommand, GuiView<GuiIndexDialog> >
-{
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