aboutsummaryrefslogtreecommitdiff
path: root/mapman/src/sliceview.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'mapman/src/sliceview.hpp')
-rw-r--r--mapman/src/sliceview.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/mapman/src/sliceview.hpp b/mapman/src/sliceview.hpp
new file mode 100644
index 0000000..3f7ee79
--- /dev/null
+++ b/mapman/src/sliceview.hpp
@@ -0,0 +1,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