-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidepanel.h
43 lines (35 loc) · 916 Bytes
/
sidepanel.h
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
41
42
43
#ifndef SIDEPANEL_H
#define SIDEPANEL_H
#include "entitydata.h"
#include <QWidget>
#include <QGroupBox>
#include <QSignalMapper>
#include <QVBoxLayout>
#include <QCheckBox>
#include <QPlainTextEdit>
class FilterCheckBox : public QCheckBox
{
Q_OBJECT
public:
explicit FilterCheckBox(QWidget *parent = nullptr);
FilterCheckBox(QString name, QString et, QWidget *parent = nullptr);
FilterCheckBox(QString name, EntityData::type et, QWidget *parent = nullptr);
QString filterType;
void loadSetting();
public slots:
void updateSetting(bool value);
};
class SidePanel : public QWidget
{
Q_OBJECT
public:
explicit SidePanel(QWidget *parent = nullptr);
QPlainTextEdit* closeObjects;
private:
void mapCheckBoxes(QVector<FilterCheckBox *> &v, QVBoxLayout* bl);
public slots:
void updateMapS(){ emit updateMap(); }
signals:
void updateMap();
};
#endif // SIDEPANEL_H