X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FToolbars.h;h=92bd3de78b46e1f1032264c6f7a88538808f5a7e;hb=8b7584846c4e1a9c87a004fab479722fee7e3013;hp=99d12efc53ccbecfcd1bdb2d54c5da1ba50d6f45;hpb=0b5323587fe4bfd1d2c2921a157c1e7bfa9e5659;p=lyx.git diff --git a/src/frontends/qt4/Toolbars.h b/src/frontends/qt4/Toolbars.h index 99d12efc53..92bd3de78b 100644 --- a/src/frontends/qt4/Toolbars.h +++ b/src/frontends/qt4/Toolbars.h @@ -38,8 +38,10 @@ public: LAYOUTS, /// a special widget to insert tabulars TABLEINSERT, - /// + /// a button that expands a menu POPUPMENU, + /// a button that expands a menu but remembers the last choice + STICKYPOPUPMENU, /// ICONPALETTE }; @@ -77,7 +79,7 @@ public: /// toolbar name std::string name; /// toolbar GUI name - std::string gui_name; + docstring gui_name; /// toolbar contents Items items; @@ -105,13 +107,17 @@ public: MATH = 128, //< show when in math TABLE = 256, //< show when in table REVIEW = 512, //< show when change tracking is enabled - MATHMACROTEMPLATE = 1024 //< show in math macro template + MATHMACROTEMPLATE = 1024, //< show in math macro template + SAMEROW = 2048 //place to the current row, no new line }; typedef std::vector Infos; Toolbars() {} + /// + void reset(); + /// iterator for all toolbars Infos::const_iterator begin() const { return toolbar_info_.begin(); } @@ -131,6 +137,8 @@ public: ToolbarInfo const * info(std::string const & name) const; /// int defaultVisibility(std::string const & name) const; + /// + bool isMainToolbar(std::string const & name) const; private: /// all the defined toolbars