X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flayerwidget.h;h=5da5ee9f900c6acdd75f5c8c5320241d52c91c11;hb=eb39f1bb5e6518c5dc4f4dbd3c88912a97192e95;hp=33000ea12a8594046fc5bd22dddc5f35ff2e7186;hpb=f97fcdd0f5c95d15cc8f03a818ed8e90e76e8f5a;p=architektonas diff --git a/src/layerwidget.h b/src/layerwidget.h index 33000ea..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,6 +11,39 @@ 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; }; #endif // __LAYERWIDGET_H__ +