aboutsummaryrefslogblamecommitdiff
path: root/mapman/src/groupview.hpp
blob: 1a2902c3b8755bfa58e981955bebd10a5f6b8045 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                        
                                  






                      
                
                         
                            









                                       
                                                     








                                                       

                                


                          
                              



                        
                        

                  
                       







                              
#ifndef GROUPVIEW_HPP
#define GROUPVIEW_HPP

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

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

class group_view : public QMdiSubWindow
{
Q_OBJECT
public:
    group_view();
    ~group_view();
    void set_library(map_library *lib);
    void export_group_image(QString fn, int64_t gid);
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();
    void export_current_group();
    void export_all_groups();
private:
    QTableView *tv;
    QStandardItemModel *m;
    QSortFilterProxyModel *mf;
    QPushButton *pbadd;
    QPushButton *pbrem;
    QLineEdit *tetitle;
    QLineEdit *teauthor;
    QLineEdit *tefilter;
    QSpinBox *sbh;
    QSpinBox *sbv;
    QComboBox *cbscale;
    QPushButton *pbapply;
    bool dirty;
    map_library *l;
    map_painter *p;
    map_group_t current_group;
};

#endif