author | insilmaril |
Tue Mar 06 19:37:39 2007 +0000 (2007-03-06) | |
changeset 434 | c585be63ec69 |
parent 432 | f867269ab8a1 |
child 438 | eae9abe70d7c |
permissions | -rw-r--r-- |
insilmaril@432 | 1 |
#ifndef SIMPLESCRIPTEDITOR_H |
insilmaril@432 | 2 |
#define SIMPLESCRIPTEDITOR_H |
insilmaril@432 | 3 |
|
insilmaril@432 | 4 |
#include "ui_simplescripteditor.h" |
insilmaril@432 | 5 |
|
insilmaril@434 | 6 |
#include "highlighter.h" |
insilmaril@434 | 7 |
|
insilmaril@432 | 8 |
class SimpleScriptEditor:public QDialog |
insilmaril@432 | 9 |
{ |
insilmaril@432 | 10 |
Q_OBJECT |
insilmaril@432 | 11 |
|
insilmaril@432 | 12 |
public: |
insilmaril@432 | 13 |
SimpleScriptEditor (QWidget* parent = 0); |
insilmaril@432 | 14 |
void saveScript (); |
insilmaril@434 | 15 |
void setScript(const QString &); |
insilmaril@432 | 16 |
|
insilmaril@432 | 17 |
public slots: |
insilmaril@432 | 18 |
void saveScriptClicked(); |
insilmaril@432 | 19 |
void loadScriptClicked(); |
insilmaril@432 | 20 |
void runScriptClicked(); |
insilmaril@432 | 21 |
|
insilmaril@432 | 22 |
signals: |
insilmaril@432 | 23 |
void runScript (QString); |
insilmaril@432 | 24 |
|
insilmaril@432 | 25 |
private: |
insilmaril@432 | 26 |
Ui::SimpleScriptEditor ui; |
insilmaril@432 | 27 |
QString filename; |
insilmaril@434 | 28 |
Highlighter *highlighter; |
insilmaril@432 | 29 |
}; |
insilmaril@432 | 30 |
|
insilmaril@432 | 31 |
|
insilmaril@432 | 32 |
#endif |