X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FAction.h;h=11a862b7887f278149638a74d16dac6c5e7bf0fd;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=79bf2b5ff07676e9d11f8952a6a1a6f29795d369;hpb=a1cec91afaca91968b46e695533c10ad2a3f73d3;p=lyx.git diff --git a/src/frontends/qt4/Action.h b/src/frontends/qt4/Action.h index 79bf2b5ff0..11a862b788 100644 --- a/src/frontends/qt4/Action.h +++ b/src/frontends/qt4/Action.h @@ -12,37 +12,33 @@ #ifndef ACTION_H #define ACTION_H -#include "frontends/LyXView.h" -#include "FuncRequest.h" - -#include "support/docstring.h" - #include +class QIcon; + namespace lyx { + +class FuncRequest; + namespace frontend { -class GuiViewBase; +class GuiView; /** * 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(GuiViewBase & lyxView, docstring const & text, - FuncRequest const & func, docstring const & tooltip = docstring()); - Action(GuiViewBase & 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, QObject * parent); void update(); -// void setAction(FuncRequest const & func); - Q_SIGNALS: /// the current action is triggered void triggered(QAction *); @@ -52,7 +48,7 @@ private Q_SLOTS: private: FuncRequest const & func_ ; - GuiViewBase & lyxView_; + GuiView * lyxView_; };