]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Toolbars.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / Toolbars.h
index 92bd3de78b46e1f1032264c6f7a88538808f5a7e..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
@@ -108,7 +111,11 @@ public:
                TABLE = 256, //< show when in table
                REVIEW = 512, //< show when change tracking is enabled
                MATHMACROTEMPLATE = 1024, //< show in math macro template
-               SAMEROW = 2048 //place to the current row, no new line
+               SAMEROW = 2048, //< place to the current row, no new line
+               IPA = 4096, //< show when in IPA inset
+               MINIBUFFER = 8192, //< show when command-execute has been invoked
+               MINIBUFFER_FOCUS = 16384, //< set focus to minibuffer
+               ALLOWAUTO = MATH | TABLE | REVIEW | MATHMACROTEMPLATE | IPA | MINIBUFFER
        };
 
        typedef std::vector<ToolbarInfo> Infos;