diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-04-30 19:18:43 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-04-30 19:18:43 +0000 |
commit | 8e68a209fd09c57b33c95cb402d2da728c42505e (patch) | |
tree | 60c965ed02e524eece62d5e4d8b391af1e4f1d9e /src/gipfel.cxx | |
parent | 4d45693c9f800f7d7bb8921da76f36bde5e00c43 (diff) |
first try with guesing
first try with guesing
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r-- | src/gipfel.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index f3dc20d..4539913 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -1,5 +1,5 @@ // -// "$Id: gipfel.cxx,v 1.14 2005/04/30 09:42:47 hofmann Exp $" +// "$Id: gipfel.cxx,v 1.15 2005/04/30 21:18:43 hofmann Exp $" // // flpsed program. // @@ -90,6 +90,12 @@ void comp_cb(Fl_Widget *, void *) { } } +void guess_cb(Fl_Widget *, void *) { + if (gipf) { + gipf->guess(); + } +} + void about_cb() { fl_message("flpsed -- a pseudo PostScript editor\n" "(c) Johannes Hofmann 2004, 2005\n\n" @@ -207,6 +213,8 @@ int main(int argc, char** argv) { t->align(FL_ALIGN_LEFT); Fl_Button *b = new Fl_Button(200, 60, 20, 15, "comp"); b->callback(comp_cb); + Fl_Button *b1 = new Fl_Button(250, 60, 20, 15, "guess"); + b1->callback(guess_cb); scroll = new Fl_Scroll(0, 75, win->w(), win->h()-75); |