mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
abca4c7a25
No idea whether qt3 and gtk compiles. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15285 a592a061-630c-0410-9148-cb99ea01b6c8
62 lines
1.1 KiB
C++
62 lines
1.1 KiB
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 "frontends/LyXView.h"
|
|
#include "funcrequest.h"
|
|
|
|
#include "support/docstring.h"
|
|
|
|
#include <QAction>
|
|
|
|
//class FuncRequest;
|
|
|
|
//class string;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
/**
|
|
* Action - Qt interface with LyX' FuncRequest.
|
|
*
|
|
* Action can be used in LyX menubar and/or toolbars.
|
|
*/
|
|
class Action: public QAction {
|
|
Q_OBJECT
|
|
public:
|
|
|
|
Action(LyXView & lyxView, lyx::docstring const & text,
|
|
FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
|
|
|
|
Action(LyXView & lyxView, std::string const & icon, lyx::docstring const & text,
|
|
FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
|
|
|
|
void update();
|
|
|
|
// void setAction(FuncRequest const & func);
|
|
|
|
private Q_SLOTS:
|
|
void action();
|
|
|
|
private:
|
|
FuncRequest const & func_ ;
|
|
//FuncRequest func_ ;
|
|
LyXView & lyxView_;
|
|
};
|
|
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // ACTION_H
|