X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiVSpace.h;h=93a6319fe92fc9317657877791ce399bb899d9e6;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=9cc1f74a7a86364ff9be78faf8dda10fe0c3c0b9;hpb=fc36725282df43059aee9a821f098309ccdbd523;p=lyx.git diff --git a/src/frontends/qt4/GuiVSpace.h b/src/frontends/qt4/GuiVSpace.h index 9cc1f74a7a..93a6319fe9 100644 --- a/src/frontends/qt4/GuiVSpace.h +++ b/src/frontends/qt4/GuiVSpace.h @@ -4,69 +4,56 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * \author Angus Leeming - * \author Jürgen Spitzmüller + * \author Jürgen Spitzmüller + * \author Edwin Leuven * * Full author contact details are available in file CREDITS. */ -#ifndef QVSPACE_H -#define QVSPACE_H +#ifndef GUIVSPACE_H +#define GUIVSPACE_H -#include "GuiDialogView.h" -#include "ControlVSpace.h" +#include "GuiDialog.h" #include "ui_VSpaceUi.h" - -#include +#include "VSpace.h" namespace lyx { namespace frontend { -class GuiVSpace; - -class GuiVSpaceDialog : public QDialog, public Ui::VSpaceUi +class GuiVSpace : public GuiDialog, public Ui::VSpaceUi { Q_OBJECT public: - GuiVSpaceDialog(GuiVSpace * form); + GuiVSpace(GuiView & lv); -public Q_SLOTS: +private Q_SLOTS: + /// void change_adaptor(); - -protected Q_SLOTS: - void closeEvent(QCloseEvent *); + /// void enableCustom(int); private: - GuiVSpace * form_; -}; - - -class GuiVSpace : public GuiView -{ -public: - /// - friend class GuiVSpaceDialog; - /// - GuiVSpace(Dialog &); - /// parent controller - ControlVSpace & controller() - { return static_cast(this->getController()); } - /// parent controller - ControlVSpace const & controller() const - { return static_cast(this->getController()); } -private: - /// Build the dialog - virtual void build_dialog(); /// Apply from dialog - virtual void apply(); + void applyView(); /// Update the dialog - virtual void update_contents(); + void updateContents(); + /// + bool initialiseParams(std::string const & data); + /// clean-up on hide. + void clearParams(); + /// clean-up on hide. + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } + + /// + VSpace params_; }; } // namespace frontend } // namespace lyx -#endif //QVSPACE_H +#endif // GUIVSPACE_H