]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/filectrl.h
added wxGrid::SetColumnsOrder() too
[wxWidgets.git] / include / wx / gtk / filectrl.h
index 9192a5987b0bef0c465e1b2ac0ff3a544a9a4a72..e194bfc49fa41ae26f4de1162ce3bfec3d362b15 100644 (file)
@@ -16,7 +16,7 @@
 #include "wx/control.h"
 #include "wx/filectrl.h"
 
-extern WXDLLEXPORT_DATA(const char) wxFileSelectorDefaultWildcardStr[];
+extern WXDLLIMPEXP_DATA_CORE(const char) wxFileSelectorDefaultWildcardStr[];
 
 typedef struct _GtkFileChooser GtkFileChooser;
 
@@ -48,8 +48,14 @@ public:
     void SetWildcard( const wxString& wildCard );
     void SetFilterIndex( int filterIndex );
 
+    wxString GetCurrentWildCard() const
+       { return m_wildcards[GetFilterIndex()]; }
+
 private:
     GtkFileChooser *m_widget;
+    // First wildcard in filter, to be used when the user
+    // saves a file without giving an extension.
+    wxArrayString   m_wildcards; 
 };
 
 #if wxUSE_FILECTRL