4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
15 #include "frontends/LyXView.h"
16 #include "FuncRequest.h"
18 #include "support/docstring.h"
28 * Action - Qt interface with LyX' FuncRequest.
30 * Action can be used in LyX menubar and/or toolbars.
32 class Action : public QAction {
36 Action(GuiView & lyxView, docstring const & text,
37 FuncRequest const & func, docstring const & tooltip = docstring());
39 Action(GuiView & lyxView, std::string const & icon, docstring const & text,
40 FuncRequest const & func, docstring const & tooltip = docstring());
44 // void setAction(FuncRequest const & func);
47 /// the current action is triggered
48 void triggered(QAction *);
54 FuncRequest const & func_ ;
59 } // namespace frontend