aboutsummaryrefslogtreecommitdiff
path: root/src/installer/ui_instdir.fl
diff options
context:
space:
mode:
Diffstat (limited to 'src/installer/ui_instdir.fl')
-rw-r--r--src/installer/ui_instdir.fl105
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)
2version 1.0107
3header_name {.h}
4code_name {.cxx}
5decl {using namespace std;} {public
6}
7
8decl {\#include <string>} {public
9}
10
11decl {\#include <iostream>} {public
12}
13
14decl {\#include <FL/Fl_File_Chooser.H>} {public
15}
16
17decl {\#include <FL/Fl_Native_File_Chooser.H>} {public
18}
19
20class 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;
40chooser.title("Select installation directory");
41chooser.type(Fl_Native_File_Chooser::BROWSE_DIRECTORY||Fl_Native_File_Chooser::BROWSE_SAVE_DIRECTORY||Fl_Native_File_Chooser::NEW_FOLDER);
42chooser.filter("");
43
44string cdir="";
45cdir+=currdir->value();
46
47chooser.directory(cdir.c_str());
48switch (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";
70string newdir=currdir->value();
71strncpy(&instdir[0],newdir.c_str(),128);
72Fl_Window* winx=Fl::first_window();
73winx->~Fl_Window();}
74 xywh {415 320 85 25} color 53 labelsize 12
75 }
76 Fl_Button {} {
77 label Cancel
78 callback {currscreen="cancel\\0";
79Fl_Window* winx=Fl::first_window();
80winx->~Fl_Window();}
81 xywh {505 320 85 25} color 53 labelsize 12
82 }
83 Fl_Button {} {
84 label {< &Back}
85 callback {currscreen="back\\0";
86Fl_Window* winx=Fl::first_window();
87winx->~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
97install in a different folder, click Browse and select
98another folder.
99
100After that, click Next to start the installation.}
101 xywh {175 38 370 81} labelsize 12 align 21
102 }
103 }
104 }
105}