Changeset 156:c5cdf6690cdf in glemon-0.x for main_win.cc
- Timestamp:
- 09/28/06 16:32:40 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2961
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_win.cc
r155 r156 200 200 201 201 } 202 203 auto_scale= new Gtk::CheckButton("Autoscale"); 202 203 table2.set_row_spacings(10); 204 table2.set_col_spacings(5); 205 206 auto_scale = new Gtk::CheckButton("Autoscale"); 204 207 auto_scale->set_active(false); 205 208 auto_scale->signal_toggled().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); 206 207 table2.set_row_spacings(10);208 table2.set_col_spacings(5);209 210 209 table2.attach(*auto_scale, 0,2,0,1); 211 210 212 211 Gtk::Label * unit_label= new Gtk::Label("Unit:"); 213 212 // table2.attach(*unit_label, 2,3,0,1); … … 236 235 radius_max->signal_value_changed().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); 237 236 table2.attach(*radius_max, 3,4,1,2); 237 238 zoom_track = new Gtk::CheckButton("Zoom tracking"); 239 zoom_track->set_active(false); 240 zoom_track->signal_toggled().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); 241 table2.attach(*zoom_track, 2,4,0,1); 242 238 243 239 244 //vbox.pack_start(hbox, Gtk::PACK_SHRINK); … … 363 368 set_title(tabnames[active_tab]); 364 369 bool autoscale; 370 bool zoomtrack; 365 371 double min; 366 372 double max; 367 373 double unit; 368 tabs[active_tab]->getNodeView(autoscale, min, max, unit);374 tabs[active_tab]->getNodeView(autoscale, zoomtrack, min, max, unit); 369 375 radius_min->set_value(min); 370 376 radius_max->set_value(max); 371 377 radius_unit->set_value(unit); 378 zoom_track->set_active(zoomtrack); 372 379 auto_scale->set_active(autoscale); 373 380 … … 540 547 double max=radius_max->get_value(); 541 548 double unit=radius_unit->get_value(); 549 bool zoomtrack=zoom_track->get_active(); 542 550 bool autoscale=auto_scale->get_active(); 543 tabs[active_tab]->setNodeView(autoscale, min, max, unit);544 } 551 tabs[active_tab]->setNodeView(autoscale, zoomtrack, min, max, unit); 552 }
Note: See TracChangeset
for help on using the changeset viewer.