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 _aui.sip
8//
9//---------------------------------------------------------------------------
10
11//---------------------------------------------------------------------------
12
13class wxAuiMDIParentFrame : wxFrame
14{
15    %Docstring
16        AuiMDIParentFrame()
17        AuiMDIParentFrame(parent, winid=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE|wx.VSCROLL|wx.HSCROLL, name=wx.FrameNameStr)
18    %End
19    %TypeHeaderCode
20        #include <wx/aui/tabmdi.h>
21    %End
22
23public:
24    wxAuiMDIParentFrame();
25    %PreMethodCode
26        if (!wxPyCheckForApp()) return NULL;
27    %End
28
29    wxAuiMDIParentFrame(
30        wxWindow * parent,
31        wxWindowID winid = wxID_ANY,
32        const wxString & title = wxEmptyString,
33        const wxPoint & pos = wxDefaultPosition,
34        const wxSize & size = wxDefaultSize,
35        long style = wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
36        const wxString & name = wxFrameNameStr
37    )   /Transfer/;
38    %PreMethodCode
39        if (!wxPyCheckForApp()) return NULL;
40    %End
41
42    ~wxAuiMDIParentFrame();
43
44    bool Create(
45        wxWindow * parent,
46        wxWindowID winid = wxID_ANY,
47        const wxString & title = wxEmptyString,
48        const wxPoint & pos = wxDefaultPosition,
49        const wxSize & size = wxDefaultSize,
50        long style = wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
51        const wxString & name = wxFrameNameStr
52    )   /TransferThis/;
53    %Docstring
54        Create(parent, winid=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE|wx.VSCROLL|wx.HSCROLL, name=wx.FrameNameStr) -> bool
55    %End
56
57    void SetArtProvider(
58        wxAuiTabArt * provider   /Transfer/
59    );
60    %Docstring
61        SetArtProvider(provider)
62    %End
63
64    wxAuiTabArt * GetArtProvider();
65    %Docstring
66        GetArtProvider() -> AuiTabArt
67    %End
68
69    wxAuiNotebook * GetNotebook() const;
70    %Docstring
71        GetNotebook() -> AuiNotebook
72    %End
73
74    wxMenu * GetWindowMenu() const;
75    %Docstring
76        GetWindowMenu() -> wx.Menu
77    %End
78
79    void SetWindowMenu(
80        wxMenu * pMenu
81    );
82    %Docstring
83        SetWindowMenu(pMenu)
84    %End
85
86    void SetMenuBar(
87        wxMenuBar * menuBar   /Transfer/
88    );
89    %Docstring
90        SetMenuBar(menuBar)
91
92        Tells the frame to show the given menu bar.
93    %End
94
95    void SetChildMenuBar(
96        wxAuiMDIChildFrame * pChild
97    );
98    %Docstring
99        SetChildMenuBar(pChild)
100    %End
101
102    wxAuiMDIChildFrame * GetActiveChild() const;
103    %Docstring
104        GetActiveChild() -> AuiMDIChildFrame
105    %End
106
107    void SetActiveChild(
108        wxAuiMDIChildFrame * pChildFrame
109    );
110    %Docstring
111        SetActiveChild(pChildFrame)
112    %End
113
114    wxAuiMDIClientWindow * GetClientWindow() const;
115    %Docstring
116        GetClientWindow() -> AuiMDIClientWindow
117    %End
118
119    wxAuiMDIClientWindow * OnCreateClient();
120    %Docstring
121        OnCreateClient() -> AuiMDIClientWindow
122    %End
123
124    void Cascade();
125    %Docstring
126        Cascade()
127    %End
128
129    void Tile(
130        wxOrientation orient = wxHORIZONTAL
131    );
132    %Docstring
133        Tile(orient=wx.HORIZONTAL)
134    %End
135
136    void ArrangeIcons();
137    %Docstring
138        ArrangeIcons()
139    %End
140
141    void ActivateNext();
142    %Docstring
143        ActivateNext()
144    %End
145
146    void ActivatePrevious();
147    %Docstring
148        ActivatePrevious()
149    %End
150
151    public:
152    virtual wxPoint GetClientAreaOrigin() const;
153    virtual bool Validate();
154    virtual bool TransferDataToWindow();
155    virtual bool TransferDataFromWindow();
156    virtual void InitDialog();
157    virtual bool AcceptsFocus() const;
158    virtual bool AcceptsFocusRecursively() const;
159    virtual bool AcceptsFocusFromKeyboard() const;
160    virtual void AddChild( wxWindowBase *child );
161    virtual void RemoveChild( wxWindowBase *child );
162    virtual void InheritAttributes();
163    virtual bool ShouldInheritColours() const;
164    virtual void OnInternalIdle();
165    virtual wxWindow *GetMainWindowOfCompositeControl();
166    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
167    virtual void SetCanFocus(bool canFocus);
168    virtual bool Destroy();
169    virtual void SetValidator( const wxValidator &validator );
170    virtual wxValidator* GetValidator();
171
172
173    protected:
174    virtual bool ProcessEvent(wxEvent & event);
175    virtual void DoEnable(bool enable);
176    virtual void DoGetPosition(int *x, int *y) const;
177    virtual void DoGetSize(int *width, int *height) const;
178    virtual void DoGetClientSize(int *width, int *height) const;
179    virtual wxSize DoGetBestSize() const;
180    virtual wxSize DoGetBestClientSize() const;
181    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
182    virtual void DoSetClientSize(int width, int height);
183    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
184    virtual wxSize DoGetBorderSize() const;
185    virtual void DoMoveWindow(int x, int y, int width, int height);
186    virtual void DoSetWindowVariant( wxWindowVariant variant);
187    virtual wxBorder GetDefaultBorder() const;
188    virtual wxBorder GetDefaultBorderForControl() const;
189    virtual void DoFreeze();
190    virtual void DoThaw();
191    virtual bool HasTransparentBackground();
192    virtual bool TryBefore(wxEvent& event);
193    virtual bool TryAfter(wxEvent& event);
194
195
196    public:
197
198
199    static
200    wxVisualAttributes GetClassDefaultAttributes(
201        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
202    );
203    %Docstring
204        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
205    %End
206    %PreMethodCode
207        if (!wxPyCheckForApp()) return NULL;
208    %End
209
210    public:
211
212
213    %Property(name=ActiveChild, get=GetActiveChild, set=SetActiveChild)
214    %Property(name=ArtProvider, get=GetArtProvider, set=SetArtProvider)
215    %Property(name=ClientWindow, get=GetClientWindow)
216    %Property(name=Notebook, get=GetNotebook)
217    %Property(name=WindowMenu, get=GetWindowMenu, set=SetWindowMenu)
218};  // end of class wxAuiMDIParentFrame
219
220
221class wxAuiMDIChildFrame : wxPanel
222{
223    %Docstring
224        AuiMDIChildFrame()
225        AuiMDIChildFrame(parent, winid=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, name=wx.FrameNameStr)
226    %End
227    %TypeHeaderCode
228        #include <wx/aui/tabmdi.h>
229    %End
230
231public:
232    wxAuiMDIChildFrame();
233    %PreMethodCode
234        if (!wxPyCheckForApp()) return NULL;
235    %End
236
237    wxAuiMDIChildFrame(
238        wxAuiMDIParentFrame * parent,
239        wxWindowID winid = wxID_ANY,
240        const wxString & title = wxEmptyString,
241        const wxPoint & pos = wxDefaultPosition,
242        const wxSize & size = wxDefaultSize,
243        long style = wxDEFAULT_FRAME_STYLE,
244        const wxString & name = wxFrameNameStr
245    )   /Transfer/;
246    %PreMethodCode
247        if (!wxPyCheckForApp()) return NULL;
248    %End
249
250    ~wxAuiMDIChildFrame();
251
252    bool Create(
253        wxAuiMDIParentFrame * parent,
254        wxWindowID winid = wxID_ANY,
255        const wxString & title = wxEmptyString,
256        const wxPoint & pos = wxDefaultPosition,
257        const wxSize & size = wxDefaultSize,
258        long style = wxDEFAULT_FRAME_STYLE,
259        const wxString & name = wxFrameNameStr
260    )   /TransferThis/;
261    %Docstring
262        Create(parent, winid=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, name=wx.FrameNameStr) -> bool
263    %End
264
265    void SetMenuBar(
266        wxMenuBar * menuBar   /Transfer/
267    );
268    %Docstring
269        SetMenuBar(menuBar)
270    %End
271
272    wxMenuBar * GetMenuBar() const;
273    %Docstring
274        GetMenuBar() -> wx.MenuBar
275    %End
276
277    void SetTitle(
278        const wxString & title
279    );
280    %Docstring
281        SetTitle(title)
282    %End
283
284    wxString GetTitle() const;
285    %Docstring
286        GetTitle() -> String
287    %End
288
289    void SetIcons(
290        const wxIconBundle & icons
291    );
292    %Docstring
293        SetIcons(icons)
294    %End
295
296    const wxIconBundle & GetIcons() const;
297    %Docstring
298        GetIcons() -> wx.IconBundle
299    %End
300
301    void SetIcon(
302        const wxIcon & icon
303    );
304    %Docstring
305        SetIcon(icon)
306    %End
307
308    const wxIcon & GetIcon() const;
309    %Docstring
310        GetIcon() -> wx.Icon
311    %End
312
313    void Activate();
314    %Docstring
315        Activate()
316    %End
317
318    virtual
319    bool Destroy();
320    %Docstring
321        Destroy() -> bool
322
323        Destroys the window safely.
324    %End
325
326    virtual
327    bool Show(
328        bool show = true
329    );
330    %Docstring
331        Show(show=True) -> bool
332
333        Shows or hides the window.
334    %End
335
336    wxStatusBar * CreateStatusBar(
337        int number = 1,
338        long style = 1,
339        wxWindowID winid = 1,
340        const wxString & name = wxEmptyString
341    );
342    %Docstring
343        CreateStatusBar(number=1, style=1, winid=1, name=wx.EmptyString) -> wx.StatusBar
344    %End
345
346    wxStatusBar * GetStatusBar() const;
347    %Docstring
348        GetStatusBar() -> wx.StatusBar
349    %End
350
351    void SetStatusText(
352        const wxString & text,
353        int number = 0
354    );
355    %Docstring
356        SetStatusText(text, number=0)
357    %End
358
359    void SetStatusWidths(
360        const wxArrayInt& widths
361    );
362    %Docstring
363        SetStatusWidths(widths)
364    %End
365    %MethodCode
366        PyErr_Clear();
367        Py_BEGIN_ALLOW_THREADS
368        _wxAuiMDIChildFrame_SetStatusWidths(sipCpp, widths);
369        Py_END_ALLOW_THREADS
370        if (PyErr_Occurred()) sipIsErr = 1;
371    %End
372    %TypeCode
373    void _wxAuiMDIChildFrame_SetStatusWidths(wxAuiMDIChildFrame* self, const wxArrayInt* widths)
374    {
375        const int* ptr = &widths->front();
376        self->SetStatusWidths(widths->size(), ptr);
377    }
378    %End
379
380    wxToolBar * CreateToolBar(
381        long style,
382        wxWindowID winid,
383        const wxString & name
384    );
385    %Docstring
386        CreateToolBar(style, winid, name) -> wx.ToolBar
387    %End
388
389    wxToolBar * GetToolBar() const;
390    %Docstring
391        GetToolBar() -> wx.ToolBar
392    %End
393
394    void Maximize(
395        bool maximize = true
396    );
397    %Docstring
398        Maximize(maximize=True)
399    %End
400
401    void Restore();
402    %Docstring
403        Restore()
404    %End
405
406    void Iconize(
407        bool iconize = true
408    );
409    %Docstring
410        Iconize(iconize=True)
411    %End
412
413    bool IsMaximized() const;
414    %Docstring
415        IsMaximized() -> bool
416    %End
417
418    bool IsIconized() const;
419    %Docstring
420        IsIconized() -> bool
421    %End
422
423    bool ShowFullScreen(
424        bool show,
425        long style
426    );
427    %Docstring
428        ShowFullScreen(show, style) -> bool
429    %End
430
431    bool IsFullScreen() const;
432    %Docstring
433        IsFullScreen() -> bool
434    %End
435
436    bool IsTopLevel() const;
437    %Docstring
438        IsTopLevel() -> bool
439
440        Returns true if the given window is a top-level one.
441    %End
442
443    void SetMDIParentFrame(
444        wxAuiMDIParentFrame * parent
445    );
446    %Docstring
447        SetMDIParentFrame(parent)
448    %End
449
450    wxAuiMDIParentFrame * GetMDIParentFrame() const;
451    %Docstring
452        GetMDIParentFrame() -> AuiMDIParentFrame
453    %End
454
455    public:
456    virtual wxPoint GetClientAreaOrigin() const;
457    virtual bool Validate();
458    virtual bool TransferDataToWindow();
459    virtual bool TransferDataFromWindow();
460    virtual void InitDialog();
461    virtual bool AcceptsFocus() const;
462    virtual bool AcceptsFocusRecursively() const;
463    virtual bool AcceptsFocusFromKeyboard() const;
464    virtual void AddChild( wxWindowBase *child );
465    virtual void RemoveChild( wxWindowBase *child );
466    virtual void InheritAttributes();
467    virtual bool ShouldInheritColours() const;
468    virtual void OnInternalIdle();
469    virtual wxWindow *GetMainWindowOfCompositeControl();
470    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
471    virtual void SetCanFocus(bool canFocus);
472    virtual void SetValidator( const wxValidator &validator );
473    virtual wxValidator* GetValidator();
474
475
476    protected:
477    virtual bool ProcessEvent(wxEvent & event);
478    virtual void DoEnable(bool enable);
479    virtual void DoGetPosition(int *x, int *y) const;
480    virtual void DoGetSize(int *width, int *height) const;
481    virtual void DoGetClientSize(int *width, int *height) const;
482    virtual wxSize DoGetBestSize() const;
483    virtual wxSize DoGetBestClientSize() const;
484    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
485    virtual void DoSetClientSize(int width, int height);
486    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
487    virtual wxSize DoGetBorderSize() const;
488    virtual void DoMoveWindow(int x, int y, int width, int height);
489    virtual void DoSetWindowVariant( wxWindowVariant variant);
490    virtual wxBorder GetDefaultBorder() const;
491    virtual wxBorder GetDefaultBorderForControl() const;
492    virtual void DoFreeze();
493    virtual void DoThaw();
494    virtual bool HasTransparentBackground();
495    virtual bool TryBefore(wxEvent& event);
496    virtual bool TryAfter(wxEvent& event);
497
498
499    public:
500
501
502    static
503    wxVisualAttributes GetClassDefaultAttributes(
504        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
505    );
506    %Docstring
507        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
508    %End
509    %PreMethodCode
510        if (!wxPyCheckForApp()) return NULL;
511    %End
512
513    public:
514
515
516    %Property(name=Icon, get=GetIcon, set=SetIcon)
517    %Property(name=Icons, get=GetIcons, set=SetIcons)
518    %Property(name=MDIParentFrame, get=GetMDIParentFrame, set=SetMDIParentFrame)
519    %Property(name=MenuBar, get=GetMenuBar, set=SetMenuBar)
520    %Property(name=StatusBar, get=GetStatusBar)
521    %Property(name=Title, get=GetTitle, set=SetTitle)
522    %Property(name=ToolBar, get=GetToolBar)
523};  // end of class wxAuiMDIChildFrame
524
525
526class wxAuiMDIClientWindow : wxAuiNotebook
527{
528    %Docstring
529        AuiMDIClientWindow()
530        AuiMDIClientWindow(parent, style=0)
531    %End
532    %TypeHeaderCode
533        #include <wx/aui/tabmdi.h>
534    %End
535
536public:
537    wxAuiMDIClientWindow();
538    %PreMethodCode
539        if (!wxPyCheckForApp()) return NULL;
540    %End
541
542    wxAuiMDIClientWindow(
543        wxAuiMDIParentFrame * parent   /TransferThis/,
544        long style = 0
545    );
546    %PreMethodCode
547        if (!wxPyCheckForApp()) return NULL;
548    %End
549
550    bool CreateClient(
551        wxAuiMDIParentFrame * parent,
552        long style = wxVSCROLL|wxHSCROLL
553    );
554    %Docstring
555        CreateClient(parent, style=wx.VSCROLL|wx.HSCROLL) -> bool
556    %End
557
558    int SetSelection(
559        size_t new_page
560    );
561    %Docstring
562        SetSelection(new_page) -> int
563
564        Sets the page selection.
565    %End
566
567    wxAuiMDIChildFrame * GetActiveChild();
568    %Docstring
569        GetActiveChild() -> AuiMDIChildFrame
570    %End
571
572    void SetActiveChild(
573        wxAuiMDIChildFrame * pChildFrame
574    );
575    %Docstring
576        SetActiveChild(pChildFrame)
577    %End
578
579    public:
580    virtual wxPoint GetClientAreaOrigin() const;
581    virtual bool Validate();
582    virtual bool TransferDataToWindow();
583    virtual bool TransferDataFromWindow();
584    virtual void InitDialog();
585    virtual bool AcceptsFocus() const;
586    virtual bool AcceptsFocusRecursively() const;
587    virtual bool AcceptsFocusFromKeyboard() const;
588    virtual void AddChild( wxWindowBase *child );
589    virtual void RemoveChild( wxWindowBase *child );
590    virtual void InheritAttributes();
591    virtual bool ShouldInheritColours() const;
592    virtual void OnInternalIdle();
593    virtual wxWindow *GetMainWindowOfCompositeControl();
594    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
595    virtual void SetCanFocus(bool canFocus);
596    virtual bool Destroy();
597    virtual void SetValidator( const wxValidator &validator );
598    virtual wxValidator* GetValidator();
599
600
601    protected:
602    virtual bool ProcessEvent(wxEvent & event);
603    virtual void DoEnable(bool enable);
604    virtual void DoGetPosition(int *x, int *y) const;
605    virtual void DoGetSize(int *width, int *height) const;
606    virtual void DoGetClientSize(int *width, int *height) const;
607    virtual wxSize DoGetBestSize() const;
608    virtual wxSize DoGetBestClientSize() const;
609    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
610    virtual void DoSetClientSize(int width, int height);
611    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
612    virtual wxSize DoGetBorderSize() const;
613    virtual void DoMoveWindow(int x, int y, int width, int height);
614    virtual void DoSetWindowVariant( wxWindowVariant variant);
615    virtual wxBorder GetDefaultBorder() const;
616    virtual wxBorder GetDefaultBorderForControl() const;
617    virtual void DoFreeze();
618    virtual void DoThaw();
619    virtual bool HasTransparentBackground();
620    virtual bool TryBefore(wxEvent& event);
621    virtual bool TryAfter(wxEvent& event);
622
623
624    public:
625
626
627    static
628    wxVisualAttributes GetClassDefaultAttributes(
629        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
630    );
631    %Docstring
632        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
633    %End
634    %PreMethodCode
635        if (!wxPyCheckForApp()) return NULL;
636    %End
637
638    public:
639
640
641    %Property(name=ActiveChild, get=GetActiveChild, set=SetActiveChild)
642};  // end of class wxAuiMDIClientWindow
643
644
645
646//---------------------------------------------------------------------------
647
648