]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiTabular.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiTabular.h
index bd045b4383be368b9f92c4ade71e2c26e4ed0d9b..5890c520660312caad762636456643ba27a242f7 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "InsetParamsWidget.h"
 #include "ui_TabularUi.h"
+#include "insets/InsetTabular.h"
 
 namespace lyx {
 namespace frontend {
@@ -32,16 +33,26 @@ 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);
+       void on_columnTypeCO_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;
        ///
@@ -49,10 +60,22 @@ private:
        ///
        void setTableAlignment(std::string & param_str) const;
        ///
-       bool left_border_set_;
-       bool right_border_set_;
-       bool top_border_set_;
-       bool bottom_border_set_;
+       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_;
+       ///
+       int lastrow_;
 };
 
 } // namespace frontend