fltk/test/valuators.fl
Matthias Melcher 5411396ea6 Fixed mousewheel event propagation (STR #1521)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 10:40:37 +00:00

62 lines
1.4 KiB
Plaintext

# data file for the Fltk User Interface Designer (fluid)
version 1.0108
header_name {.h}
code_name {.cxx}
decl {\#include "eventnames.h" // Thanks Greg!} {}
decl {\#include <FL/Fl_Window.H>} {public
}
decl {\#include <cstdio>} {}
Function {} {open
} {
Fl_Window normal {
label Normal
private xywh {589 203 305 208} type Single hide
class Normal
} {}
Fl_Window modal {
label Modal selected
private xywh {685 85 100 100} type Single hide
class Modal
} {}
code {//modal->set_modal();
normal->show(argc, argv);} {}
}
class Normal {: {public Fl_Window}
} {
Function {Normal(int x, int y, int w, int h, const char* l = 0): Fl_Window(x,y,w,h,l)} {open
} {}
Function {handle(int e)} {open return_type int
} {
code {printf("Normal got an %s\\n",
fltk_eventnames[e]);
fflush(stdout);
Fl_Window::handle(e);
return 0;} {}
}
}
class Modal {open : {public Fl_Window}
} {
Function {Modal(int x, int y, int w, int h, const char* l = 0): Fl_Window(x,y,w,h,l)} {open
} {
code {set_modal();} {}
}
Function {handle(int e)} {open return_type int
} {
code {printf(" Modal got an %s\\n",
fltk_eventnames[e]);
fflush(stdout);
/* Uncomment "return" to return subclass' handle()
* result. It reactivates Fl_Escape closing the
* window, but otherwise, doesn't seem to matter.
*/
//return
Fl_Window::handle(e);
return 1;} {}
}
}