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%ModuleHeaderCode 12#include <wx/rearrangectrl.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18const char* wxRearrangeListNameStr; 19 20const char* wxRearrangeDialogNameStr; 21 22class wxRearrangeList : wxCheckListBox 23{ 24 %Docstring 25 RearrangeList() 26 RearrangeList(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) 27 28 A listbox-like control allowing the user to rearrange the items and to 29 enable or disable them. 30 %End 31 %TypeHeaderCode 32 #include <wx/rearrangectrl.h> 33 %End 34 35public: 36 wxRearrangeList(); 37 %PreMethodCode 38 if (!wxPyCheckForApp()) return NULL; 39 %End 40 41 wxRearrangeList( 42 wxWindow * parent /TransferThis/, 43 wxWindowID id = wxID_ANY, 44 const wxPoint & pos = wxDefaultPosition, 45 const wxSize & size = wxDefaultSize, 46 const wxArrayInt & order = wxArrayInt(), 47 const wxArrayString & items = wxArrayString(), 48 long style = 0, 49 const wxValidator & validator = wxDefaultValidator, 50 const wxString & name = wxRearrangeListNameStr 51 ); 52 %PreMethodCode 53 if (!wxPyCheckForApp()) return NULL; 54 %End 55 56 bool Create( 57 wxWindow * parent /TransferThis/, 58 wxWindowID id = wxID_ANY, 59 const wxPoint & pos = wxDefaultPosition, 60 const wxSize & size = wxDefaultSize, 61 const wxArrayInt & order = wxArrayInt(), 62 const wxArrayString & items = wxArrayString(), 63 long style = 0, 64 const wxValidator & validator = wxDefaultValidator, 65 const wxString & name = wxRearrangeListNameStr 66 ); 67 %Docstring 68 Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) -> bool 69 70 Effectively creates the window for an object created using the default 71 constructor. 72 %End 73 74 const wxArrayInt & GetCurrentOrder() const; 75 %Docstring 76 GetCurrentOrder() -> ArrayInt 77 78 Return the current order of the items. 79 %End 80 81 bool CanMoveCurrentUp() const; 82 %Docstring 83 CanMoveCurrentUp() -> bool 84 85 Return true if the currently selected item can be moved up. 86 %End 87 88 bool CanMoveCurrentDown() const; 89 %Docstring 90 CanMoveCurrentDown() -> bool 91 92 Return true if the currently selected item can be moved down. 93 %End 94 95 bool MoveCurrentUp(); 96 %Docstring 97 MoveCurrentUp() -> bool 98 99 Move the currently selected item one position above. 100 %End 101 102 bool MoveCurrentDown(); 103 %Docstring 104 MoveCurrentDown() -> bool 105 106 Move the currently selected item one position below. 107 %End 108 109 public: 110 virtual wxPoint GetClientAreaOrigin() const; 111 virtual bool Validate(); 112 virtual bool TransferDataToWindow(); 113 virtual bool TransferDataFromWindow(); 114 virtual void InitDialog(); 115 virtual bool AcceptsFocus() const; 116 virtual bool AcceptsFocusRecursively() const; 117 virtual bool AcceptsFocusFromKeyboard() const; 118 virtual void AddChild( wxWindowBase *child ); 119 virtual void RemoveChild( wxWindowBase *child ); 120 virtual void InheritAttributes(); 121 virtual bool ShouldInheritColours() const; 122 virtual void OnInternalIdle(); 123 virtual wxWindow *GetMainWindowOfCompositeControl(); 124 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 125 virtual void SetCanFocus(bool canFocus); 126 virtual bool Destroy(); 127 virtual void SetValidator( const wxValidator &validator ); 128 virtual wxValidator* GetValidator(); 129 130 131 protected: 132 virtual bool ProcessEvent(wxEvent & event); 133 virtual void DoEnable(bool enable); 134 virtual void DoGetPosition(int *x, int *y) const; 135 virtual void DoGetSize(int *width, int *height) const; 136 virtual void DoGetClientSize(int *width, int *height) const; 137 virtual wxSize DoGetBestSize() const; 138 virtual wxSize DoGetBestClientSize() const; 139 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 140 virtual void DoSetClientSize(int width, int height); 141 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 142 virtual wxSize DoGetBorderSize() const; 143 virtual void DoMoveWindow(int x, int y, int width, int height); 144 virtual void DoSetWindowVariant( wxWindowVariant variant); 145 virtual wxBorder GetDefaultBorder() const; 146 virtual wxBorder GetDefaultBorderForControl() const; 147 virtual void DoFreeze(); 148 virtual void DoThaw(); 149 virtual bool HasTransparentBackground(); 150 virtual bool TryBefore(wxEvent& event); 151 virtual bool TryAfter(wxEvent& event); 152 153 154 public: 155 156 157 static 158 wxVisualAttributes GetClassDefaultAttributes( 159 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 160 ); 161 %Docstring 162 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 163 %End 164 %PreMethodCode 165 if (!wxPyCheckForApp()) return NULL; 166 %End 167 168 private: 169 wxRearrangeList(const wxRearrangeList&); 170 171 172 public: 173 174 175 %Property(name=CurrentOrder, get=GetCurrentOrder) 176}; // end of class wxRearrangeList 177 178 179class wxRearrangeCtrl : wxPanel 180{ 181 %Docstring 182 RearrangeCtrl() 183 RearrangeCtrl(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) 184 185 A composite control containing a wxRearrangeList and the buttons 186 allowing to move the items in it. 187 %End 188 %TypeHeaderCode 189 #include <wx/rearrangectrl.h> 190 %End 191 192public: 193 wxRearrangeCtrl(); 194 %PreMethodCode 195 if (!wxPyCheckForApp()) return NULL; 196 %End 197 198 wxRearrangeCtrl( 199 wxWindow * parent /TransferThis/, 200 wxWindowID id = wxID_ANY, 201 const wxPoint & pos = wxDefaultPosition, 202 const wxSize & size = wxDefaultSize, 203 const wxArrayInt & order = wxArrayInt(), 204 const wxArrayString & items = wxArrayString(), 205 long style = 0, 206 const wxValidator & validator = wxDefaultValidator, 207 const wxString & name = wxRearrangeListNameStr 208 ); 209 %PreMethodCode 210 if (!wxPyCheckForApp()) return NULL; 211 %End 212 213 bool Create( 214 wxWindow * parent /TransferThis/, 215 wxWindowID id = wxID_ANY, 216 const wxPoint & pos = wxDefaultPosition, 217 const wxSize & size = wxDefaultSize, 218 const wxArrayInt & order = wxArrayInt(), 219 const wxArrayString & items = wxArrayString(), 220 long style = 0, 221 const wxValidator & validator = wxDefaultValidator, 222 const wxString & name = wxRearrangeListNameStr 223 ); 224 %Docstring 225 Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, order=[], items=[], style=0, validator=DefaultValidator, name=RearrangeListNameStr) -> bool 226 227 Effectively creates the window for an object created using the default 228 constructor. 229 %End 230 231 wxRearrangeList * GetList() const; 232 %Docstring 233 GetList() -> RearrangeList 234 235 Return the listbox which is the main part of this control. 236 %End 237 238 public: 239 virtual wxPoint GetClientAreaOrigin() const; 240 virtual bool Validate(); 241 virtual bool TransferDataToWindow(); 242 virtual bool TransferDataFromWindow(); 243 virtual void InitDialog(); 244 virtual bool AcceptsFocus() const; 245 virtual bool AcceptsFocusRecursively() const; 246 virtual bool AcceptsFocusFromKeyboard() const; 247 virtual void AddChild( wxWindowBase *child ); 248 virtual void RemoveChild( wxWindowBase *child ); 249 virtual void InheritAttributes(); 250 virtual bool ShouldInheritColours() const; 251 virtual void OnInternalIdle(); 252 virtual wxWindow *GetMainWindowOfCompositeControl(); 253 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 254 virtual void SetCanFocus(bool canFocus); 255 virtual bool Destroy(); 256 virtual void SetValidator( const wxValidator &validator ); 257 virtual wxValidator* GetValidator(); 258 259 260 protected: 261 virtual bool ProcessEvent(wxEvent & event); 262 virtual void DoEnable(bool enable); 263 virtual void DoGetPosition(int *x, int *y) const; 264 virtual void DoGetSize(int *width, int *height) const; 265 virtual void DoGetClientSize(int *width, int *height) const; 266 virtual wxSize DoGetBestSize() const; 267 virtual wxSize DoGetBestClientSize() const; 268 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 269 virtual void DoSetClientSize(int width, int height); 270 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 271 virtual wxSize DoGetBorderSize() const; 272 virtual void DoMoveWindow(int x, int y, int width, int height); 273 virtual void DoSetWindowVariant( wxWindowVariant variant); 274 virtual wxBorder GetDefaultBorder() const; 275 virtual wxBorder GetDefaultBorderForControl() const; 276 virtual void DoFreeze(); 277 virtual void DoThaw(); 278 virtual bool HasTransparentBackground(); 279 virtual bool TryBefore(wxEvent& event); 280 virtual bool TryAfter(wxEvent& event); 281 282 283 public: 284 285 286 static 287 wxVisualAttributes GetClassDefaultAttributes( 288 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 289 ); 290 %Docstring 291 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 292 %End 293 %PreMethodCode 294 if (!wxPyCheckForApp()) return NULL; 295 %End 296 297 private: 298 wxRearrangeCtrl(const wxRearrangeCtrl&); 299 300 301 public: 302 303 304 %Property(name=List, get=GetList) 305}; // end of class wxRearrangeCtrl 306 307 308class wxRearrangeDialog : wxDialog 309{ 310 %Docstring 311 RearrangeDialog() 312 RearrangeDialog(parent, message, title=EmptyString, order=[], items=[], pos=DefaultPosition, name=RearrangeDialogNameStr) 313 314 A dialog allowing the user to rearrange the specified items. 315 %End 316 %TypeHeaderCode 317 #include <wx/rearrangectrl.h> 318 %End 319 320public: 321 wxRearrangeDialog(); 322 %PreMethodCode 323 if (!wxPyCheckForApp()) return NULL; 324 %End 325 326 wxRearrangeDialog( 327 wxWindow * parent, 328 const wxString & message, 329 const wxString & title = wxEmptyString, 330 const wxArrayInt & order = wxArrayInt(), 331 const wxArrayString & items = wxArrayString(), 332 const wxPoint & pos = wxDefaultPosition, 333 const wxString & name = wxRearrangeDialogNameStr 334 ) /Transfer/; 335 %PreMethodCode 336 if (!wxPyCheckForApp()) return NULL; 337 %End 338 339 bool Create( 340 wxWindow * parent, 341 const wxString & message, 342 const wxString & title = wxEmptyString, 343 const wxArrayInt & order = wxArrayInt(), 344 const wxArrayString & items = wxArrayString(), 345 const wxPoint & pos = wxDefaultPosition, 346 const wxString & name = wxRearrangeDialogNameStr 347 ) /TransferThis/; 348 %Docstring 349 Create(parent, message, title=EmptyString, order=[], items=[], pos=DefaultPosition, name=RearrangeDialogNameStr) -> bool 350 351 Effectively creates the dialog for an object created using the default 352 constructor. 353 %End 354 355 void AddExtraControls( 356 wxWindow * win 357 ); 358 %Docstring 359 AddExtraControls(win) 360 361 Customize the dialog by adding extra controls to it. 362 %End 363 364 wxRearrangeList * GetList() const; 365 %Docstring 366 GetList() -> RearrangeList 367 368 Return the list control used by the dialog. 369 %End 370 371 wxArrayInt GetOrder() const; 372 %Docstring 373 GetOrder() -> ArrayInt 374 375 Return the array describing the order of items after it was modified 376 by the user. 377 %End 378 379 public: 380 virtual wxPoint GetClientAreaOrigin() const; 381 virtual bool Validate(); 382 virtual bool TransferDataToWindow(); 383 virtual bool TransferDataFromWindow(); 384 virtual void InitDialog(); 385 virtual bool AcceptsFocus() const; 386 virtual bool AcceptsFocusRecursively() const; 387 virtual bool AcceptsFocusFromKeyboard() const; 388 virtual void AddChild( wxWindowBase *child ); 389 virtual void RemoveChild( wxWindowBase *child ); 390 virtual void InheritAttributes(); 391 virtual bool ShouldInheritColours() const; 392 virtual void OnInternalIdle(); 393 virtual wxWindow *GetMainWindowOfCompositeControl(); 394 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 395 virtual void SetCanFocus(bool canFocus); 396 virtual bool Destroy(); 397 virtual void SetValidator( const wxValidator &validator ); 398 virtual wxValidator* GetValidator(); 399 400 401 protected: 402 virtual bool ProcessEvent(wxEvent & event); 403 virtual void DoEnable(bool enable); 404 virtual void DoGetPosition(int *x, int *y) const; 405 virtual void DoGetSize(int *width, int *height) const; 406 virtual void DoGetClientSize(int *width, int *height) const; 407 virtual wxSize DoGetBestSize() const; 408 virtual wxSize DoGetBestClientSize() const; 409 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 410 virtual void DoSetClientSize(int width, int height); 411 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 412 virtual wxSize DoGetBorderSize() const; 413 virtual void DoMoveWindow(int x, int y, int width, int height); 414 virtual void DoSetWindowVariant( wxWindowVariant variant); 415 virtual wxBorder GetDefaultBorder() const; 416 virtual wxBorder GetDefaultBorderForControl() const; 417 virtual void DoFreeze(); 418 virtual void DoThaw(); 419 virtual bool HasTransparentBackground(); 420 virtual bool TryBefore(wxEvent& event); 421 virtual bool TryAfter(wxEvent& event); 422 423 424 public: 425 426 427 static 428 wxVisualAttributes GetClassDefaultAttributes( 429 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 430 ); 431 %Docstring 432 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 433 %End 434 %PreMethodCode 435 if (!wxPyCheckForApp()) return NULL; 436 %End 437 438 private: 439 wxRearrangeDialog(const wxRearrangeDialog&); 440 441 442 public: 443 444 445 %Property(name=List, get=GetList) 446 %Property(name=Order, get=GetOrder) 447}; // end of class wxRearrangeDialog 448 449 450 451//--------------------------------------------------------------------------- 452 453