]> Shamusworld >> Repos - architektonas/blob - src/layerwidget.h
Whitespace changes. :-P
[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         public slots:
15                 void Reload(void);
16
17         private slots:
18                 void HandleLayerSelected(int);
19                 void HandleHideToggle(QListWidgetItem *, bool);
20                 void HandleLockToggle(QListWidgetItem *, bool);
21                 void HandleDblClick(QListWidgetItem *);
22                 void AddLayer(void);
23                 void DeleteLayer(void);
24                 void EditLayer(void);
25                 void MoveLayerUp(void);
26                 void MoveLayerDown(void);
27
28         private:
29                 void SetButtonStates(void);
30
31         signals:
32                 void LayerSelected(int);
33                 void LayerDeleted(int);
34                 void LayerToggled(void);
35                 void LayersSwapped(int, int);
36
37         public:
38                 QToolButton * addLayer;
39                 QToolButton * removeLayer;
40                 QToolButton * editLayer;
41                 QToolButton * layerUp;
42                 QToolButton * layerDown;
43
44         private:
45                 QListWidget * list;
46 };
47
48 #endif  // __LAYERWIDGET_H__