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

#include <QMdiSubWindow>
#include <QModelIndex>

class map_library;
class map_painter;
class QListView;
class QStandardItemModel;

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;
    map_painter *p;
    map_library *l;
    QModelIndex dragidx;
    QPointF dragpos;
};

#endif