aboutsummaryrefslogtreecommitdiff
path: root/mapman/src/groupview.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-09-09 20:09:50 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-09-09 20:09:50 -0400
commit93cf929f29dea490ed60e5300cacdd99886c988e (patch)
tree0f8669c56e22a287047ee20846b92f1580d7364f /mapman/src/groupview.hpp
parent40432e083b11271cf3148b9c38156cf759436699 (diff)
downloadmeteor-trashy-addon-93cf929f29dea490ed60e5300cacdd99886c988e.tar.xz
Add the standalone portion of mapman.
Diffstat (limited to 'mapman/src/groupview.hpp')
-rw-r--r--mapman/src/groupview.hpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/mapman/src/groupview.hpp b/mapman/src/groupview.hpp
new file mode 100644
index 0000000..ca4cf30
--- /dev/null
+++ b/mapman/src/groupview.hpp
@@ -0,0 +1,48 @@
+#ifndef GROUPVIEW_HPP
+#define GROUPVIEW_HPP
+
+#include <QMdiSubWindow>
+#include "mapdump.hpp"
+
+class QTableView;
+class QPushButton;
+class QLineEdit;
+class QSpinBox;
+class QLabel;
+class QStandardItemModel;
+class map_library;
+class map_painter;
+
+class group_view : public QMdiSubWindow
+{
+Q_OBJECT
+public:
+ group_view();
+ ~group_view();
+ void set_library(map_library *lib);
+public slots:
+ void add_group();
+ void rem_group();
+ void update_fields();
+ void update_library();
+ void painter_drop(int pos, bool populated, int id);
+ void refresh_list();
+ void reset_dim();
+ void update_map_view();
+private:
+ QTableView *tv;
+ QStandardItemModel *m;
+ QPushButton *pbadd;
+ QPushButton *pbrem;
+ QLineEdit *tetitle;
+ QLineEdit *teauthor;
+ QSpinBox *sbh;
+ QSpinBox *sbv;
+ QPushButton *pbapply;
+ bool dirty;
+ map_library *l;
+ map_painter *p;
+ map_group_t current_group;
+};
+
+#endif