X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffrontends%2Fqt4%2FGuiNomencl.h;h=c9fa2cb825bebd81ddcdcee8abe187f5f02f7fc4;hb=9d0ea8aeff32833a90b3fe64df0c5518a9e241be;hp=3e78c943fedec5b37498ec0003f2edcd07628d38;hpb=9a95d2a936748c057db94a3083c4b9e6587eea0b;p=lyx.git diff --git a/src/frontends/qt4/GuiNomencl.h b/src/frontends/qt4/GuiNomencl.h index 3e78c943fe..c9fa2cb825 100644 --- a/src/frontends/qt4/GuiNomencl.h +++ b/src/frontends/qt4/GuiNomencl.h @@ -14,55 +14,32 @@ #ifndef GUINOMENCL_H #define GUINOMENCL_H -#include "GuiDialogView.h" -#include "ControlCommand.h" +#include "GuiDialog.h" #include "ui_NomenclUi.h" -#include - - 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 -{ 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(this->getController()); } - /// parent controller - ControlCommand const & controller() const - { return static_cast(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