X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/260020e39271329f71d1ef7912e3dc8216a2e924..03773e400b6ff2692f2a9ba045d652c3b7b7109d:/include/wx/gtk/filectrl.h diff --git a/include/wx/gtk/filectrl.h b/include/wx/gtk/filectrl.h index 77b5fa193f..e84fff83f4 100644 --- a/include/wx/gtk/filectrl.h +++ b/include/wx/gtk/filectrl.h @@ -9,12 +9,14 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifndef FILECTRL_H -#define FILECTRL_H + +#ifndef _WX_GTK_FILECTRL_H_ +#define _WX_GTK_FILECTRL_H_ #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; @@ -46,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 @@ -115,5 +123,5 @@ protected: #endif // wxUSE_FILECTRL -#endif // FILECTRL_H +#endif // _WX_GTK_FILECTRL_H_