-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayerPanel.h
More file actions
40 lines (32 loc) · 855 Bytes
/
Copy pathLayerPanel.h
File metadata and controls
40 lines (32 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef LAYERPANEL_H
#define LAYERPANEL_H
#include <QWidget>
class QListWidget;
class QListWidgetItem;
class QLabel;
class QPushButton;
class Document;
class DocumentController;
class LayerPanel : public QWidget
{
Q_OBJECT
public:
explicit LayerPanel(DocumentController *controller,
QWidget *parent = nullptr);
private slots:
void onAddLayer();
void onRemoveLayer();
void onRenameLayer();
void onSelectionChanged(int row);
void onItemChanged(QListWidgetItem *item);
void refreshFromDocument();
private:
void buildUI();
DocumentController *m_controller = nullptr;
QListWidget *m_listWidget = nullptr;
QLabel *m_statsLabel = nullptr;
QPushButton *m_addBtn = nullptr;
QPushButton *m_removeBtn = nullptr;
QPushButton *m_renameBtn = nullptr;
};
#endif // LAYERPANEL_H