Changeset 1614:350c1d8bb7cc in lemon-0.x
- Timestamp:
- 08/07/05 16:17:11 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2121
- Location:
- gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/graph_displayer_canvas-edge.cc
r1606 r1614 26 26 for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i) 27 27 { 28 double v= abs((*actual_map)[i]);28 double v=fabs((*actual_map)[i]); 29 29 int w; 30 30 if(min==max) -
gui/graph_displayer_canvas-event.cc
r1606 r1614 623 623 canvasentrywidget->property_width().set_value(edgetextmap[active_edge]->property_text_width().get_value()*4); 624 624 canvasentrywidget->property_height().set_value(edgetextmap[active_edge]->property_text_height().get_value()*1.5); 625 626 //setting the focus to newly created widget 627 parentwin->set_focus(entrywidget); 628 parentwin->activate_focus(); 625 629 } 626 630 } -
gui/graph_displayer_canvas-node.cc
r1606 r1614 25 25 for (NodeIt i(mapstorage.graph); i!=INVALID; ++i) 26 26 { 27 double v= abs((*actual_map)[i]);27 double v=fabs((*actual_map)[i]); 28 28 int w; 29 29 if(min==max) -
gui/graph_displayer_canvas.cc
r1606 r1614 3 3 #include <math.h> 4 4 5 GraphDisplayerCanvas::GraphDisplayerCanvas(MapStorage & ms, MapWin & mw ) :5 GraphDisplayerCanvas::GraphDisplayerCanvas(MapStorage & ms, MapWin & mw, Gtk::Window * mainwin) : 6 6 nodesmap(ms.graph), edgesmap(ms.graph), edgetextmap(ms.graph), 7 7 nodetextmap(ms.graph), displayed_graph(*(root()), 0, 0), … … 9 9 target_item(NULL), nodemap_to_edit(""), edgemap_to_edit(""), mapwin(mw) 10 10 { 11 parentwin=mainwin; 12 11 13 //base event handler is move tool 12 14 actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::moveEventHandler), false); -
gui/graph_displayer_canvas.h
r1606 r1614 19 19 20 20 public: 21 GraphDisplayerCanvas(MapStorage &, MapWin & );21 GraphDisplayerCanvas(MapStorage &, MapWin &, Gtk::Window *); 22 22 virtual ~GraphDisplayerCanvas(); 23 23 … … 178 178 MapWin & mapwin; 179 179 180 ///We need to store the parent window to be able to set the focus on a given widget 181 ///We will use this variable to activate the set focus on entry widget in the case of editing map values. 182 Gtk::Window * parentwin; 183 180 184 }; 181 185 -
gui/main_win.cc
r1606 r1614 3 3 MainWin::MainWin(const std::string& title) : 4 4 mapwin("Map Setup", mapstorage, gd_canvas), 5 newmapwin("Creating new map", gd_canvas), gd_canvas(mapstorage, mapwin) 6 { 7 5 newmapwin("Creating new map", gd_canvas), gd_canvas(mapstorage, mapwin, (Gtk::Window *)this) 6 { 8 7 set_title (title); 9 8 set_default_size(WIN_WIDTH,WIN_HEIGHT);
Note: See TracChangeset
for help on using the changeset viewer.