1 // generated by Fast Light User Interface Designer (fluid) version 1.0106
10 inline void FGAdminUI::cb_main_window_i(Fl_Double_Window*, void*) {
11 fl_alert("Use the Quit button to exit fgadmin");
13 void FGAdminUI::cb_main_window(Fl_Double_Window* o, void* v) {
14 ((FGAdminUI*)(o->user_data()))->cb_main_window_i(o,v);
17 inline void FGAdminUI::cb_quit_b_i(Fl_Button*, void*) {
20 void FGAdminUI::cb_quit_b(Fl_Button* o, void* v) {
21 ((FGAdminUI*)(o->parent()->parent()->user_data()))->cb_quit_b_i(o,v);
24 inline void FGAdminUI::cb_source_b_i(Fl_Button*, void*) {
25 select_install_source();
28 void FGAdminUI::cb_source_b(Fl_Button* o, void* v) {
29 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_source_b_i(o,v);
32 inline void FGAdminUI::cb_install_b_i(Fl_Button*, void*) {
35 void FGAdminUI::cb_install_b(Fl_Button* o, void* v) {
36 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_install_b_i(o,v);
39 inline void FGAdminUI::cb_source_sel_all_i(Fl_Button*, void*) {
40 install_box->check_all();
42 void FGAdminUI::cb_source_sel_all(Fl_Button* o, void* v) {
43 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_source_sel_all_i(o,v);
46 inline void FGAdminUI::cb_source_desel_all_i(Fl_Button*, void*) {
47 install_box->check_none();
49 void FGAdminUI::cb_source_desel_all(Fl_Button* o, void* v) {
50 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_source_desel_all_i(o,v);
53 inline void FGAdminUI::cb_dest_b_i(Fl_Button*, void*) {
54 select_install_dest();
57 void FGAdminUI::cb_dest_b(Fl_Button* o, void* v) {
58 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_dest_b_i(o,v);
61 inline void FGAdminUI::cb_remove_b_i(Fl_Button*, void*) {
64 void FGAdminUI::cb_remove_b(Fl_Button* o, void* v) {
65 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_remove_b_i(o,v);
68 inline void FGAdminUI::cb_dest_sel_all_i(Fl_Button*, void*) {
69 remove_box->check_all();
71 void FGAdminUI::cb_dest_sel_all(Fl_Button* o, void* v) {
72 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_dest_sel_all_i(o,v);
75 inline void FGAdminUI::cb_dest_desel_all_i(Fl_Button*, void*) {
76 remove_box->check_none();
78 void FGAdminUI::cb_dest_desel_all(Fl_Button* o, void* v) {
79 ((FGAdminUI*)(o->parent()->parent()->parent()->user_data()))->cb_dest_desel_all_i(o,v);
82 FGAdminUI::FGAdminUI() {
84 { Fl_Double_Window* o = main_window = new Fl_Double_Window(465, 435, "FlightGear Admin Wizard");
86 o->callback((Fl_Callback*)cb_main_window, (void*)(this));
87 { Fl_Group* o = new Fl_Group(5, 405, 455, 25);
88 { Fl_Button* o = quit_b = new Fl_Button(375, 405, 85, 25, "Quit");
89 o->callback((Fl_Callback*)cb_quit_b);
91 { Fl_Progress* o = progress = new Fl_Progress(5, 405, 365, 25);
92 o->color(FL_BACKGROUND_COLOR);
93 o->selection_color((Fl_Color)175);
94 Fl_Group::current()->resizable(o);
98 { Fl_Group* o = new Fl_Group(5, 5, 460, 390);
99 { Fl_Group* o = new Fl_Group(5, 5, 225, 390);
100 { Fl_Button* o = source_b = new Fl_Button(5, 5, 225, 25, "Select Scenery Source ...");
101 o->callback((Fl_Callback*)cb_source_b);
103 source_text = new Fl_Input(5, 35, 225, 25);
104 { Fl_Check_Browser* o = install_box = new Fl_Check_Browser(5, 95, 225, 240, "Select Files to Install");
105 Fl_Group::current()->resizable(o);
107 { Fl_Button* o = install_b = new Fl_Button(20, 360, 195, 35, "Install Selected Files");
109 o->callback((Fl_Callback*)cb_install_b);
111 { Fl_Button* o = source_sel_all = new Fl_Button(5, 65, 110, 25, "Select all");
112 o->callback((Fl_Callback*)cb_source_sel_all);
114 { Fl_Button* o = source_desel_all = new Fl_Button(120, 65, 110, 25, "Deselect all");
115 o->callback((Fl_Callback*)cb_source_desel_all);
119 { Fl_Group* o = new Fl_Group(230, 5, 230, 390);
120 { Fl_Button* o = dest_b = new Fl_Button(235, 5, 225, 25, "Select Install Destination ...");
121 o->callback((Fl_Callback*)cb_dest_b);
123 dest_text = new Fl_Input(235, 35, 225, 25);
124 { Fl_Check_Browser* o = remove_box = new Fl_Check_Browser(235, 95, 225, 240, "Select Files to Remove");
125 Fl_Group::current()->resizable(o);
127 { Fl_Button* o = remove_b = new Fl_Button(250, 360, 195, 35, "Remove Selected Files");
129 o->callback((Fl_Callback*)cb_remove_b);
131 { Fl_Button* o = dest_sel_all = new Fl_Button(235, 65, 110, 25, "Select all");
132 o->callback((Fl_Callback*)cb_dest_sel_all);
134 { Fl_Button* o = dest_desel_all = new Fl_Button(350, 65, 110, 25, "Deselect all");
135 o->callback((Fl_Callback*)cb_dest_desel_all);
140 Fl_Group::current()->resizable(o);