* 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, 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(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