-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeeditorwindow.h
More file actions
46 lines (33 loc) · 937 Bytes
/
codeeditorwindow.h
File metadata and controls
46 lines (33 loc) · 937 Bytes
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
41
42
43
44
45
46
#ifndef CODEEDITORWINDOW_H
#define CODEEDITORWINDOW_H
#include <QtGui>
#include <QtWidgets>
#include "game.h"
class CodeEditorWindow : public QWidget
{
Q_OBJECT
public:
CodeEditorWindow(Game * g);
void Update();
bool GetHasFocus();
public slots:
void SlotSaveChanges();
void SlotToggleWordWrap();
void SlotGetRoomCode();
void UpdateTabContents(int i);
void AddError(const QString s);
void ClearErrorLog();
private:
QPointer <Game> game;
QPointer <Room> cur_room;
QPointer <QPushButton> button_setroomcode;
QPointer <QPushButton> button_getroomcode;
QPointer <QTabWidget> tabwidget;
QVector <QPointer <QPlainTextEdit> > textedits;
QPointer <QCheckBox> wordwrap_checkbox;
QTextOption::WrapMode wrapmode;
bool do_add_script;
QPointer <QPlainTextEdit> error_log;
QPointer <QPushButton> error_log_clear_btn;
};
#endif // CODEEDITORWINDOW_H