]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Action.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / Action.h
index 03a3e0da8d9c471f02b3cf71f2075e3955f5620f..11a862b7887f278149638a74d16dac6c5e7bf0fd 100644 (file)
 #ifndef ACTION_H
 #define ACTION_H
 
-#include "frontends/LyXView.h"
-#include "funcrequest.h"
-
-#include "support/docstring.h"
-
 #include <QAction>
 
-//class FuncRequest;
-
-//class string;
+class QIcon;
 
 namespace lyx {
+
+class FuncRequest;
+
 namespace frontend {
 
 class GuiView;
@@ -33,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, lyx::docstring const & text,
-               FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
 
-       Action(GuiView & lyxView, std::string const & icon, lyx::docstring const & text,
-               FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
+public:
+       Action(GuiView * lyxView, QIcon const & icon, QString const & text,
+               FuncRequest const & func, QString const & tooltip, QObject * parent);
 
        void update();
 
-//     void setAction(FuncRequest const & func);
-
 Q_SIGNALS:
        /// the current action is triggered
        void triggered(QAction *);
@@ -56,7 +48,7 @@ private Q_SLOTS:
 
 private:
        FuncRequest const & func_ ;
-       GuiView & lyxView_;
+       GuiView * lyxView_;
 };