summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-04-13 20:24:53 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-04-13 20:24:53 +0000
commitcb69ce80f60b07e152ca464c2c08eaeb3b159ec6 (patch)
tree37ea856f254afca991650b75da93b3f1eeabbeed /src/gipfel.cxx
parent5e7c5bafd0828f09ca66d5311636700b51cc77ea (diff)
add h_d slider
add h_d slider
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 3705986..14c618c 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: gipfel.cxx,v 1.5 2005/04/13 21:58:31 hofmann Exp $"
+// "$Id: gipfel.cxx,v 1.6 2005/04/13 22:24:53 hofmann Exp $"
//
// flpsed program.
//
@@ -66,6 +66,12 @@ void angle_cb(Fl_Slider* o, void*) {
}
}
+void h_d_cb(Fl_Slider* o, void*) {
+ if (gipf) {
+ gipf->set_height_dist_ratio((double)(o->value()));
+ }
+}
+
void about_cb() {
fl_message("flpsed -- a pseudo PostScript editor\n"
"(c) Johannes Hofmann 2004, 2005\n\n"
@@ -141,17 +147,25 @@ int main(int argc, char** argv) {
s->box(FL_THIN_DOWN_BOX);
s->labelsize(10);
s->step(10.0);
- s->bounds(0.0, 800.0);
+ s->bounds(0.0, 2000.0);
s->slider(FL_UP_BOX);
s->callback((Fl_Callback*)scale_cb);
Fl_Slider* a = new Fl_Slider(160, 30, 160, 15, "angle");
a->type(1);
a->box(FL_THIN_DOWN_BOX);
a->labelsize(10);
- a->step(0.01);
- a->bounds(-4.0, 4.0);
+ a->step(0.0001);
+ a->bounds(-6.4, 6.4);
a->slider(FL_UP_BOX);
a->callback((Fl_Callback*)angle_cb);
+ Fl_Slider* r = new Fl_Slider(320, 30, 160, 15, "height-dist");
+ r->type(1);
+ r->box(FL_THIN_DOWN_BOX);
+ r->labelsize(10);
+ r->step(-0.005);
+ r->bounds(0.2, 0.02);
+ r->slider(FL_UP_BOX);
+ r->callback((Fl_Callback*)h_d_cb);
scroll = new Fl_Scroll(0, 60, win->w(), win->h()-60);