COIN-OR::LEMON - Graph Library

Changeset 41:06f1f9a8d51f in glemon-0.x for main_win.cc


Ignore:
Timestamp:
07/26/05 23:19:41 (19 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2096
Message:

EdgeMap? and NodeMap? creation is done, at last. Bach 4ever.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main_win.cc

    r37 r41  
    22
    33MainWin::MainWin(const std::string& title, Graph & graph, CoordinatesMap & cm,
    4     MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),editwin("Editorial Window", gd_canvas),gd_canvas(graph, cm, ms, &mapwin)
     4    MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),editwin("Editorial Window", gd_canvas),newmapwin("Creating new map",gd_canvas),gd_canvas(graph, cm, ms, &mapwin)
    55{
     6  //Creating a window for setting new maps.
     7//   newmapwin=new NewMapWi("Creating new map",*this);
     8
     9
    610  set_title (title);
    711  set_default_size(WIN_WIDTH,WIN_HEIGHT);
     
    5054  ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
    5155      sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
    52   ag->add( Gtk::Action::create("AddEdgeMap", Gtk::Stock::NEW),
    53       sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewEdgeMap ) );
    54   ag->add( Gtk::Action::create("AddNodeMap", Gtk::Stock::NEW),
    55       sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewNodeMap ) );
     56  ag->add( Gtk::Action::create("AddMap", Gtk::Stock::NEW),
     57      sigc::mem_fun ( this->newmapwin, &NewMapWin::show ) );
    5658
    5759  uim=Gtk::UIManager::create();
     
    99101      "    <toolitem action='EditEdgeMap' />"
    100102      "    <toolitem action='EditNodeMap' />"
    101       "    <toolitem action='AddEdgeMap' />"
    102       "    <toolitem action='AddNodeMap' />"
     103      "    <toolitem action='AddMap' />"
    103104      "  </toolbar>"
    104105      "</ui>";
Note: See TracChangeset for help on using the changeset viewer.