]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Action.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / Action.h
index 090ece3e4e1b479c30d80a778fc552c5dba55c85..7376a433d29ef14de023a6f841a23b2b4c5e7169 100644 (file)
 #ifndef ACTION_H
 #define ACTION_H
 
-#include "frontends/LyXView.h"
-#include "FuncRequest.h"
-
-#include "support/docstring.h"
-
 #include <QAction>
 
+class QIcon;
+
 namespace lyx {
+
+class FuncRequest;
+
 namespace frontend {
 
 class GuiView;
@@ -29,20 +29,16 @@ class GuiView;
  *
  * Action can be used in LyX menubar and/or toolbars.
  */
-class Action : public QAction {
+class Action : public QAction
+{
        Q_OBJECT
-public:
-
-       Action(GuiView & lyxView, docstring const & text,
-               FuncRequest const & func, docstring const & tooltip = docstring());
 
-       Action(GuiView & lyxView, std::string const & icon, docstring const & text,
-               FuncRequest const & func, docstring const & tooltip = docstring());
+public:
+       Action(GuiView & lyxView, QIcon const & icon, QString const & text,
+               FuncRequest const & func, QString const & tooltip);
 
        void update();
 
-//     void setAction(FuncRequest const & func);
-
 Q_SIGNALS:
        /// the current action is triggered
        void triggered(QAction *);