From 93cf929f29dea490ed60e5300cacdd99886c988e Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 9 Sep 2023 20:09:50 -0400 Subject: Add the standalone portion of mapman. --- mapman/src/sliceview.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mapman/src/sliceview.hpp (limited to 'mapman/src/sliceview.hpp') 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 +#include + +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 -- cgit v1.2.3