File: ZenCoding.h

package info (click to toggle)
juffed 0.10-89-g3690b60-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,160 kB
  • sloc: cpp: 21,060; ansic: 446; xml: 329; sh: 68; makefile: 16
file content (40 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (5)
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__