1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13const int wxDD_CHANGE_DIR; 14const int wxDD_DIR_MUST_EXIST; 15const int wxDD_NEW_DIR_BUTTON; 16const int wxDD_DEFAULT_STYLE; 17const char* wxDirDialogNameStr; 18 19const char* wxDirDialogDefaultFolderStr; 20 21class wxDirDialog : wxDialog 22{ 23 %Docstring 24 DirDialog(parent, message=DirSelectorPromptStr, defaultPath=EmptyString, style=DD_DEFAULT_STYLE, pos=DefaultPosition, size=DefaultSize, name=DirDialogNameStr) 25 26 This class represents the directory chooser dialog. 27 %End 28 %TypeHeaderCode 29 #include <wx/dirdlg.h> 30 %End 31 32public: 33 wxDirDialog( 34 wxWindow * parent /TransferThis/, 35 const wxString & message = wxDirSelectorPromptStr, 36 const wxString & defaultPath = wxEmptyString, 37 long style = wxDD_DEFAULT_STYLE, 38 const wxPoint & pos = wxDefaultPosition, 39 const wxSize & size = wxDefaultSize, 40 const wxString & name = wxDirDialogNameStr 41 ); 42 %PreMethodCode 43 if (!wxPyCheckForApp()) return NULL; 44 %End 45 46 ~wxDirDialog(); 47 48 wxString GetMessage() const; 49 %Docstring 50 GetMessage() -> String 51 52 Returns the message that will be displayed on the dialog. 53 %End 54 55 wxString GetPath() const; 56 %Docstring 57 GetPath() -> String 58 59 Returns the default or user-selected path. 60 %End 61 62 void SetMessage( 63 const wxString & message 64 ); 65 %Docstring 66 SetMessage(message) 67 68 Sets the message that will be displayed on the dialog. 69 %End 70 71 void SetPath( 72 const wxString & path 73 ); 74 %Docstring 75 SetPath(path) 76 77 Sets the default path. 78 %End 79 80 int ShowModal(); 81 %Docstring 82 ShowModal() -> int 83 84 Shows the dialog, returning wxID_OK if the user pressed OK, and 85 wxID_CANCEL otherwise. 86 %End 87 88 public: 89 virtual wxPoint GetClientAreaOrigin() const; 90 virtual bool Validate(); 91 virtual bool TransferDataToWindow(); 92 virtual bool TransferDataFromWindow(); 93 virtual void InitDialog(); 94 virtual bool AcceptsFocus() const; 95 virtual bool AcceptsFocusRecursively() const; 96 virtual bool AcceptsFocusFromKeyboard() const; 97 virtual void AddChild( wxWindowBase *child ); 98 virtual void RemoveChild( wxWindowBase *child ); 99 virtual void InheritAttributes(); 100 virtual bool ShouldInheritColours() const; 101 virtual void OnInternalIdle(); 102 virtual wxWindow *GetMainWindowOfCompositeControl(); 103 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 104 virtual void SetCanFocus(bool canFocus); 105 virtual bool Destroy(); 106 virtual void SetValidator( const wxValidator &validator ); 107 virtual wxValidator* GetValidator(); 108 109 110 protected: 111 virtual bool ProcessEvent(wxEvent & event); 112 virtual void DoEnable(bool enable); 113 virtual void DoGetPosition(int *x, int *y) const; 114 virtual void DoGetSize(int *width, int *height) const; 115 virtual void DoGetClientSize(int *width, int *height) const; 116 virtual wxSize DoGetBestSize() const; 117 virtual wxSize DoGetBestClientSize() const; 118 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 119 virtual void DoSetClientSize(int width, int height); 120 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 121 virtual wxSize DoGetBorderSize() const; 122 virtual void DoMoveWindow(int x, int y, int width, int height); 123 virtual void DoSetWindowVariant( wxWindowVariant variant); 124 virtual wxBorder GetDefaultBorder() const; 125 virtual wxBorder GetDefaultBorderForControl() const; 126 virtual void DoFreeze(); 127 virtual void DoThaw(); 128 virtual bool HasTransparentBackground(); 129 virtual bool TryBefore(wxEvent& event); 130 virtual bool TryAfter(wxEvent& event); 131 132 133 public: 134 135 136 static 137 wxVisualAttributes GetClassDefaultAttributes( 138 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 139 ); 140 %Docstring 141 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 142 %End 143 %PreMethodCode 144 if (!wxPyCheckForApp()) return NULL; 145 %End 146 147 public: 148 149 150 %Property(name=Message, get=GetMessage, set=SetMessage) 151 %Property(name=Path, get=GetPath, set=SetPath) 152}; // end of class wxDirDialog 153 154 155wxString wxDirSelector( 156 const wxString & message = wxDirSelectorPromptStr, 157 const wxString & default_path = wxEmptyString, 158 long style = 0, 159 const wxPoint & pos = wxDefaultPosition, 160 wxWindow * parent = NULL 161); 162%Docstring 163 DirSelector(message=DirSelectorPromptStr, default_path=EmptyString, style=0, pos=DefaultPosition, parent=None) -> String 164 165 Pops up a directory selector dialog. 166%End 167%PreMethodCode 168 if (!wxPyCheckForApp()) return NULL; 169%End 170 171 172//--------------------------------------------------------------------------- 173 174