COIN-OR::LEMON - Graph Library

Changeset 92:ee2bd58fdc30 in glemon-0.x for graph_displayer_canvas-event.cc


Ignore:
Timestamp:
11/22/05 15:35:33 (18 years ago)
Author:
Akos Ladanyi
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2376
Message:

clean-up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-event.cc

    r89 r92  
    627627              dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT);
    628628              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);
    637632              spin.set_numeric(true);
    638               spin.set_digits(4);
    639633              vbox->add(spin);
    640634              spin.show();
     
    720714              dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT);
    721715              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);
    730719              spin.set_numeric(true);
    731               spin.set_digits(4);
    732720              vbox->add(spin);
    733721              spin.show();
Note: See TracChangeset for help on using the changeset viewer.