]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToolbar.h
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiToolbar.h
index 382440bf90c076301c6844525879318ed96d9d7c..ec0b4cec2872a030bf19567d3fabd432f581a316 100644 (file)
@@ -112,16 +112,32 @@ class GuiToolbar : public QToolBar
 {
        Q_OBJECT
 public:
+       ///
        GuiToolbar(ToolbarInfo const &, GuiView &);
 
+       ///
+       void setVisibility(int visibility);
+
        /// Add a button to the bar.
        void add(ToolbarItem const & item);
-       /** update toolbar information
-       * ToolbarInfo will then be saved by session
-       */
-       void saveInfo(ToolbarSection::ToolbarInfo & info);
+
+       /// Session key.
+       /**
+        * This key must be used for any session setting.
+        **/
+       QString sessionKey() const;
+       /// Save session settings.
+       void saveSession() const;
+       /// Restore session settings.
+       void restoreSession();
+
        /// Refresh the contents of the bar.
-       void updateContents();
+       void update(bool in_math, bool in_table, bool review,
+               bool in_mathmacrotemplate);
+
+       ///
+       void toggle();
+
        ///
        GuiCommandBuffer * commandBuffer() { return command_buffer_; }
 
@@ -133,15 +149,31 @@ Q_SIGNALS:
        void updated();
 
 private:
+       // load flags with saved values
+       void initFlags();
+       ///
+       void fill();
+       ///
+       void showEvent(QShowEvent *);
+
+       ///
+       QString name_;
        ///
        QList<Action *> actions_;
+       /// initial visibility flags
+       int visibility_;
+       ///
+       bool allowauto_;
        ///
        GuiView & owner_;
-
        ///
        GuiLayoutBox * layout_;
        ///
        GuiCommandBuffer * command_buffer_;
+       ///
+       ToolbarInfo const & tbinfo_;
+       ///
+       bool filled_;
 };
 
 } // namespace frontend