-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremglkoutputlayout.h
71 lines (54 loc) · 1.72 KB
/
remglkoutputlayout.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef REMGLKOUTPUTLAYOUT_H
#define REMGLKOUTPUTLAYOUT_H
// #include "remglktexteditwindow.h"
#include "remglkcompletertextedit.h"
#include <QtWidgets>
#include <QObject>
#include <QGridLayout>
#include <QLabel>
#include <QJsonArray>
#include <QJsonDocument>
#include <QMap>
#include <glkwindowdata.h>
#include <outputstyledchunk.h>
class RemGlkOutputLayout : public QObject
{
Q_OBJECT
public:
RemGlkOutputLayout(QWidget *parent = 0);
void setOutputWidgets(RemGlkCompleterTextEdit *textEdit, QGridLayout *mainLayout, QLabel *topStatus);
public:
// RemGlkTextEditWindow *outputWindow;
int testA = 0;
// main Glk window content
RemGlkCompleterTextEdit *textEdit;
QGridLayout *mainLayout;
QLabel *topStatus;
public:
void inlineOutputRemGlkDebug(int format, QString debugOutput);
void stanzaRemGlkWindows(QJsonArray windows);
void stanzaRemGlkContent(QJsonArray content);
void stanzaRemGlkContentStyledChunk(QJsonObject endpointStyledChunk);
QString stanzaRemGlkContentStyledChunkToHTML(QJsonObject endpointStyledChunk);
QString toStringJsonObject(const QJsonObject jsonObj);
protected:
int fw;
float saveFontPointSize;
QColor tc;
public:
// set to empty string to disable, allows regex
// QString glkGridWindowRuntimeConsolidate = " ";
QString glkGridWindowRuntimeConsolidate = "[ \t]{4,}";
protected:
//
// INLINE WINDOW OUTPUT - DEBUG CONTROLS
//
bool remGlkDebug_process_steps = false;
bool remGlkDebug_JSON_in_raw = false;
bool remGlkDebug_JSON_parsing = false;
bool glkWindowDebug_TextGrid = false;
// Data structures for Glk windows
public:
QMap<int, GlkWindowData> glkWindows;
};
#endif // REMGLKOUTPUTLAYOUT_H