X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiBox.h;h=813454a4d493598700c3f4e0fc79b5623e7bc5ae;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=badaf7eb5dea5c133c6811ccc1f4e4ba78572b3f;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiBox.h b/src/frontends/qt4/GuiBox.h index badaf7eb5d..813454a4d4 100644 --- a/src/frontends/qt4/GuiBox.h +++ b/src/frontends/qt4/GuiBox.h @@ -4,8 +4,8 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jürgen Spitzmüller - * \ author Martin Vermeer + * \author Jürgen Spitzmüller + * \author Martin Vermeer (with useful hints from Angus Leeming) * * Full author contact details are available in file CREDITS. */ @@ -14,32 +14,28 @@ #define GUIBOX_H #include "GuiDialog.h" -#include "ControlBox.h" #include "ui_BoxUi.h" +#include "insets/InsetBox.h" -#include namespace lyx { namespace frontend { -class GuiBoxDialog : public GuiDialog, public Ui::BoxUi +class GuiBox : public GuiDialog, public Ui::BoxUi { Q_OBJECT public: - GuiBoxDialog(LyXView & lv); + GuiBox(GuiView & lv); private Q_SLOTS: void change_adaptor(); - void innerBoxChanged(const QString &); + void innerBoxChanged(QString const &); void typeChanged(int); void restoreClicked(); + void pagebreakClicked(); private: - void closeEvent(QCloseEvent * e); - - /// parent controller - ControlBox & controller() const; /// add and remove special lengths void setSpecial(bool ibox); /// only show valid inner box items @@ -48,16 +44,28 @@ private: /// Apply changes void applyView(); /// update - void update_contents(); + void updateContents(); + + /// + bool initialiseParams(std::string const & data); + /// + void clearParams(); + /// + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } /// - std::vector ids_; + QStringList ids_; /// - std::vector gui_names_; + QStringList gui_names_; /// - std::vector ids_spec_; + QStringList ids_spec_; + /// + QStringList gui_names_spec_; + /// - std::vector gui_names_spec_; + InsetBoxParams params_; }; } // namespace frontend