1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#ifndef __ZEN_CODING_PLUGIN_H__
#define __ZEN_CODING_PLUGIN_H__
#include <QObject>
#include <QScriptEngine>
#include "JuffPlugin.h"
namespace Juff {
class Document;
}
class DocWrapper;
class ZenCoding : public QObject, public JuffPlugin {
Q_OBJECT
Q_INTERFACES(JuffPlugin)
public:
ZenCoding();
virtual ~ZenCoding();
void init();
QString name() const;
QString description() const;
QString targetEngine() const;
Juff::ActionList mainMenuActions(Juff::MenuID) const;
public slots:
void expandAbbr();
void onDocActivated(Juff::Document*);
private:
QAction* expandAct_;
QScriptEngine engine_;
DocWrapper* docWrapper_;
};
#endif // __ZEN_CODING_PLUGIN_H__
|