forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdual_list_box.h
46 lines (37 loc) · 1.05 KB
/
dual_list_box.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
44
45
46
#ifndef CATA_OBJECT_CREATOR_DUAL_LIST_BOX_H
#define CATA_OBJECT_CREATOR_DUAL_LIST_BOX_H
#include "QtWidgets/qgridlayout.h"
#include "QtWidgets/qlabel.h"
#include "QtWidgets/qlistwidget.h"
#include "QtWidgets/qpushbutton.h"
namespace creator
{
class dual_list_box : public QWidget
{
Q_OBJECT
public:
dual_list_box() {}
void initialize( const QStringList &items );
void resize( const QSize & );
void set_included( const QStringList ret );
QStringList get_included() const;
Q_SIGNALS:
void pressed();
private:
// the entire list of acceptable strings
QStringList items;
QListWidget included_box;
QListWidget excluded_box;
QWidget button_widget;
QPushButton include_all_button;
QPushButton include_sel_button;
QPushButton exclude_all_button;
QPushButton exclude_sel_button;
QLabel title;
void include_all();
void exclude_all();
void include_selected();
void exclude_selected();
};
}
#endif