]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/filectrl.h
refactor wxStaticText::Ellipsize so it's a static public utility function; document...
[wxWidgets.git] / include / wx / gtk / filectrl.h
index c38c4debe00762d1d4c2d28435af665214cc2b5b..e194bfc49fa41ae26f4de1162ce3bfec3d362b15 100644 (file)
@@ -16,7 +16,7 @@
 #include "wx/control.h"
 #include "wx/filectrl.h"
 
-extern WXDLLEXPORT_DATA(const wxChar) 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