#ifndef GUINOMENCL_H
#define GUINOMENCL_H
-#include "GuiDialogView.h"
-#include "ControlCommand.h"
+#include "GuiDialog.h"
#include "ui_NomenclUi.h"
-#include <QDialog>
-
-
namespace lyx {
namespace frontend {
-class GuiNomencl;
-
-class GuiNomenclDialog : public QDialog, public Ui::NomenclUi
+class GuiNomenclature : public GuiCommand, public Ui::NomenclUi
{
Q_OBJECT
-public:
- GuiNomenclDialog(GuiNomencl * form);
- virtual void showView();
-protected Q_SLOTS:
- virtual void change_adaptor();
- virtual void reject();
-protected:
- virtual void closeEvent(QCloseEvent * e);
-private:
- GuiNomencl * form_;
-};
-
-class GuiNomencl : public GuiView<GuiNomenclDialog>
-{
public:
- friend class GuiNomenclDialog;
+ GuiNomenclature(GuiView & lv);
+
+private Q_SLOTS:
+ void change_adaptor();
+ void reject();
- GuiNomencl(GuiDialog &, docstring const & title);
- /// parent controller
- ControlCommand & controller()
- { return static_cast<ControlCommand &>(this->getController()); }
- /// parent controller
- ControlCommand const & controller() const
- { return static_cast<ControlCommand const &>(this->getController()); }
-protected:
- virtual bool isValid();
private:
+ ///
+ void closeEvent(QCloseEvent * e);
+ ///
+ bool isValid();
/// Apply changes
- virtual void applyView();
+ void applyView();
/// update
- virtual void update_contents();
- /// build the dialog
- virtual void build_dialog();
+ void updateContents();
};
} // namespace frontend