From 34a9a3528fe866f050d2570080c43a501d45fffc Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 17 Apr 2012 17:00:36 +0000 Subject: [PATCH] Fix missing and broken interface items for Phoenix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/filectrl.h | 25 +++++++++++++++++++++++++ interface/wx/tipdlg.h | 4 +++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/interface/wx/filectrl.h b/interface/wx/filectrl.h index 8fe4b77f55..03da7c8557 100644 --- a/interface/wx/filectrl.h +++ b/interface/wx/filectrl.h @@ -6,6 +6,16 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +enum +{ + wxFC_OPEN = 0x0001, + wxFC_SAVE = 0x0002, + wxFC_MULTIPLE = 0x0004, + wxFC_NOSHOWHIDDEN = 0x0008 +}; + +#define wxFC_DEFAULT_STYLE wxFC_OPEN + /** @class wxFileCtrl @@ -169,6 +179,16 @@ public: */ virtual bool SetFilename(const wxString& filename); + /** + Changes to a certain directory and selects a certain file. + + In case the filename specified isn't found/couldn't be shown with + currently selected filter, false is returned. + + @return Returns @true on success, @false otherwise + */ + virtual bool SetPath(const wxString& path); + /** Sets the current filter index, starting from zero. */ @@ -187,6 +207,11 @@ public: }; +wxEventType wxEVT_FILECTRL_SELECTIONCHANGED; +wxEventType wxEVT_FILECTRL_FILEACTIVATED; +wxEventType wxEVT_FILECTRL_FOLDERCHANGED; +wxEventType wxEVT_FILECTRL_FILTERCHANGED; + /** @class wxFileCtrlEvent diff --git a/interface/wx/tipdlg.h b/interface/wx/tipdlg.h index a7e0d49f7d..2b8cbf984a 100644 --- a/interface/wx/tipdlg.h +++ b/interface/wx/tipdlg.h @@ -34,6 +34,8 @@ public: */ wxTipProvider(size_t currentTip); + virtual ~wxTipProvider(); + /** Returns the index of the current tip (i.e. the one which would be returned by GetTip()). @@ -60,7 +62,7 @@ public: modification to the string. If you return wxEmptyString, then this tip is skipped, and the next one is read. */ - virtual wxString PreProcessTip(const wxString& tip); + virtual wxString PreprocessTip(const wxString& tip); }; -- 2.45.2