diff options
Diffstat (limited to 'src/frontend/dialog_rate.fl')
-rwxr-xr-x | src/frontend/dialog_rate.fl | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/frontend/dialog_rate.fl b/src/frontend/dialog_rate.fl new file mode 100755 index 0000000..9f397bf --- /dev/null +++ b/src/frontend/dialog_rate.fl | |||
@@ -0,0 +1,58 @@ | |||
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 | decl {\#include <FL/fl_ask.H>} {public | ||
9 | } | ||
10 | |||
11 | class dialog_rename {open | ||
12 | } { | ||
13 | decl {int buttonclicked;} {public | ||
14 | } | ||
15 | decl {hd24song* currsong;} {} | ||
16 | decl {string* itemname;} {public | ||
17 | } | ||
18 | Function {~dialog_rename()} {open | ||
19 | } { | ||
20 | code {if (itemname!=NULL) delete itemname;} {} | ||
21 | } | ||
22 | decl {int locnum;} {} | ||
23 | Function {make_window(string* p_currname,string* p_title)} {open | ||
24 | } { | ||
25 | Fl_Window renamewindow { | ||
26 | label {Sample rate} open | ||
27 | xywh {277 310 490 75} type Double color 52 | ||
28 | code0 {buttonclicked=0;} | ||
29 | code1 {currname->value(p_currname->c_str());} | ||
30 | code2 {o->label(p_title->c_str());} modal visible | ||
31 | } { | ||
32 | Fl_Button button_ok { | ||
33 | label OK | ||
34 | callback {buttonclicked=1; //OK | ||
35 | char dest[66]; | ||
36 | strncpy(&dest[0],currname->value(),64); | ||
37 | dest[64]='\\0'; | ||
38 | itemname=new string(dest); | ||
39 | Fl_Window * x = Fl::first_window(); | ||
40 | x->~Fl_Window();} | ||
41 | xywh {330 40 70 25} | ||
42 | } | ||
43 | Fl_Button button_cancel { | ||
44 | label Cancel | ||
45 | callback {buttonclicked=2; //Cancel | ||
46 | Fl_Window * x = Fl::first_window(); | ||
47 | x->~Fl_Window();} | ||
48 | xywh {405 40 70 25} | ||
49 | } | ||
50 | Fl_Input currname { | ||
51 | label {New rate:} selected | ||
52 | xywh {90 10 385 20} labelsize 12 textsize 12 | ||
53 | code0 {o->maximum_size(64);} | ||
54 | code1 {o->take_focus();} | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | } | ||