aboutsummaryrefslogtreecommitdiff
path: root/mapman/src/sliceview.hpp
blob: 0773040e923b03624b73fa89a88b0ac76bf9bb55 (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
#ifndef SLICEVIEW_HPP
#define SLICEVIEW_HPP

#include <QMdiSubWindow>
#include <QModelIndex>

class map_library;
class map_painter;
class QListView;
class QStandardItemModel;
class QSortFilterProxyModel;
class QLineEdit;

class slice_view : public QMdiSubWindow
{
    Q_OBJECT
public:
    slice_view();
    ~slice_view();
    void set_library(map_library *lib);
public slots:
    void refresh();
protected:
    bool eventFilter(QObject *o, QEvent *e);
private:
    QListView *lv;
    QStandardItemModel *m;
    QSortFilterProxyModel *mf;
    QLineEdit *tefilter;
    map_painter *p;
    map_library *l;
    QModelIndex dragidx;
    QPointF dragpos;
};

#endif