COIN-OR::LEMON - Graph Library

source: glemon-0.x/map_window.h @ 173:8339178ae43d

Last change on this file since 173:8339178ae43d was 173:8339178ae43d, checked in by Akos Ladanyi, 17 years ago

Added two new classes.

File size: 743 bytes
Line 
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
10class 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
Note: See TracBrowser for help on using the repository browser.