| 1 |
#ifndef LIVECODEEDITOR_H |
| 2 |
#define LIVECODEEDITOR_H |
| 3 |
|
| 4 |
#include <QWidget> |
| 5 |
|
| 6 |
#include "documentview.h" |
| 7 |
|
| 8 |
namespace Ui { |
| 9 |
class LiveCodeEditor; |
| 10 |
} |
| 11 |
|
| 12 |
class LiveCodeEditor : public QWidget |
| 13 |
{ |
| 14 |
Q_OBJECT |
| 15 |
|
| 16 |
public: |
| 17 |
explicit LiveCodeEditor(QWidget *parent, OpEntryParser *m_opcodeTree); |
| 18 |
~LiveCodeEditor(); |
| 19 |
|
| 20 |
DocumentView *getDocumentView(); |
| 21 |
|
| 22 |
public slots: |
| 23 |
void setCsdMode(bool csdMode); |
| 24 |
void modeChanged(int index); |
| 25 |
void evaluateSlot(QString code); |
| 26 |
|
| 27 |
private: |
| 28 |
Ui::LiveCodeEditor *ui; |
| 29 |
DocumentView *m_docView; |
| 30 |
|
| 31 |
signals: |
| 32 |
void evaluate(QString code); |
| 33 |
void enableCsdMode(bool enable); |
| 34 |
}; |
| 35 |
|
| 36 |
#endif |