aboutsummaryrefslogtreecommitdiff
path: root/mapman/src/groupview.hpp
blob: ca4cf30417279c9539aa54b80f75435a51e40be1 (plain) (blame)
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
47
48
#ifndef GROUPVIEW_HPP
#define GROUPVIEW_HPP

#include <QMdiSubWindow>
#include "mapdump.hpp"

class QTableView;
class QPushButton;
class QLineEdit;
class QSpinBox;
class QLabel;
class QStandardItemModel;
class map_library;
class map_painter;

class group_view : public QMdiSubWindow
{
Q_OBJECT
public:
    group_view();
    ~group_view();
    void set_library(map_library *lib);
public slots:
    void add_group();
    void rem_group();
    void update_fields();
    void update_library();
    void painter_drop(int pos, bool populated, int id);
    void refresh_list();
    void reset_dim();
    void update_map_view();
private:
    QTableView *tv;
    QStandardItemModel *m;
    QPushButton *pbadd;
    QPushButton *pbrem;
    QLineEdit *tetitle;
    QLineEdit *teauthor;
    QSpinBox *sbh;
    QSpinBox *sbv;
    QPushButton *pbapply;
    bool dirty;
    map_library *l;
    map_painter *p;
    map_group_t current_group;
};

#endif