]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiTabular.h
Fix left/right border UI when toggling formal
[lyx.git] / src / frontends / qt4 / GuiTabular.h
index 456d30cac231aaed5a6e1b8a8d57216849ba39fc..f56abdacfbdaa5b02b4e0b6cb7ec8037b58735f5 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "InsetParamsWidget.h"
 #include "ui_TabularUi.h"
+#include "insets/InsetTabular.h"
 
 namespace lyx {
 namespace frontend {
@@ -32,16 +33,25 @@ private Q_SLOTS:
        void checkEnabled();
        void borderSet_clicked();
        void borderUnset_clicked();
+       void booktabs_toggled(bool const check);
+       void nonbooktabs_toggled(bool const check);
+       void on_topspaceCO_activated(int index);
+       void on_bottomspaceCO_activated(int index);
+       void on_interlinespaceCO_activated(int index);
 
 private:
        /// \name InsetParamsWidget inherited methods
        //@{
        InsetCode insetCode() const { return TABULAR_CODE; }
        FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
+       QString dialogTitle() const { return qt_("Tabular Settings"); }
        void paramsToDialog(Inset const *);
        docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
        //@}
 
+       ///
+       void enableWidgets() const;
        ///
        void setHAlign(std::string & param_str) const;
        ///
@@ -50,6 +60,19 @@ private:
        void setTableAlignment(std::string & param_str) const;
        ///
        void setWidthAndAlignment();
+       ///
+       bool funcEnabled(Tabular::Feature f) const;
+       ///
+       GuiSetBorder::BorderState borderState(GuiSetBorder::BorderState bs,
+                                             bool const line);
+       ///
+       bool firstheader_suppressable_;
+       ///
+       bool lastfooter_suppressable_;
+       ///
+       GuiSetBorder::BorderState orig_leftborder_;
+       ///
+       GuiSetBorder::BorderState orig_rightborder_;
 };
 
 } // namespace frontend