Changeset 92:ee2bd58fdc30 in glemon-0.x
- Timestamp:
- 11/22/05 15:35:33 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-event.cc
r89 r92 627 627 dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT); 628 628 Gtk::VBox* vbox = dialog.get_vbox(); 629 Gtk::Adjustment adj( 630 (*mapstorage.edgemap_storage[edgemap_to_edit])[active_edge], 631 -1000000.0, 632 1000000.0, 633 1.0, 5.0, 0.0); 634 //TODO: find out why doesn't it work with 635 //numeric_limits<double>::min/max 636 Gtk::SpinButton spin(adj); 629 Gtk::SpinButton spin(0.0, 4); 630 spin.set_increments(1.0, 10.0); 631 spin.set_range(-1000000.0, 1000000.0); 637 632 spin.set_numeric(true); 638 spin.set_digits(4);639 633 vbox->add(spin); 640 634 spin.show(); … … 720 714 dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT); 721 715 Gtk::VBox* vbox = dialog.get_vbox(); 722 Gtk::Adjustment adj( 723 (*mapstorage.nodemap_storage[nodemap_to_edit])[active_node], 724 -1000000.0, 725 1000000.0, 726 1.0, 5.0, 0.0); 727 //TODO: find out why doesn't it work with 728 //numeric_limits<double>::min/max 729 Gtk::SpinButton spin(adj); 716 Gtk::SpinButton spin(0.0, 4); 717 spin.set_increments(1.0, 10.0); 718 spin.set_range(-1000000.0, 1000000.0); 730 719 spin.set_numeric(true); 731 spin.set_digits(4);732 720 vbox->add(spin); 733 721 spin.show();
Note: See TracChangeset
for help on using the changeset viewer.