Changeset 41:06f1f9a8d51f in glemon-0.x for main_win.cc
- Timestamp:
- 07/26/05 23:19:41 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2096
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_win.cc
r37 r41 2 2 3 3 MainWin::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) 5 5 { 6 //Creating a window for setting new maps. 7 // newmapwin=new NewMapWi("Creating new map",*this); 8 9 6 10 set_title (title); 7 11 set_default_size(WIN_WIDTH,WIN_HEIGHT); … … 50 54 ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES), 51 55 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 ) ); 56 58 57 59 uim=Gtk::UIManager::create(); … … 99 101 " <toolitem action='EditEdgeMap' />" 100 102 " <toolitem action='EditNodeMap' />" 101 " <toolitem action='AddEdgeMap' />" 102 " <toolitem action='AddNodeMap' />" 103 " <toolitem action='AddMap' />" 103 104 " </toolbar>" 104 105 "</ui>";
Note: See TracChangeset
for help on using the changeset viewer.