]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiToolbar.h
Make string-widget combination more l7n friendly
[lyx.git] / src / frontends / qt / GuiToolbar.h
index cf269b63fc17d0e0287e1257faa1d6263361fb9b..23ee9610d14b39deeee9e251080fdc3eeecc68c3 100644 (file)
@@ -149,7 +149,7 @@ public:
        bool isRestored() const;
 
        ///
-       bool isVisibiltyOn() const;
+       bool isVisibilityOn() const;
        int visibility() const { return visibility_; }
 
        /// Refresh the contents of the bar.
@@ -169,8 +169,9 @@ public:
        ///
        GuiCommandBuffer * commandBuffer() { return command_buffer_; }
 
-       ///
-       Action * addItem(ToolbarItem const & item);
+       /// add item to toolbar.
+       /// \param menu : when true, the item is for a menu entry, not a button.
+       Action * addItem(ToolbarItem const & item, bool menu = false);
        ///
        GuiView const & owner() { return owner_; }
 
@@ -178,6 +179,9 @@ Q_SIGNALS:
        ///
        void updated();
 
+private Q_SLOTS:
+       void showContextMenu(QPoint pos);
+
 private:
        // load flags with saved values
        void initFlags();