diff options
Diffstat (limited to 'src/installer/ui_instdir.fl')
-rw-r--r-- | src/installer/ui_instdir.fl | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/src/installer/ui_instdir.fl b/src/installer/ui_instdir.fl new file mode 100644 index 0000000..2f62e78 --- /dev/null +++ b/src/installer/ui_instdir.fl | |||
@@ -0,0 +1,105 @@ | |||
1 | # data file for the Fltk User Interface Designer (fluid) | ||
2 | version 1.0107 | ||
3 | header_name {.h} | ||
4 | code_name {.cxx} | ||
5 | decl {using namespace std;} {public | ||
6 | } | ||
7 | |||
8 | decl {\#include <string>} {public | ||
9 | } | ||
10 | |||
11 | decl {\#include <iostream>} {public | ||
12 | } | ||
13 | |||
14 | decl {\#include <FL/Fl_File_Chooser.H>} {public | ||
15 | } | ||
16 | |||
17 | decl {\#include <FL/Fl_Native_File_Chooser.H>} {public | ||
18 | } | ||
19 | |||
20 | class UI_Instdir {open | ||
21 | } { | ||
22 | decl {char* currscreen;} {public | ||
23 | } | ||
24 | decl {char* instdir;} {public | ||
25 | } | ||
26 | Function {make_window(char* p_currscreen,char* p_instdir)} {open | ||
27 | } { | ||
28 | Fl_Window {} { | ||
29 | label {HD24tools HD24VERSION - Setup Wizard} open selected | ||
30 | xywh {1246 284 590 350} type Double color 7 | ||
31 | code0 {currscreen=p_currscreen;} | ||
32 | code1 {instdir=p_instdir;} visible | ||
33 | } { | ||
34 | Fl_Box {} { | ||
35 | image {welcome.png} xywh {0 -137 165 487} | ||
36 | } | ||
37 | Fl_Button {} { | ||
38 | label {&Browse...} | ||
39 | callback {Fl_Native_File_Chooser chooser; | ||
40 | chooser.title("Select installation directory"); | ||
41 | chooser.type(Fl_Native_File_Chooser::BROWSE_DIRECTORY||Fl_Native_File_Chooser::BROWSE_SAVE_DIRECTORY||Fl_Native_File_Chooser::NEW_FOLDER); | ||
42 | chooser.filter(""); | ||
43 | |||
44 | string cdir=""; | ||
45 | cdir+=currdir->value(); | ||
46 | |||
47 | chooser.directory(cdir.c_str()); | ||
48 | switch (chooser.show()) { | ||
49 | case -1: break; //error | ||
50 | case 1: break; //cancel | ||
51 | default: | ||
52 | if (chooser.filename()) { | ||
53 | currdir->value(chooser.filename()); | ||
54 | } | ||
55 | |||
56 | break; | ||
57 | }} | ||
58 | xywh {505 125 80 20} color 53 labelsize 12 | ||
59 | } | ||
60 | Fl_Box {} { | ||
61 | label {Choose installation directory} | ||
62 | xywh {175 -3 320 33} labelfont 1 labelsize 16 align 20 | ||
63 | } | ||
64 | Fl_Group {} {open | ||
65 | xywh {-5 315 620 35} box BORDER_BOX color 53 selection_color 47 | ||
66 | } { | ||
67 | Fl_Button button_next { | ||
68 | label {&Next >} | ||
69 | callback {currscreen="next\\0"; | ||
70 | string newdir=currdir->value(); | ||
71 | strncpy(&instdir[0],newdir.c_str(),128); | ||
72 | Fl_Window* winx=Fl::first_window(); | ||
73 | winx->~Fl_Window();} | ||
74 | xywh {415 320 85 25} color 53 labelsize 12 | ||
75 | } | ||
76 | Fl_Button {} { | ||
77 | label Cancel | ||
78 | callback {currscreen="cancel\\0"; | ||
79 | Fl_Window* winx=Fl::first_window(); | ||
80 | winx->~Fl_Window();} | ||
81 | xywh {505 320 85 25} color 53 labelsize 12 | ||
82 | } | ||
83 | Fl_Button {} { | ||
84 | label {< &Back} | ||
85 | callback {currscreen="back\\0"; | ||
86 | Fl_Window* winx=Fl::first_window(); | ||
87 | winx->~Fl_Window();} | ||
88 | xywh {330 320 85 25} color 53 labelsize 12 | ||
89 | } | ||
90 | } | ||
91 | Fl_Input currdir { | ||
92 | xywh {175 125 325 20} labelsize 12 align 5 textsize 11 | ||
93 | code0 {currdir->value(p_instdir);} | ||
94 | } | ||
95 | Fl_Box {} { | ||
96 | label {Setup will install HD24tools in the following folder. To | ||
97 | install in a different folder, click Browse and select | ||
98 | another folder. | ||
99 | |||
100 | After that, click Next to start the installation.} | ||
101 | xywh {175 38 370 81} labelsize 12 align 21 | ||
102 | } | ||
103 | } | ||
104 | } | ||
105 | } | ||