X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flayerwidget.h;h=5da5ee9f900c6acdd75f5c8c5320241d52c91c11;hb=60565e2216e2d6d8d3634d0614823a117770e47f;hp=082c81d47dcfe657db198c98319dfbab660c2efb;hpb=642cf72c11b49a9e00128ab6258a2438c785a5ab;p=architektonas diff --git a/src/layerwidget.h b/src/layerwidget.h index 082c81d..5da5ee9 100644 --- a/src/layerwidget.h +++ b/src/layerwidget.h @@ -1,7 +1,7 @@ #ifndef __LAYERWIDGET_H__ #define __LAYERWIDGET_H__ -#include +#include class LayerWidget: public QWidget { @@ -11,16 +11,35 @@ class LayerWidget: public QWidget LayerWidget(void); ~LayerWidget(); + public slots: + void Reload(void); + private slots: void HandleLayerSelected(int); + void HandleHideToggle(QListWidgetItem *, bool); + void HandleLockToggle(QListWidgetItem *, bool); + void HandleDblClick(QListWidgetItem *); void AddLayer(void); void DeleteLayer(void); void EditLayer(void); void MoveLayerUp(void); void MoveLayerDown(void); + private: + void SetButtonStates(void); + signals: void LayerSelected(int); + void LayerDeleted(int); + void LayerToggled(void); + void LayersSwapped(int, int); + + public: + QToolButton * addLayer; + QToolButton * removeLayer; + QToolButton * editLayer; + QToolButton * layerUp; + QToolButton * layerDown; private: QListWidget * list;