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 _adv.sip 8// 9//--------------------------------------------------------------------------- 10 11%ModuleHeaderCode 12#include <wx/propdlg.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18enum wxPropertySheetDialogFlags 19{ 20 wxPROPSHEET_DEFAULT, 21 wxPROPSHEET_NOTEBOOK, 22 wxPROPSHEET_TOOLBOOK, 23 wxPROPSHEET_CHOICEBOOK, 24 wxPROPSHEET_LISTBOOK, 25 wxPROPSHEET_BUTTONTOOLBOOK, 26 wxPROPSHEET_TREEBOOK, 27 wxPROPSHEET_SHRINKTOFIT 28}; 29 30class wxPropertySheetDialog : wxDialog 31{ 32 %Docstring 33 PropertySheetDialog() 34 PropertySheetDialog(parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE, name=wx.DialogNameStr) 35 36 This class represents a property sheet dialog: a tabbed dialog for 37 showing settings. 38 %End 39 %TypeHeaderCode 40 #include <wx/propdlg.h> 41 %End 42 43public: 44 wxPropertySheetDialog(); 45 %PreMethodCode 46 if (!wxPyCheckForApp()) return NULL; 47 %End 48 49 wxPropertySheetDialog( 50 wxWindow * parent, 51 wxWindowID id = wxID_ANY, 52 const wxString & title = wxEmptyString, 53 const wxPoint & pos = wxDefaultPosition, 54 const wxSize & size = wxDefaultSize, 55 long style = wxDEFAULT_DIALOG_STYLE, 56 const wxString & name = wxDialogNameStr 57 ) /Transfer/; 58 %PreMethodCode 59 if (!wxPyCheckForApp()) return NULL; 60 %End 61 62 virtual 63 void AddBookCtrl( 64 wxSizer * sizer 65 ); 66 %Docstring 67 AddBookCtrl(sizer) 68 69 Override this if you wish to add the book control in a way different 70 from the standard way (for example, using different spacing). 71 %End 72 73 bool Create( 74 wxWindow * parent, 75 wxWindowID id = wxID_ANY, 76 const wxString & title = wxEmptyString, 77 const wxPoint & pos = wxDefaultPosition, 78 const wxSize & size = wxDefaultSize, 79 long style = wxDEFAULT_DIALOG_STYLE, 80 const wxString & name = wxDialogNameStr 81 ) /TransferThis/; 82 %Docstring 83 Create(parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_DIALOG_STYLE, name=wx.DialogNameStr) -> bool 84 85 Call this from your own Create function, before adding buttons and 86 pages. 87 %End 88 89 virtual 90 wxBookCtrlBase * CreateBookCtrl(); 91 %Docstring 92 CreateBookCtrl() -> wx.BookCtrlBase 93 94 Override this if you wish to create a different kind of book control; 95 by default, the value passed to SetSheetStyle() is used to determine 96 the control. 97 %End 98 99 virtual 100 void CreateButtons( 101 int flags = wxOK|wxCANCEL 102 ); 103 %Docstring 104 CreateButtons(flags=wx.OK|wx.CANCEL) 105 106 Call this to create the buttons for the dialog. 107 %End 108 109 wxBookCtrlBase * GetBookCtrl() const; 110 %Docstring 111 GetBookCtrl() -> wx.BookCtrlBase 112 113 Returns the book control that will contain your settings pages. 114 %End 115 116 wxSizer * GetInnerSizer() const; 117 %Docstring 118 GetInnerSizer() -> wx.Sizer 119 120 Returns the inner sizer that contains the book control and button 121 sizer. 122 %End 123 124 void SetInnerSizer( 125 wxSizer * sizer 126 ); 127 %Docstring 128 SetInnerSizer(sizer) 129 130 Set the inner sizer that contains the book control and button sizer. 131 %End 132 133 long GetSheetStyle() const; 134 %Docstring 135 GetSheetStyle() -> long 136 137 Returns the sheet style. 138 %End 139 140 virtual 141 void LayoutDialog( 142 int centreFlags = wxBOTH 143 ); 144 %Docstring 145 LayoutDialog(centreFlags=wx.BOTH) 146 147 Call this to lay out the dialog. 148 %End 149 150 void SetBookCtrl( 151 wxBookCtrlBase * bookCtrl 152 ); 153 %Docstring 154 SetBookCtrl(bookCtrl) 155 156 Sets the book control used for the dialog. 157 %End 158 159 void SetSheetStyle( 160 long style 161 ); 162 %Docstring 163 SetSheetStyle(style) 164 165 You can customize the look and feel of the dialog by setting the sheet 166 style. 167 %End 168 169 void SetSheetOuterBorder( 170 int border 171 ); 172 %Docstring 173 SetSheetOuterBorder(border) 174 175 Set the border around the whole dialog. 176 %End 177 178 int GetSheetOuterBorder() const; 179 %Docstring 180 GetSheetOuterBorder() -> int 181 182 Returns the border around the whole dialog. 183 %End 184 185 void SetSheetInnerBorder( 186 int border 187 ); 188 %Docstring 189 SetSheetInnerBorder(border) 190 191 Set the border around the book control only. 192 %End 193 194 int GetSheetInnerBorder() const; 195 %Docstring 196 GetSheetInnerBorder() -> int 197 198 Returns the border around the book control only. 199 %End 200 201 virtual 202 wxWindow * GetContentWindow() const; 203 %Docstring 204 GetContentWindow() -> wx.Window 205 206 Override this to return a window containing the main content of the 207 dialog. 208 %End 209 210 static 211 wxVisualAttributes GetClassDefaultAttributes( 212 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 213 ); 214 %Docstring 215 GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes 216 %End 217 %PreMethodCode 218 if (!wxPyCheckForApp()) return NULL; 219 %End 220 221 public: 222 223 224 %Property(name=BookCtrl, get=GetBookCtrl, set=SetBookCtrl) 225 %Property(name=ContentWindow, get=GetContentWindow) 226 %Property(name=InnerSizer, get=GetInnerSizer, set=SetInnerSizer) 227 %Property(name=SheetInnerBorder, get=GetSheetInnerBorder, set=SetSheetInnerBorder) 228 %Property(name=SheetOuterBorder, get=GetSheetOuterBorder, set=SetSheetOuterBorder) 229 %Property(name=SheetStyle, get=GetSheetStyle, set=SetSheetStyle) 230}; // end of class wxPropertySheetDialog 231 232 233 234//--------------------------------------------------------------------------- 235 236