diff options
author | 2023-09-09 20:09:50 -0400 | |
---|---|---|
committer | 2023-09-09 20:09:50 -0400 | |
commit | 93cf929f29dea490ed60e5300cacdd99886c988e (patch) | |
tree | 0f8669c56e22a287047ee20846b92f1580d7364f /mapman/src/sliceview.hpp | |
parent | 40432e083b11271cf3148b9c38156cf759436699 (diff) | |
download | meteor-trashy-addon-93cf929f29dea490ed60e5300cacdd99886c988e.tar.xz |
Add the standalone portion of mapman.
Diffstat (limited to 'mapman/src/sliceview.hpp')
-rw-r--r-- | mapman/src/sliceview.hpp | 32 |
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 |