COIN-OR::LEMON - Graph Library

Changeset 9:0bb1675306cb in glemon-0.x for main_win.cc


Ignore:
Timestamp:
06/10/05 13:58:03 (15 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@1948
Message:

Hopefully, node creation works well, after a small structural consideration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main_win.cc

    r6 r9  
    22
    33MainWin::MainWin(const std::string& title, Graph & graph, CoordinatesMap & cm,
    4     MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),gd_canvas(graph, cm, ms)
     4    MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),editwin("Editorial Window", gd_canvas),gd_canvas(graph, cm, ms)
    55{
    66  set_title (title);
     
    3535  ag->add( Gtk::Action::create("ShowMaps", "_Maps"),
    3636      sigc::mem_fun(*this, &MainWin::showMaps));
     37  ag->add( Gtk::Action::create("ShowEditorials", "_Editorials"),
     38      sigc::mem_fun(*this, &MainWin::showEditorials));
    3739
    3840  uim=Gtk::UIManager::create();
     
    6163      "    <menu action='ShowMenu'>"
    6264      "      <menuitem action='ShowMaps'/>"
     65      "      <menuitem action='ShowEditorials'/>"
    6366      "    </menu>"
    6467      "  </menubar>"
     
    108111}
    109112
     113void MainWin::showEditorials()
     114{
     115  editwin.show();
     116}
     117
    110118void MainWin::quit()
    111119{
Note: See TracChangeset for help on using the changeset viewer.