]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgadmin/src/fgadmin.fl
FGCom integrated into FlightGear.
[flightgear.git] / utils / fgadmin / src / fgadmin.fl
index 84a13f87b42dcae061e741c1d6d65a4f0278f6c8..c023ebad94d6e2c4d936b5e65015afabae858758 100644 (file)
@@ -1,5 +1,5 @@
 # data file for the Fltk User Interface Designer (fluid)
-version 1.0104 
+version 1.0106 
 header_name {.h} 
 code_name {.cxx}
 decl {\#include <string>} {public
@@ -8,10 +8,12 @@ decl {\#include <string>} {public
 decl {\#include <FL/Fl_Preferences.H>} {public
 } 
 
+decl {\#include <FL/fl_ask.H>} {} 
+
 decl {using std::string;} {public
 } 
 
-class FGAdminUI {open selected
+class FGAdminUI {open
 } {
   decl {\#include <iostream>} {}
   decl {using std::cout;} {}
@@ -19,49 +21,89 @@ class FGAdminUI {open selected
   Function {FGAdminUI()} {open
   } {
     Fl_Window main_window {
-      label {FlightGear Admin Wizard} open
-      xywh {186 521 465 435} type Double visible
+      label {FlightGear Admin Wizard}
+      callback {fl_alert("Use the Quit button to exit fgadmin");} open
+      xywh {500 247 465 435} type Double resizable visible
     } {
-      Fl_Button quit_b {
-        label Quit
-        callback {quit();}
-        xywh {190 405 85 25}
+      Fl_Group {} {open
+        xywh {5 405 455 25}
+      } {
+        Fl_Button quit_b {
+          label Quit
+          callback {quit();}
+          xywh {375 405 85 25}
+        }
+        Fl_Progress progress {
+          xywh {5 405 365 25} color 49 selection_color 175 resizable
+        }
       }
-      Fl_Button source_b {
-        label {Select Scenery Source ...}
-        callback {select_install_source();
+      Fl_Group {} {open
+        xywh {5 5 460 390} resizable
+      } {
+        Fl_Group {} {open
+          xywh {5 5 225 390}
+        } {
+          Fl_Button source_b {
+            label {Select Scenery Source ...}
+            callback {select_install_source();
 refresh_lists();}
-        xywh {5 5 225 25}
-      }
-      Fl_Input source_text {
-        xywh {5 35 225 25}
-      }
-      Fl_Button dest_b {
-        label {Select Install Destination ...}
-        callback {select_install_dest();
+            xywh {5 5 225 25}
+          }
+          Fl_Input source_text {
+            xywh {5 35 225 25}
+          }
+          Fl_Check_Browser install_box {
+            label {Select Files to Install}
+            xywh {5 95 225 240} resizable
+          }
+          Fl_Button install_b {
+            label {Install Selected Files}
+            callback {install_selected();}
+            xywh {20 360 195 35} labelfont 1
+          }
+          Fl_Button source_sel_all {
+            label {Select all}
+            callback {install_box->check_all();}
+            xywh {5 65 110 25}
+          }
+          Fl_Button source_desel_all {
+            label {Deselect all}
+            callback {install_box->check_none();}
+            xywh {120 65 110 25}
+          }
+        }
+        Fl_Group {} {open
+          xywh {230 5 230 390}
+        } {
+          Fl_Button dest_b {
+            label {Select Install Destination ...}
+            callback {select_install_dest();
 refresh_lists();}
-        xywh {235 5 225 25}
-      }
-      Fl_Input dest_text {
-        xywh {235 35 225 25}
-      }
-      Fl_Check_Browser install_box {
-        label {Select Files to Install}
-        xywh {5 65 225 270}
-      }
-      Fl_Check_Browser remove_box {
-        label {Select Files to Remove}
-        xywh {235 65 225 270}
-      }
-      Fl_Button install_b {
-        label {Install Selected Files}
-        callback {install_selected();}
-        xywh {20 360 195 35} labelfont 1
-      }
-      Fl_Button remove_b {
-        label {Remove Selected Files}
-        callback {remove_selected();}
-        xywh {250 360 195 35} labelfont 1
+            xywh {235 5 225 25}
+          }
+          Fl_Input dest_text {
+            xywh {235 35 225 25}
+          }
+          Fl_Check_Browser remove_box {
+            label {Select Files to Remove}
+            xywh {235 95 225 240} resizable
+          }
+          Fl_Button remove_b {
+            label {Remove Selected Files}
+            callback {remove_selected();}
+            xywh {250 360 195 35} labelfont 1
+          }
+          Fl_Button dest_sel_all {
+            label {Select all}
+            callback {remove_box->check_all();}
+            xywh {235 65 110 25}
+          }
+          Fl_Button dest_desel_all {
+            label {Deselect all}
+            callback {remove_box->check_none();} selected
+            xywh {350 65 110 25}
+          }
+        }
       }
     }
   }
@@ -71,6 +113,10 @@ refresh_lists();}
   }
   decl {void show();} {public
   }
+  decl {static void step( void * );} {public
+  }
+  decl {static void step( void *, int );} {public
+  }
   decl {void refresh_lists();} {}
   decl {void quit();} {}
   decl {void select_install_source();} {}
@@ -79,7 +125,12 @@ refresh_lists();}
   decl {void update_remove_box();} {}
   decl {void install_selected();} {}
   decl {void remove_selected();} {}
+  decl {void select_all_source();} {}
+  decl {void deselect_all_source();} {}
+  decl {void select_all_dest();} {}
+  decl {void deselect_all_dest();} {}
   decl {Fl_Preferences *prefs;} {}
   decl {string source;} {}
   decl {string dest;} {}
+  decl {string progress_label;} {}
 }