]> git.mxchange.org Git - flightgear.git/blob - utils/fgadmin/src/fgadmin.h
Frederic Bouvier:
[flightgear.git] / utils / fgadmin / src / fgadmin.h
1 // generated by Fast Light User Interface Designer (fluid) version 1.0104
2
3 #ifndef fgadmin_h
4 #define fgadmin_h
5 #include <FL/Fl.H>
6 #include <string>
7 #include <FL/Fl_Preferences.H>
8 using std::string;
9 #include <FL/Fl_Double_Window.H>
10 #include <FL/Fl_Button.H>
11 #include <FL/Fl_Input.H>
12 #include <FL/Fl_Group.H>
13 #include <FL/Fl_Check_Browser.H>
14 #include <FL/Fl_Progress.H>
15
16 class FGAdminUI {
17 public:
18   FGAdminUI();
19   Fl_Double_Window *main_window;
20 private:
21   inline void cb_main_window_i(Fl_Double_Window*, void*);
22   static void cb_main_window(Fl_Double_Window*, void*);
23 public:
24   Fl_Button *quit_b;
25 private:
26   inline void cb_quit_b_i(Fl_Button*, void*);
27   static void cb_quit_b(Fl_Button*, void*);
28 public:
29   Fl_Button *source_b;
30 private:
31   inline void cb_source_b_i(Fl_Button*, void*);
32   static void cb_source_b(Fl_Button*, void*);
33 public:
34   Fl_Input *source_text;
35   Fl_Button *dest_b;
36 private:
37   inline void cb_dest_b_i(Fl_Button*, void*);
38   static void cb_dest_b(Fl_Button*, void*);
39 public:
40   Fl_Input *dest_text;
41   Fl_Check_Browser *install_box;
42   Fl_Check_Browser *remove_box;
43   Fl_Button *install_b;
44 private:
45   inline void cb_install_b_i(Fl_Button*, void*);
46   static void cb_install_b(Fl_Button*, void*);
47 public:
48   Fl_Button *remove_b;
49 private:
50   inline void cb_remove_b_i(Fl_Button*, void*);
51   static void cb_remove_b(Fl_Button*, void*);
52 public:
53   Fl_Progress *progress;
54   ~FGAdminUI();
55   void init();
56   void show();
57   static void step( void * );
58   static void step( void *, int );
59 private:
60   void refresh_lists();
61   void quit();
62   void select_install_source();
63   void select_install_dest();
64   void update_install_box();
65   void update_remove_box();
66   void install_selected();
67   void remove_selected();
68   Fl_Preferences *prefs;
69   string source;
70   string dest;
71   string progress_label;
72 };
73 #endif