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() {
83 { Fl_Double_Window* o = main_window = new Fl_Double_Window(465, 435, "FlightGear Admin Wizard");
84 o->callback((Fl_Callback*)cb_main_window, (void*)(this));
85 { Fl_Group* o = new Fl_Group(5, 405, 455, 25);
86 { Fl_Button* o = quit_b = new Fl_Button(375, 405, 85, 25, "Quit");
87 o->callback((Fl_Callback*)cb_quit_b);
89 { Fl_Progress* o = progress = new Fl_Progress(5, 405, 365, 25);
90 o->color(FL_BACKGROUND_COLOR);
91 o->selection_color((Fl_Color)175);
92 Fl_Group::current()->resizable(o);
96 { Fl_Group* o = new Fl_Group(5, 5, 460, 390);
97 { Fl_Group* o = new Fl_Group(5, 5, 225, 390);
98 { Fl_Button* o = source_b = new Fl_Button(5, 5, 225, 25, "Select Scenery Source ...");
99 o->callback((Fl_Callback*)cb_source_b);
101 source_text = new Fl_Input(5, 35, 225, 25);
102 { Fl_Check_Browser* o = install_box = new Fl_Check_Browser(5, 95, 225, 240, "Select Files to Install");
103 Fl_Group::current()->resizable(o);
105 { Fl_Button* o = install_b = new Fl_Button(20, 360, 195, 35, "Install Selected Files");
107 o->callback((Fl_Callback*)cb_install_b);
109 { Fl_Button* o = source_sel_all = new Fl_Button(5, 65, 110, 25, "Select all");
110 o->callback((Fl_Callback*)cb_source_sel_all);
112 { Fl_Button* o = source_desel_all = new Fl_Button(120, 65, 110, 25, "Deselect all");
113 o->callback((Fl_Callback*)cb_source_desel_all);
117 { Fl_Group* o = new Fl_Group(230, 5, 230, 390);
118 { Fl_Button* o = dest_b = new Fl_Button(235, 5, 225, 25, "Select Install Destination ...");
119 o->callback((Fl_Callback*)cb_dest_b);
121 dest_text = new Fl_Input(235, 35, 225, 25);
122 { Fl_Check_Browser* o = remove_box = new Fl_Check_Browser(235, 95, 225, 240, "Select Files to Remove");
123 Fl_Group::current()->resizable(o);
125 { Fl_Button* o = remove_b = new Fl_Button(250, 360, 195, 35, "Remove Selected Files");
127 o->callback((Fl_Callback*)cb_remove_b);
129 { Fl_Button* o = dest_sel_all = new Fl_Button(235, 65, 110, 25, "Select all");
130 o->callback((Fl_Callback*)cb_dest_sel_all);
132 { Fl_Button* o = dest_desel_all = new Fl_Button(350, 65, 110, 25, "Deselect all");
133 o->callback((Fl_Callback*)cb_dest_desel_all);
138 Fl_Group::current()->resizable(o);