COIN-OR::LEMON - Graph Library

source: glemon-0.x/map_window.h @ 183:48580778851e

Last change on this file since 183:48580778851e was 174:95872af46fc4, checked in by Alpar Juttner, 18 years ago

Add copyright headers

File size: 1.3 KB
Line 
1/* -*- C++ -*-
2 *
3 * This file is a part of LEMON, a generic C++ optimization library
4 *
5 * Copyright (C) 2003-2006
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
8 *
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
12 *
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
15 * purpose.
16 *
17 */
18
19#ifndef MAP_WINDOW
20#define MAP_WINDOW
21
22#include <gtkmm/window.h>
23#include <gtkmm/liststore.h>
24#include <gtkmm/treeview.h>
25#include <gtkmm/scrolledwindow.h>
26#include "mapstorage.h"
27
28class MapWindow : public Gtk::Window
29{
30  struct MapModelColumns : public Gtk::TreeModel::ColumnRecord
31  {
32    MapModelColumns()
33    {
34      add(colName);
35      add(colValue);
36      add(colType);
37    }
38    Gtk::TreeModelColumn<Glib::ustring> colName;
39    Gtk::TreeModelColumn<MapStorage::value> colValue;
40    Gtk::TreeModelColumn<MapStorage::type> colType;
41  };
42  private:
43    MapModelColumns mapColumns;
44    Glib::RefPtr<Gtk::ListStore> refMapStore;
45    Gtk::TreeView twMap;
46    Gtk::ScrolledWindow swMap;
47  public:
48    MapWindow();
49    ~MapWindow();
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.