X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae0a6d8b14398eef178ff56311eb3b15d6da2b7f..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/dirctrl.h?ds=inline diff --git a/interface/wx/dirctrl.h b/interface/wx/dirctrl.h index 0b50fa03ac..6e087d1db5 100644 --- a/interface/wx/dirctrl.h +++ b/interface/wx/dirctrl.h @@ -2,7 +2,6 @@ // Name: dirctrl.h // Purpose: interface of wxGenericDirCtrl // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -12,6 +11,8 @@ enum wxDIRCTRL_DIR_ONLY = 0x0010, // When setting the default path, select the first file in the directory wxDIRCTRL_SELECT_FIRST = 0x0020, + // Show the filter list + wxDIRCTRL_SHOW_FILTERS = 0x0040, // Use 3D borders on internal controls wxDIRCTRL_3D_INTERNAL = 0x0080, // Editable labels @@ -38,6 +39,8 @@ enum @style{wxDIRCTRL_SELECT_FIRST} When setting the default path, select the first file in the directory. + @style{wxDIRCTRL_SHOW_FILTERS} + Show the drop-down filter list. @style{wxDIRCTRL_EDIT_LABELS} Allow the folder and file labels to be editable. @style{wxDIRCTRL_MULTIPLE} @@ -46,7 +49,19 @@ enum @library{wxcore} @category{ctrl} - @appearance{genericdirctrl.png} + @appearance{genericdirctrl} + + @beginEventEmissionTable + @event{EVT_DIRCTRL_SELECTIONCHANGED(id, func)} + Selected directory has changed. + Processes a @c wxEVT_DIRCTRL_SELECTIONCHANGED event type. + Notice that this event is generated even for the changes done by the + program itself and not only those done by the user. + Available since wxWidgets 2.9.5. + @event{EVT_DIRCTRL_FILEACTIVATED(id, func)} + The user activated a file by double-clicking or pressing Enter. + Available since wxWidgets 2.9.5. + @endEventTable */ class wxGenericDirCtrl : public wxControl { @@ -162,6 +177,13 @@ public: */ virtual wxString GetPath() const; + /** + Gets the path corresponding to the given tree control item. + + @since 2.9.5 + */ + wxString GetPath(wxTreeItemId itemId) const; + /** Fills the array @a paths with the selected directories and filenames. */ @@ -260,3 +282,6 @@ public: //// Operations void FillFilterList(const wxString& filter, int defaultFilter); }; + +wxEventType wxEVT_DIRCTRL_SELECTIONCHANGED; +wxEventType wxEVT_DIRCTRL_FILEACTIVATED;