-
Notifications
You must be signed in to change notification settings - Fork 0
/
profiled_designer.h
64 lines (56 loc) · 1.36 KB
/
profiled_designer.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
#ifndef PROFILED_DESIGNER_H
#define PROFILED_DESIGNER_H
#include <QMainWindow>
#include <QGraphicsScene>
#include "design_scene.h"
#include <QDebug>
#include <QColor>
#include <QColorDialog>
#include <QTimer>
#include <QDir>
class QAction;
class QActionGroup;
class QLabel;
class QMenu;
namespace Ui {
class profiled_designer;
}
class profiled_designer : public QMainWindow
{
Q_OBJECT
public:
explicit profiled_designer(QWidget *parent = 0);
~profiled_designer();
private:
design_scene *scene;
Ui::profiled_designer *ui;
void createActions();
void createMenus();
QMenu *fileMenu;
QAction *openAct;
QAction *saveAct;
qint8 selected_led_id;
pattern curr_pattern;
QTimer *timer;
void update_params(bool update_list);
protected:
#ifndef QT_NO_CONTEXTMENU
void contextMenuEvent(QContextMenuEvent *event) override;
#endif // QT_NO_CONTEXTMENU
signals:
private slots:
void add_pattern_handler();
void led_selected_handler(qint8 led_id);
void start_color_select_handler();
void end_color_select_handler();
void color_select_handler();
void color_dialog_handler(QColor color);
void play_button_handler();
void pause_button_handler();
void create_bin_handler();
void remove_pattern_handler();
void delete_led_handler();
void open();
void save();
};
#endif // PROFILED_DESIGNER_H