aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/dialog_rate.fl
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/dialog_rate.fl')
-rwxr-xr-xsrc/frontend/dialog_rate.fl58
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)
2version 1.0107
3header_name {.h}
4code_name {.cxx}
5decl {\#include <hd24fs.h>} {public
6}
7
8decl {\#include <FL/fl_ask.H>} {public
9}
10
11class 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
35char dest[66];
36strncpy(&dest[0],currname->value(),64);
37dest[64]='\\0';
38itemname=new string(dest);
39Fl_Window * x = Fl::first_window();
40x->~Fl_Window();}
41 xywh {330 40 70 25}
42 }
43 Fl_Button button_cancel {
44 label Cancel
45 callback {buttonclicked=2; //Cancel
46Fl_Window * x = Fl::first_window();
47x->~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}