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