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/listbook.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18const int wxLB_DEFAULT; 19const int wxLB_TOP; 20const int wxLB_BOTTOM; 21const int wxLB_LEFT; 22const int wxLB_RIGHT; 23const int wxLB_ALIGN_MASK; 24wxEventType wxEVT_LISTBOOK_PAGE_CHANGED /PyName=wxEVT_LISTBOOK_PAGE_CHANGED/; 25 26wxEventType wxEVT_LISTBOOK_PAGE_CHANGING /PyName=wxEVT_LISTBOOK_PAGE_CHANGING/; 27 28class wxListbook : wxBookCtrlBase 29{ 30 %Docstring 31 Listbook() 32 Listbook(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=EmptyString) 33 34 wxListbook is a class similar to wxNotebook but which uses a 35 wxListCtrl to show the labels instead of the tabs. 36 %End 37 %TypeHeaderCode 38 #include <wx/listbook.h> 39 %End 40 41public: 42 wxListbook(); 43 %PreMethodCode 44 if (!wxPyCheckForApp()) return NULL; 45 %End 46 47 wxListbook( 48 wxWindow * parent /TransferThis/, 49 wxWindowID id = wxID_ANY, 50 const wxPoint & pos = wxDefaultPosition, 51 const wxSize & size = wxDefaultSize, 52 long style = 0, 53 const wxString & name = wxEmptyString 54 ); 55 %PreMethodCode 56 if (!wxPyCheckForApp()) return NULL; 57 %End 58 59 bool Create( 60 wxWindow * parent /TransferThis/, 61 wxWindowID id = wxID_ANY, 62 const wxPoint & pos = wxDefaultPosition, 63 const wxSize & size = wxDefaultSize, 64 long style = 0, 65 const wxString & name = wxEmptyString 66 ); 67 %Docstring 68 Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=EmptyString) -> bool 69 70 Create the list book control that has already been constructed with 71 the default constructor. 72 %End 73 74 wxListView * GetListView() const; 75 %Docstring 76 GetListView() -> ListView 77 GetListView() -> ListView 78 79 Returns the wxListView associated with the control. 80 %End 81 82 wxListView* GetListView(); 83 %MethodCode 84 PyErr_Clear(); 85 Py_BEGIN_ALLOW_THREADS 86 sipRes = _wxListbook_GetListView(sipCpp); 87 Py_END_ALLOW_THREADS 88 if (PyErr_Occurred()) sipIsErr = 1; 89 %End 90 %TypeCode 91 wxListView* _wxListbook_GetListView(wxListbook* self) 92 { 93 return(self->GetListView()); 94 } 95 %End 96 97 public: 98 virtual wxPoint GetClientAreaOrigin() const; 99 virtual bool Validate(); 100 virtual bool TransferDataToWindow(); 101 virtual bool TransferDataFromWindow(); 102 virtual void InitDialog(); 103 virtual bool AcceptsFocus() const; 104 virtual bool AcceptsFocusRecursively() const; 105 virtual bool AcceptsFocusFromKeyboard() const; 106 virtual void AddChild( wxWindowBase *child ); 107 virtual void RemoveChild( wxWindowBase *child ); 108 virtual void InheritAttributes(); 109 virtual bool ShouldInheritColours() const; 110 virtual void OnInternalIdle(); 111 virtual wxWindow *GetMainWindowOfCompositeControl(); 112 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 113 virtual void SetCanFocus(bool canFocus); 114 virtual bool Destroy(); 115 virtual void SetValidator( const wxValidator &validator ); 116 virtual wxValidator* GetValidator(); 117 118 119 protected: 120 virtual bool ProcessEvent(wxEvent & event); 121 virtual void DoEnable(bool enable); 122 virtual void DoGetPosition(int *x, int *y) const; 123 virtual void DoGetSize(int *width, int *height) const; 124 virtual void DoGetClientSize(int *width, int *height) const; 125 virtual wxSize DoGetBestSize() const; 126 virtual wxSize DoGetBestClientSize() const; 127 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 128 virtual void DoSetClientSize(int width, int height); 129 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 130 virtual wxSize DoGetBorderSize() const; 131 virtual void DoMoveWindow(int x, int y, int width, int height); 132 virtual void DoSetWindowVariant( wxWindowVariant variant); 133 virtual wxBorder GetDefaultBorder() const; 134 virtual wxBorder GetDefaultBorderForControl() const; 135 virtual void DoFreeze(); 136 virtual void DoThaw(); 137 virtual bool HasTransparentBackground(); 138 virtual bool TryBefore(wxEvent& event); 139 virtual bool TryAfter(wxEvent& event); 140 141 142 public: 143 144 145 static 146 wxVisualAttributes GetClassDefaultAttributes( 147 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 148 ); 149 %Docstring 150 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 151 %End 152 %PreMethodCode 153 if (!wxPyCheckForApp()) return NULL; 154 %End 155 156 virtual int GetPageImage(size_t nPage) const; 157 158 159 virtual bool SetPageImage(size_t page, int image); 160 161 162 virtual wxString GetPageText(size_t nPage) const; 163 164 165 virtual bool SetPageText(size_t page, const wxString& text); 166 167 168 virtual int GetSelection() const; 169 170 171 virtual int SetSelection(size_t page); 172 173 174 virtual int ChangeSelection(size_t page); 175 176 177 virtual int HitTest(const wxPoint& pt, long* flags /Out/ = NULL) const; 178 179 180 virtual bool InsertPage(size_t index, wxWindow * page, const wxString & text, bool select = false, int imageId = NO_IMAGE); 181 182 183 virtual bool DeleteAllPages(); 184 185 186 public: 187 188 189 %Property(name=ListView, get=GetListView) 190}; // end of class wxListbook 191 192 193%Extract(id=pycode_core) 194EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_LISTBOOK_PAGE_CHANGED, 1 ) 195EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_LISTBOOK_PAGE_CHANGING, 1 ) 196 197# deprecated wxEVT aliases 198wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = wxEVT_LISTBOOK_PAGE_CHANGED 199wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = wxEVT_LISTBOOK_PAGE_CHANGING 200 201%End 202 203 204//--------------------------------------------------------------------------- 205 206