equal
deleted
inserted
replaced
|
1 #ifndef MAP_WINDOW |
|
2 #define MAP_WINDOW |
|
3 |
|
4 #include <gtkmm/window.h> |
|
5 #include <gtkmm/liststore.h> |
|
6 #include <gtkmm/treeview.h> |
|
7 #include <gtkmm/scrolledwindow.h> |
|
8 #include "mapstorage.h" |
|
9 |
|
10 class MapWindow : public Gtk::Window |
|
11 { |
|
12 struct MapModelColumns : public Gtk::TreeModel::ColumnRecord |
|
13 { |
|
14 MapModelColumns() |
|
15 { |
|
16 add(colName); |
|
17 add(colValue); |
|
18 add(colType); |
|
19 } |
|
20 Gtk::TreeModelColumn<Glib::ustring> colName; |
|
21 Gtk::TreeModelColumn<MapStorage::value> colValue; |
|
22 Gtk::TreeModelColumn<MapStorage::type> colType; |
|
23 }; |
|
24 private: |
|
25 MapModelColumns mapColumns; |
|
26 Glib::RefPtr<Gtk::ListStore> refMapStore; |
|
27 Gtk::TreeView twMap; |
|
28 Gtk::ScrolledWindow swMap; |
|
29 public: |
|
30 MapWindow(); |
|
31 ~MapWindow(); |
|
32 }; |
|
33 |
|
34 #endif |