map_window.h
author alpar
Tue, 07 Nov 2006 21:27:28 +0000
changeset 180 911c6ba0e3c8
parent 173 8339178ae43d
permissions -rw-r--r--
Bugfix + polishing
     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 
    28 class 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