]> git.mxchange.org Git - flightgear.git/blob - utils/fgadmin/src/fgadmin.fl
Updates from Fred to add a progress bar and fix visual glitches.
[flightgear.git] / utils / fgadmin / src / fgadmin.fl
1 # data file for the Fltk User Interface Designer (fluid)
2 version 1.0104 
3 header_name {.h} 
4 code_name {.cxx}
5 decl {\#include <string>} {public
6
7
8 decl {\#include <FL/Fl_Preferences.H>} {public
9
10
11 decl {using std::string;} {public
12
13
14 class FGAdminUI {open
15 } {
16   decl {\#include <iostream>} {}
17   decl {using std::cout;} {}
18   decl {using std::endl;} {}
19   Function {FGAdminUI()} {open
20   } {
21     Fl_Window main_window {
22       label {FlightGear Admin Wizard} open
23       xywh {294 195 465 435} type Double visible
24     } {
25       Fl_Button quit_b {
26         label Quit
27         callback {quit();}
28         xywh {360 405 85 25}
29       }
30       Fl_Button source_b {
31         label {Select Scenery Source ...}
32         callback {select_install_source();
33 refresh_lists();}
34         xywh {5 5 225 25}
35       }
36       Fl_Input source_text {
37         xywh {5 35 225 25}
38       }
39       Fl_Button dest_b {
40         label {Select Install Destination ...}
41         callback {select_install_dest();
42 refresh_lists();}
43         xywh {235 5 225 25}
44       }
45       Fl_Input dest_text {
46         xywh {235 35 225 25}
47       }
48       Fl_Check_Browser install_box {
49         label {Select Files to Install}
50         xywh {5 65 225 270}
51       }
52       Fl_Check_Browser remove_box {
53         label {Select Files to Remove}
54         xywh {235 65 225 270}
55       }
56       Fl_Button install_b {
57         label {Install Selected Files}
58         callback {install_selected();}
59         xywh {20 360 195 35} labelfont 1
60       }
61       Fl_Button remove_b {
62         label {Remove Selected Files}
63         callback {remove_selected();}
64         xywh {250 360 195 35} labelfont 1
65       }
66       Fl_Progress progress {selected
67         xywh {20 405 195 25} color 49 selection_color 175
68       }
69     }
70   }
71   decl {~FGAdminUI();} {public
72   }
73   decl {void init();} {public
74   }
75   decl {void show();} {public
76   }
77   decl {static void step( void * );} {public
78   }
79   decl {void refresh_lists();} {}
80   decl {void quit();} {}
81   decl {void select_install_source();} {}
82   decl {void select_install_dest();} {}
83   decl {void update_install_box();} {}
84   decl {void update_remove_box();} {}
85   decl {void install_selected();} {}
86   decl {void remove_selected();} {}
87   decl {Fl_Preferences *prefs;} {}
88   decl {string source;} {}
89   decl {string dest;} {}
90