X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiTabular.h;h=e546e831ab10868a0f3a0d5c227a2e6a31b326ab;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=41893feda34be95944da80c43c5bae241b45f63c;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiTabular.h b/src/frontends/qt4/GuiTabular.h index 41893feda3..e546e831ab 100644 --- a/src/frontends/qt4/GuiTabular.h +++ b/src/frontends/qt4/GuiTabular.h @@ -6,8 +6,8 @@ * * \author John Levon * \author Kalle Dalheimer - * \author Jürgen Spitzmüller - * \author Herbert Voß + * \author Jürgen Spitzmüller + * \author Herbert Voß * * Full author contact details are available in file CREDITS. */ @@ -16,18 +16,19 @@ #define GUITABULAR_H #include "GuiDialog.h" -#include "ControlTabular.h" #include "ui_TabularUi.h" +#include "insets/InsetTabular.h" namespace lyx { namespace frontend { -class GuiTabularDialog : public GuiDialog, public Ui::TabularUi +class GuiTabular : public GuiDialog, public Ui::TabularUi { Q_OBJECT public: - GuiTabularDialog(LyXView & lv); + GuiTabular(GuiView & lv); + ~GuiTabular(); private Q_SLOTS: void change_adaptor(); @@ -36,50 +37,42 @@ private Q_SLOTS: void bottomspace_changed(); void interlinespace_changed(); void booktabsChanged(bool); - void close_clicked(); void borderSet_clicked(); void borderUnset_clicked(); - void leftBorder_changed(); - void rightBorder_changed(); - void topBorder_changed(); - void bottomBorder_changed(); - void multicolumn_clicked(); - void rotateTabular(); - void rotateCell(); - void hAlign_changed(int align); - void vAlign_changed(int align); - void specialAlignment_changed(); - void width_changed(); - void longTabular(); - void ltNewpage_clicked(); - void ltHeaderStatus_clicked(); - void ltHeaderBorderAbove_clicked(); - void ltHeaderBorderBelow_clicked(); - void ltFirstHeaderStatus_clicked(); - void ltFirstHeaderBorderAbove_clicked(); - void ltFirstHeaderBorderBelow_clicked(); - void ltFirstHeaderEmpty_clicked(); - void ltFooterStatus_clicked(); - void ltFooterBorderAbove_clicked(); - void ltFooterBorderBelow_clicked(); - void ltLastFooterStatus_clicked(); - void ltLastFooterBorderAbove_clicked(); - void ltLastFooterBorderBelow_clicked(); - void ltLastFooterEmpty_clicked(); private: - /// - void closeEvent(QCloseEvent * e); - /// parent controller - ControlTabular & controller() const; /// bool isValid() { return true; } /// update borders void update_borders(); + /// + void applyView(); /// update - void update_contents(); - /// save some values before closing the gui - void closeGUI(); + void updateContents(); + /// + bool initialiseParams(std::string const & data); + /// clean-up on hide. + void clearParams(); + /// We use set() instead. + void dispatchParams() {}; + /// + bool isBufferDependent() const { return true; } + /// + FuncCode getLfun() const { return LFUN_TABULAR_FEATURE; } + + /// + Tabular::idx_type getActiveCell() const; + /// set a parameter + void set(Tabular::Feature, std::string const & arg = std::string()); + + bool funcEnabled(Tabular::Feature f) const; + + /// + Tabular::idx_type active_cell_; + /// + Tabular tabular_; + /// + bool applying_; }; } // namespace frontend