summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-04-17 18:03:13 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-04-17 18:03:13 +0000
commit53ff36907392c1d4775bcfdfb6201bd210fdb23b (patch)
tree84530d4758999c71f86c8710a174986213df29b1 /src/gipfel.cxx
parentd2a7cbd2527455ccf070d748d72c69a43330b6a1 (diff)
nick geht
nick geht
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 3305312..c940a56 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: gipfel.cxx,v 1.9 2005/04/14 21:48:28 hofmann Exp $"
+// "$Id: gipfel.cxx,v 1.10 2005/04/17 20:03:13 hofmann Exp $"
//
// flpsed program.
//
@@ -78,6 +78,12 @@ void h_d_cb(Fl_Slider* o, void*) {
}
}
+void comp_cb(Fl_Widget *, void *) {
+ if (gipf) {
+ gipf->comp_params();
+ }
+}
+
void about_cb() {
fl_message("flpsed -- a pseudo PostScript editor\n"
"(c) Johannes Hofmann 2004, 2005\n\n"
@@ -161,8 +167,8 @@ int main(int argc, char** argv) {
s->type(1);
s->box(FL_THIN_DOWN_BOX);
s->labelsize(10);
- s->step(10.0);
- s->bounds(0.0, 2000.0);
+ s->step(5.0);
+ s->bounds(0.0, 10000.0);
s->slider(FL_UP_BOX);
s->callback((Fl_Callback*)scale_cb);
s->align(FL_ALIGN_LEFT);
@@ -184,6 +190,8 @@ int main(int argc, char** argv) {
r->slider(FL_UP_BOX);
r->callback((Fl_Callback*)h_d_cb);
r->align(FL_ALIGN_LEFT);
+ Fl_Button *b = new Fl_Button(780, 45, 20, 15, "comp");
+ b->callback(comp_cb);
scroll = new Fl_Scroll(0, 60, win->w(), win->h()-60);