blob: 9f397bfa5cd1e468f5a88fdc11d815e8b758f339 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# data file for the Fltk User Interface Designer (fluid)
version 1.0107
header_name {.h}
code_name {.cxx}
decl {\#include <hd24fs.h>} {public
}
decl {\#include <FL/fl_ask.H>} {public
}
class dialog_rename {open
} {
decl {int buttonclicked;} {public
}
decl {hd24song* currsong;} {}
decl {string* itemname;} {public
}
Function {~dialog_rename()} {open
} {
code {if (itemname!=NULL) delete itemname;} {}
}
decl {int locnum;} {}
Function {make_window(string* p_currname,string* p_title)} {open
} {
Fl_Window renamewindow {
label {Sample rate} open
xywh {277 310 490 75} type Double color 52
code0 {buttonclicked=0;}
code1 {currname->value(p_currname->c_str());}
code2 {o->label(p_title->c_str());} modal visible
} {
Fl_Button button_ok {
label OK
callback {buttonclicked=1; //OK
char dest[66];
strncpy(&dest[0],currname->value(),64);
dest[64]='\\0';
itemname=new string(dest);
Fl_Window * x = Fl::first_window();
x->~Fl_Window();}
xywh {330 40 70 25}
}
Fl_Button button_cancel {
label Cancel
callback {buttonclicked=2; //Cancel
Fl_Window * x = Fl::first_window();
x->~Fl_Window();}
xywh {405 40 70 25}
}
Fl_Input currname {
label {New rate:} selected
xywh {90 10 385 20} labelsize 12 textsize 12
code0 {o->maximum_size(64);}
code1 {o->take_focus();}
}
}
}
}
|