#ifndef __LAYERWIDGET_H__
#define __LAYERWIDGET_H__
-#include <QtGui>
+#include <QtWidgets>
class LayerWidget: public QWidget
{
LayerWidget(void);
~LayerWidget();
+ 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__
+