+#ifndef __LAYERWIDGET_H__
+#define __LAYERWIDGET_H__
+
+#include <QtWidgets>
+
+class LayerWidget: public QWidget
+{
+ Q_OBJECT
+
+ public:
+ 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__
+