]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Toolbars.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / Toolbars.h
index dbaf3aaa21246dc93663276cb5b55b8513e20a25..a4acb419cb2d3f4990826c6f8cfa0e54f18b99fa 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <vector>
 #include <map>
+#include <memory>
 
 
 namespace lyx {
@@ -43,7 +44,9 @@ public:
                /// a button that expands a menu but remembers the last choice
                STICKYPOPUPMENU,
                ///
-               ICONPALETTE
+               ICONPALETTE,
+               ///
+               DYNAMICMENU
        };
 
        ToolbarItem(Type type,
@@ -57,7 +60,7 @@ public:
        /// item type
        Type type_;
        /// action
-       FuncRequest func_;
+       std::shared_ptr<FuncRequest> func_; // non-null
        /// label/tooltip
        docstring label_;
        /// name