X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..6caa0f5cd18fe9fb39c207d5f31fa5633479a822:/wxPython/src/_dirctrl.i?ds=sidebyside diff --git a/wxPython/src/_dirctrl.i b/wxPython/src/_dirctrl.i index b9b7699ba4..e83756dfca 100644 --- a/wxPython/src/_dirctrl.i +++ b/wxPython/src/_dirctrl.i @@ -54,6 +54,8 @@ public: +MustHaveApp(wxGenericDirCtrl); + class wxGenericDirCtrl: public wxControl { public: @@ -68,7 +70,7 @@ public: const wxString& filter = wxPyEmptyString, int defaultFilter = 0, const wxString& name = wxPyTreeCtrlNameStr); - %name(PreGenericDirCtrl)wxGenericDirCtrl(); + %RenameCtor(PreGenericDirCtrl, wxGenericDirCtrl()); bool Create(wxWindow *parent, const wxWindowID id = -1, @@ -84,7 +86,8 @@ public: // Try to expand as much of the given path as possible. virtual bool ExpandPath(const wxString& path); - + // collapse the path + virtual bool CollapsePath(const wxString& path); virtual inline wxString GetDefaultPath() const; virtual void SetDefaultPath(const wxString& path); @@ -118,9 +121,11 @@ public: DocDeclAStr( virtual wxTreeItemId, FindChild(wxTreeItemId parentId, const wxString& path, bool& OUTPUT), "FindChild(wxTreeItemId parentId, wxString path) -> (item, done)", - "Find the child that matches the first part of 'path'. E.g. if a child path is\n" - "\"/usr\" and 'path' is \"/usr/include\" then the child for /usr is returned.\n" - "If the path string has been used (we're at the leaf), done is set to True\n"); + "Find the child that matches the first part of 'path'. E.g. if a child +path is \"/usr\" and 'path' is \"/usr/include\" then the child for +/usr is returned. If the path string has been used (we're at the +leaf), done is set to True. +", ""); // Resize the components of the control @@ -129,11 +134,21 @@ public: // Collapse & expand the tree, thus re-creating it from scratch: virtual void ReCreateTree(); + %property(DefaultPath, GetDefaultPath, SetDefaultPath, doc="See `GetDefaultPath` and `SetDefaultPath`"); + %property(FilePath, GetFilePath, doc="See `GetFilePath`"); + %property(Filter, GetFilter, SetFilter, doc="See `GetFilter` and `SetFilter`"); + %property(FilterIndex, GetFilterIndex, SetFilterIndex, doc="See `GetFilterIndex` and `SetFilterIndex`"); + %property(FilterListCtrl, GetFilterListCtrl, doc="See `GetFilterListCtrl`"); + %property(Path, GetPath, SetPath, doc="See `GetPath` and `SetPath`"); + %property(RootId, GetRootId, doc="See `GetRootId`"); + %property(TreeCtrl, GetTreeCtrl, doc="See `GetTreeCtrl`"); }; +MustHaveApp(wxDirFilterListCtrl); + class wxDirFilterListCtrl: public wxChoice { public: @@ -144,7 +159,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); - %name(PreDirFilterListCtrl)wxDirFilterListCtrl(); + %RenameCtor(PreDirFilterListCtrl, wxDirFilterListCtrl()); bool Create(wxGenericDirCtrl* parent, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,