From 30ce52c112baec6fcc94193618124ce88f53847c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 5 May 2005 17:44:08 +0000 Subject: set sliders acording to comp/guess result set sliders acording to comp/guess result --- src/gipfel.cxx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/gipfel.cxx') diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 622424a..cc04a60 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -1,5 +1,5 @@ // -// "$Id: gipfel.cxx,v 1.17 2005/05/05 17:37:37 hofmann Exp $" +// "$Id: gipfel.cxx,v 1.18 2005/05/05 19:44:08 hofmann Exp $" // // flpsed program. // @@ -88,12 +88,21 @@ void h_d_cb(Fl_Slider* o, void*) { void comp_cb(Fl_Widget *, void *) { if (gipf) { gipf->comp_params(); + fprintf(stderr, " == cent %f\n", gipf->get_center_angle()); + s_center->value(gipf->get_center_angle()); + s_nick->value(gipf->get_nick_angle()); + s_scale->value(gipf->get_scale()); + s_tilt->value(gipf->get_tilt_angle()); } } void guess_cb(Fl_Widget *, void *) { if (gipf) { gipf->guess(); + s_center->value(gipf->get_center_angle()); + s_nick->value(gipf->get_nick_angle()); + s_scale->value(gipf->get_scale()); + s_tilt->value(gipf->get_tilt_angle()); } } @@ -233,7 +242,12 @@ int main(int argc, char** argv) { gipf->set_viewpoint(view_point); } scroll->end(); - + + s_center->value(gipf->get_center_angle()); + s_nick->value(gipf->get_nick_angle()); + s_scale->value(gipf->get_scale()); + s_tilt->value(gipf->get_tilt_angle()); + win->resizable(scroll); win->end(); -- cgit v1.2.3