]> Shamusworld >> Repos - architektonas/blob - src/layerwidget.h
e515dcfd4a724f318f9cc326114f2f558324828e
[architektonas] / src / layerwidget.h
1 #ifndef __LAYERWIDGET_H__
2 #define __LAYERWIDGET_H__
3
4 #include <QtWidgets>
5
6 class LayerWidget: public QWidget
7 {
8         Q_OBJECT
9
10         public:
11                 LayerWidget(void);
12                 ~LayerWidget();
13
14         private slots:
15                 void HandleLayerSelected(int);
16                 void AddLayer(void);
17                 void DeleteLayer(void);
18                 void EditLayer(void);
19                 void MoveLayerUp(void);
20                 void MoveLayerDown(void);
21
22         private:
23                 void SetButtonStates(void);
24
25         signals:
26                 void LayerSelected(int);
27
28         public:
29                 QToolButton * addLayer;
30                 QToolButton * removeLayer;
31                 QToolButton * editLayer;
32                 QToolButton * layerUp;
33                 QToolButton * layerDown;
34
35         private:
36                 QListWidget * list;
37 };
38
39 #endif  // __LAYERWIDGET_H__
40