diff options
Diffstat (limited to 'src/frontend/dialog_fromto.fl')
-rwxr-xr-x | src/frontend/dialog_fromto.fl | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/frontend/dialog_fromto.fl b/src/frontend/dialog_fromto.fl new file mode 100755 index 0000000..2c5ecb4 --- /dev/null +++ b/src/frontend/dialog_fromto.fl | |||
@@ -0,0 +1,50 @@ | |||
1 | # data file for the Fltk User Interface Designer (fluid) | ||
2 | version 1.0107 | ||
3 | header_name {.h} | ||
4 | code_name {.cxx} | ||
5 | decl {\#include <hd24fs.h>} {public | ||
6 | } | ||
7 | |||
8 | class dialog_fromto {open | ||
9 | } { | ||
10 | decl {int buttonclicked;} {public | ||
11 | } | ||
12 | decl {int choice_startloc;} {public | ||
13 | } | ||
14 | decl {int choice_endloc;} {public | ||
15 | } | ||
16 | Function {make_window(hd24song* currsong)} {open | ||
17 | } { | ||
18 | Fl_Window {} { | ||
19 | label {Set range} open selected | ||
20 | xywh {315 299 360 85} type Double color 52 | ||
21 | code0 {buttonclicked=0;} | ||
22 | code1 {currsong=currsong;} modal visible | ||
23 | } { | ||
24 | Fl_Button button_ok { | ||
25 | label OK | ||
26 | callback {buttonclicked=1; //OK | ||
27 | choice_startloc=fromloc->value(); | ||
28 | choice_endloc=toloc->value(); | ||
29 | Fl_Window * x = Fl::first_window(); | ||
30 | x->~Fl_Window();} | ||
31 | xywh {210 55 70 25} | ||
32 | } | ||
33 | Fl_Button button_cancel { | ||
34 | label Cancel | ||
35 | callback {buttonclicked=2; //Cancel | ||
36 | Fl_Window * x = Fl::first_window(); | ||
37 | x->~Fl_Window();} | ||
38 | xywh {285 55 70 25} | ||
39 | } | ||
40 | Fl_Choice fromloc { | ||
41 | label {From location:} open | ||
42 | xywh {115 5 240 20} down_box BORDER_BOX labelsize 12 textsize 12 | ||
43 | } {} | ||
44 | Fl_Choice toloc { | ||
45 | label {To location:} open | ||
46 | xywh {115 30 240 20} down_box BORDER_BOX labelsize 12 textsize 12 | ||
47 | } {} | ||
48 | } | ||
49 | } | ||
50 | } | ||