This repository was archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindow.h
More file actions
112 lines (92 loc) · 2.5 KB
/
window.h
File metadata and controls
112 lines (92 loc) · 2.5 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifndef WINDOW_H
#define WINDOW_H
#include <QMainWindow>
#include "affixerdialog.h"
class QHBoxLayout;
class QVBoxLayout;
class QGroupBox;
class QPlainTextEdit;
class QTextEdit;
class QLabel;
class QLineEdit;
class QPushButton;
class QChar;
class QString;
class QStringList;
class QCheckBox;
class QMenu;
class QRadioButton;
class QProgressBar;
class Highlighter;
template <class Key, class T> class QMap;
template <class T> class QList;
class Window : public QMainWindow
{
Q_OBJECT
public:
explicit Window();
private:
QHBoxLayout *m_layout;
QVBoxLayout *m_leftlayout;
QVBoxLayout *m_ruleslayout;
QVBoxLayout *m_wordslayout;
QVBoxLayout *m_midlayout;
QVBoxLayout *m_resultslayout;
QHBoxLayout *m_syllableseperatorlayout;
QLabel *m_categorieslabel;
QPlainTextEdit *m_categories;
QLabel *m_rewriteslabel;
QPlainTextEdit *m_rewrites;
QLabel *m_ruleslabel;
QPlainTextEdit *m_rules;
QLabel *m_wordslabel;
QPlainTextEdit *m_words;
QLabel *m_applyfillerlabel;
QPushButton *m_apply;
QLineEdit *m_syllabify;
QLineEdit *m_syllableseperator;
QLabel *m_syllableseperatorlabel;
QLabel *m_resultslabel;
QTextEdit *m_results;
QCheckBox *m_showChangedWords;
QCheckBox *m_reportChanges;
QCheckBox *m_doBackwards;
QGroupBox *m_formatgroup;
QRadioButton *m_plainformat;
QRadioButton *m_arrowformat;
QRadioButton *m_squareinputformat;
QRadioButton *m_squareglossformat;
QRadioButton *m_arrowglossformat;
QGroupBox *m_reversegroup;
QCheckBox *m_reversechanges;
QLabel *m_filterslabel;
QPlainTextEdit *m_filters;
QPushButton *m_filtercurrent;
QProgressBar *m_progress;
Highlighter *m_highlighter;
QMap<QChar, QList<QChar>> *m_categorieslist;
QString ApplyRewrite(QString str, bool backwards = false);
QString FormatOutput(QString in, QString out, QString gloss, bool isGloss);
QMenu *fileMenu;
QMenu *toolsMenu;
QMenu *helpMenu;
private slots:
void DoSoundChanges();
void FilterCurrent();
void UpdateCategories();
void AddFromAffixer(QStringList words, AffixerDialog::PlaceToAdd placeToAdd);
void OpenEsc();
void OpenLex();
void SaveEsc();
void SaveEscAs();
void SaveLex();
void RealOpenEsc(QString fileName);
void RealSaveEsc(QString fileName);
void LaunchAffixer();
void LaunchAboutBox();
void LaunchAboutQt();
private:
QString currentFile = "";
void SetCurrentFile(QString fileName);
};
#endif // WINDOW_H