COIN-OR::LEMON - Graph Library

Changeset 1598:739df601808d in lemon-0.x for gui/main_win.cc


Ignore:
Timestamp:
07/28/05 16:31:32 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2103
Message:

Redundant functions from main_win disappeared, entry is now bigger, properties refresh upon edition, edgewidth is zoomable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/main_win.cc

    r1592 r1598  
    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),newmapwin("Creating new map",gd_canvas),gd_canvas(graph, cm, ms, &mapwin)
     4    MapStorage & ms):mapwin("Map Setup", ms, 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 
    96
    107  set_title (title);
     
    2421      sigc::mem_fun(*this, &MainWin::saveFileAs));
    2522  ag->add( Gtk::Action::create("FileQuit", Gtk::Stock::QUIT),
    26       sigc::mem_fun(*this, &MainWin::quit));
     23      sigc::mem_fun(*this, &MainWin::hide));
    2724
    2825  ag->add( Gtk::Action::create("ViewMenu", "_View") );
     
    3835  ag->add( Gtk::Action::create("ShowMenu", "_Show") );
    3936  ag->add( Gtk::Action::create("ShowMaps", "_Maps"),
    40       sigc::mem_fun(*this, &MainWin::showMaps));
    41   ag->add( Gtk::Action::create("ShowEditorials", "_Editorials"),
    42       sigc::mem_fun(*this, &MainWin::showEditorials));
     37      sigc::mem_fun(this->mapwin, &MapWin::show));
    4338
    4439  ag->add( Gtk::Action::create("CreateNode", Gtk::Stock::NO),
     
    8277      "    <menu action='ShowMenu'>"
    8378      "      <menuitem action='ShowMaps'/>"
    84       "      <menuitem action='ShowEditorials'/>"
    8579      "    </menu>"
    8680      "  </menubar>"
     
    133127}
    134128
    135 void MainWin::showMaps()
    136 {
    137   mapwin.show();
    138 }
    139 
    140 void MainWin::showEditorials()
    141 {
    142   editwin.show();
    143 }
    144 
    145 void MainWin::quit()
    146 {
    147   hide();
    148 }
    149 
    150129void MainWin::newFile()
    151130{
Note: See TracChangeset for help on using the changeset viewer.