lyx_mirror/src/frontends/qt4/Action.h
André Pönitz db2c96f511 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20573 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-28 23:14:33 +00:00

57 lines
932 B
C++

// -*- C++ -*-
/**
* \file Action.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef ACTION_H
#define ACTION_H
#include <QAction>
namespace lyx {
class FuncRequest;
namespace frontend {
class GuiViewBase;
/**
* Action - Qt interface with LyX' FuncRequest.
*
* Action can be used in LyX menubar and/or toolbars.
*/
class Action : public QAction
{
Q_OBJECT
public:
Action(GuiViewBase & lyxView, QString const & icon, QString const & text,
FuncRequest const & func, QString const & tooltip);
void update();
Q_SIGNALS:
/// the current action is triggered
void triggered(QAction *);
private Q_SLOTS:
void action();
private:
FuncRequest const & func_ ;
GuiViewBase & lyxView_;
};
} // namespace frontend
} // namespace lyx
#endif // ACTION_H