X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FToolbarBackend.h;h=8169ea910a9f60d4541cf84c06f1f8a14a025791;hb=8ebf862adbe377d032f888a82d88d4393aebc929;hp=9a84eee9bc0b6a97cf48b1fc485025453bfbd37a;hpb=5a87c5379a9ef54252d873cd66bd6f2e225e7728;p=lyx.git diff --git a/src/ToolbarBackend.h b/src/ToolbarBackend.h index 9a84eee9bc..8169ea910a 100644 --- a/src/ToolbarBackend.h +++ b/src/ToolbarBackend.h @@ -4,21 +4,23 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author unknown + * \author Jean-Marc Lasgouttes + * \author John Levon * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef TOOLBAR_BACKEND_H #define TOOLBAR_BACKEND_H +#include "funcrequest.h" + #include -#include -#include "LString.h" class LyXLex; + /// class ToolbarBackend { public: @@ -33,10 +35,10 @@ public: }; /// action, tooltip - typedef std::pair Item; + typedef std::pair Item; /// the toolbar items - typedef std::vector > Items; + typedef std::vector Items; /// toolbar flags enum Flags { @@ -52,8 +54,10 @@ public: /// a toolbar struct Toolbar { - /// toolbar UI name - string name; + /// toolbar name + std::string name; + /// toolbar GUI name + std::string gui_name; /// toolbar contents Items items; /// flags @@ -82,14 +86,12 @@ public: void readToolbars(LyXLex &); /// return a full path of an XPM for the given action - static string const getIcon(int action); + static std::string const getIcon(FuncRequest const &); private: /// add the given lfun with tooltip if relevant - void add(Toolbar & tb, int, string const & tooltip = string()); - - /// add the given lfun with tooltip if relevant - void add(Toolbar & tb, string const &, string const & tooltip); + void add(Toolbar & tb, FuncRequest const &, + std::string const & tooltip = std::string()); /// all the toolbars Toolbars toolbars;