]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/FileDialog.hxx
FlightRecorder: smarter log warning.
[flightgear.git] / src / GUI / FileDialog.hxx
index 703b1aabcabd69b5eb546db33b8582155208ce79..57fd89103cdae21f9b7259648b415e467ec635f5 100644 (file)
@@ -17,11 +17,16 @@ class FGFileDialog
 {
 public:
     typedef enum {
-        USE_OPEN_FILE,
+        USE_OPEN_FILE = 0,
         USE_SAVE_FILE,
         USE_CHOOSE_DIR
     } Usage;
     
+    std::string getTitle() const
+    { return _title; }
+    
+    void setTitle(const std::string& aTitle);
+
     std::string getButton() const
     { return _buttonText; }
     
@@ -53,7 +58,8 @@ public:
     virtual ~FGFileDialog ();
 
      virtual void exec() = 0;
-
+     virtual void close() = 0;
+    
      class Callback
      {
      public:
@@ -64,9 +70,10 @@ public:
      virtual void setCallback(Callback* aCB);
 
     naRef openFromNasal(const nasal::CallContext& ctx);
+    naRef closeFromNasal(const nasal::CallContext& ctx);
     naRef setCallbackFromNasal(const nasal::CallContext& ctx);
 protected:
-    FGFileDialog(const std::string& aTitle, Usage use);
+    FGFileDialog(Usage use);
     
     const Usage _usage;
     std::string _title, _buttonText;