map_window.cc
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).
     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 #include "map_window.h"
    20 
    21 MapWindow::MapWindow()
    22 {
    23   refMapStore = Gtk::ListStore::create(mapColumns);
    24   //refMapStore->signal_row_changed().connect(sigc::mem_fun(*this, &Phy sicalProperties::onChannelChanged));
    25   twMap.set_model(refMapStore);
    26   twMap.append_column_editable("Name", mapColumns.colName);
    27   //twMap.append_column_editable("Value type", mapColumns.colValue);
    28   //twMap.append_column_editable("Map type", mapColumns.colType);
    29 
    30   swMap.set_size_request(-1, 300);
    31   swMap.add(twMap);
    32   swMap.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
    33 
    34   swMap.add(twMap);
    35   add(swMap);
    36 
    37   show_all_children();
    38 }
    39 
    40 MapWindow::~MapWindow()
    41 {
    42 }