]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Toolbars.cpp
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / Toolbars.cpp
index a2f8a0bec7516c5b835fd74baaa4670427ac5d20..bf4617cd5b0d4842d601466178144b9fc4c29b7e 100644 (file)
@@ -74,10 +74,12 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
                TO_EXPORTFORMATS,
                TO_IMPORTFORMATS,
                TO_UPDATEFORMATS,
-               TO_VIEWFORMATS
+               TO_VIEWFORMATS,
+               TO_DYNAMICMENU
        };
 
        struct LexerKeyword toolTags[] = {
+               { "dynamicmenu", TO_DYNAMICMENU},
                { "end", TO_ENDTOOLBAR },
                { "exportformats", TO_EXPORTFORMATS },
                { "iconpalette", TO_ICONPALETTE },
@@ -155,6 +157,16 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
                        }
                        break;
 
+               case TO_DYNAMICMENU: {
+                       if (lex.next(true)) {
+                               string const name = lex.getString();
+                               lex.next(true);
+                               docstring const label = lex.getDocString();
+                               add(ToolbarItem(ToolbarItem::DYNAMICMENU, name, label));
+                       }
+                       break;
+               }
+
                case TO_STICKYPOPUPMENU:
                        if (lex.next(true)) {
                                string const pname = lex.getString();