src/widgets/colorindexinput.h

Sat, 08 Apr 2023 16:59:55 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sat, 08 Apr 2023 16:59:55 +0300
changeset 355
e81f4ad53efd
parent 264
76a025db4948
permissions
-rw-r--r--

Move the about dialog to MainWindow. The hack to retrieve GL extensions is made a bit cleaner

178
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
1 #pragma once
264
76a025db4948 Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents: 263
diff changeset
2 #include "src/colors.h"
178
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
4 class ColorIndexInput : public QWidget
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
5 {
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 Q_OBJECT
258
fe094d0687ad Add widgets to object editor
Teemu Piippo <teemu.s.piippo@gmail.com>
parents: 214
diff changeset
7 const ColorTable* colorTable = nullptr;
fe094d0687ad Add widgets to object editor
Teemu Piippo <teemu.s.piippo@gmail.com>
parents: 214
diff changeset
8 class Ui_ColorIndexInput& ui;
178
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 public:
258
fe094d0687ad Add widgets to object editor
Teemu Piippo <teemu.s.piippo@gmail.com>
parents: 214
diff changeset
10 ColorIndexInput(QWidget *parent = nullptr);
178
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 ~ColorIndexInput();
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 ldraw::Color selectedColor() const;
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
13 void setSelectedColor(ldraw::Color color);
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
14 Q_SIGNALS:
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 void colorChanged(ldraw::Color color);
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
16 private:
a23024fc98e0 fix saving
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
17 };

mercurial