X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cf3e587a2ec542ba1eb6e03a84c54edefae1881..a2580e1c491f912bcf86ead99859d69ab525ce2e:/include/wx/gtk/filectrl.h diff --git a/include/wx/gtk/filectrl.h b/include/wx/gtk/filectrl.h index fee2f569d1..e194bfc49f 100644 --- a/include/wx/gtk/filectrl.h +++ b/include/wx/gtk/filectrl.h @@ -9,8 +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 WXDLLIMPEXP_DATA_CORE(const char) wxFileSelectorDefaultWildcardStr[]; typedef struct _GtkFileChooser GtkFileChooser; @@ -42,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 @@ -96,7 +108,7 @@ public: virtual int GetFilterIndex() const { return m_fc.GetFilterIndex(); } virtual bool HasMultipleFileSelection() const { return HasFlag( wxFC_MULTIPLE ); } - virtual void ShowHidden(const bool show); + virtual void ShowHidden(bool show); bool m_checkNextSelEvent; bool m_ignoreNextFolderChangeEvent; @@ -111,5 +123,5 @@ protected: #endif // wxUSE_FILECTRL -#endif // FILECTRL_H +#endif // _WX_GTK_FILECTRL_H_