]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/filedlgg.h
wxOS2 build fixes after wxColourBase introduction.
[wxWidgets.git] / include / wx / generic / filedlgg.h
index a8f5ac7c61e1df77a69f531c81b06a0d41f15292..bc6ee53637dfafa2c66ceab154944bbeaaf4241b 100644 (file)
 #ifndef _WX_FILEDLGG_H_
 #define _WX_FILEDLGG_H_
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "filedlgg.h"
-#endif
-
 #include "wx/listctrl.h"
 #include "wx/datetime.h"
+#include "wx/filefn.h"
 
 //-----------------------------------------------------------------------------
 // classes
@@ -45,23 +42,26 @@ class WXDLLEXPORT wxTextCtrl;
 class WXDLLEXPORT wxGenericFileDialog: public wxFileDialogBase
 {
 public:
-    wxGenericFileDialog() { }
+    wxGenericFileDialog() : wxFileDialogBase() { Init(); }
 
     wxGenericFileDialog(wxWindow *parent,
-                 const wxString& message = wxFileSelectorPromptStr,
+                        const wxString& message = wxFileSelectorPromptStr,
                         const wxString& defaultDir = wxEmptyString,
                         const wxString& defaultFile = wxEmptyString,
-                 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
-                 long style = 0,
-                 const wxPoint& pos = wxDefaultPosition,
-                 bool bypassGenericImpl = false );
+                        const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
+                        long style = 0,
+                        const wxPoint& pos = wxDefaultPosition,
+                        bool bypassGenericImpl = false );
+
     bool Create( wxWindow *parent,
                  const wxString& message = wxFileSelectorPromptStr,
-                        const wxString& defaultDir = wxEmptyString,
-                        const wxString& defaultFile = wxEmptyString,
+                 const wxString& defaultDir = wxEmptyString,
+                 const wxString& defaultFile = wxEmptyString,
                  const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
                  long style = 0,
-                 const wxPoint& pos = wxDefaultPosition );
+                 const wxPoint& pos = wxDefaultPosition,
+                 bool bypassGenericImpl = false );
+
     virtual ~wxGenericFileDialog();
 
     virtual void SetMessage(const wxString& message) { SetTitle(message); }
@@ -114,6 +114,7 @@ protected:
     wxBitmapButton *m_newDirButton;
 
 private:
+    void Init();
     DECLARE_DYNAMIC_CLASS(wxGenericFileDialog)
     DECLARE_EVENT_TABLE()
 
@@ -183,7 +184,7 @@ public:
     void SetNewName( const wxString &filePath, const wxString &fileName );
 
     // Get the size of the file in bytes
-    long GetSize() const { return m_size; }
+    wxFileOffset GetSize() const { return m_size; }
     // Get the type of file, either file extension or <DIR>, <LINK>, <DRIVE>
     wxString GetFileType() const;
     // get the last modification time
@@ -231,12 +232,12 @@ public:
 protected:
     wxString m_fileName;
     wxString   m_filePath;
-    long     m_size;
+    wxFileOffset m_size;
     wxDateTime m_dateTime;
     wxString m_permissions;
     int      m_type;
-    int        m_image;
-    
+    int      m_image;
+
 private:
     void Init();
 };