src/widgets/patternviewer.h

Thu, 29 Mar 2018 12:10:54 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 29 Mar 2018 12:10:54 +0300
branch
experimental
changeset 1363
b725b7fb63a5
permissions
-rw-r--r--

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 <QWidget>
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3 #include "patterneditor.h"
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
4
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
5 class PatternViewer : public QWidget
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 {
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
7 Q_OBJECT
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
8
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 public:
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 PatternViewer(PatternEditor* parent);
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 signals:
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
13 public slots:
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
14 protected:
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 void paintEvent(QPaintEvent* event) override;
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
16
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
17 private:
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
18 class PatternEditor* const editor;
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
19 QTransform transformation = {};
b725b7fb63a5 started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
20 };

mercurial