]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Action.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / Action.h
index c037171041212679727556dcb1d799d93a4145e9..79bf2b5ff07676e9d11f8952a6a1a6f29795d369 100644 (file)
 #define ACTION_H
 
 #include "frontends/LyXView.h"
-#include "funcrequest.h"
+#include "FuncRequest.h"
 
 #include "support/docstring.h"
 
 #include <QAction>
 
-//class FuncRequest;
-
-//class string;
-
 namespace lyx {
 namespace frontend {
 
+class GuiViewBase;
+
 /**
  * Action - Qt interface with LyX' FuncRequest.
  *
  * Action can be used in LyX menubar and/or toolbars.
  */
-class Action: public QAction {
+class Action : public QAction {
        Q_OBJECT
 public:
 
-       Action(LyXView & lyxView, lyx::docstring const & text,
-               FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
+       Action(GuiViewBase & lyxView, docstring const & text,
+               FuncRequest const & func, docstring const & tooltip = docstring());
 
-       Action(LyXView & lyxView, std::string const & icon, lyx::docstring const & text,
-               FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
+       Action(GuiViewBase & lyxView, std::string const & icon, docstring const & text,
+               FuncRequest const & func, docstring const & tooltip = docstring());
 
        void update();
 
 //     void setAction(FuncRequest const & func);
 
+Q_SIGNALS:
+       /// the current action is triggered
+       void triggered(QAction *);
+
 private Q_SLOTS:
        void action();
 
 private:
        FuncRequest const & func_ ;
-       //FuncRequest func_ ;
-       LyXView & lyxView_;
+       GuiViewBase & lyxView_;
 };