Thu, 29 Mar 2018 12:10:54 +0300
started work on the pattern editor
1363
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
1 | #pragma once |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
2 | #include <QMainWindow> |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
3 | #include "../main.h" |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
4 | #include "../types/pattern.h" |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
5 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
6 | class PatternEditor : public QMainWindow |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
7 | { |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
8 | Q_OBJECT |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
9 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
10 | public: |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
11 | PatternEditor(Pattern& pattern, QWidget *parent = nullptr); |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
12 | ~PatternEditor(); |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
13 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
14 | signals: |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
15 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
16 | public slots: |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
17 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
18 | private: |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
19 | friend class PatternViewer; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
20 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
21 | class Ui_PatternEditor& ui; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
22 | class PatternViewer* viewer; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
23 | Pattern& pattern; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
24 | LDColor currentColor = MainColor; |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
25 | }; |