1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/aui/auibook.h
3 // Purpose: wxaui: wx advanced user interface - notebook
4 // Author: Benjamin I. Williams
7 // Copyright: (C) Copyright 2006, Kirix Corporation, All Rights Reserved.
8 // Licence: wxWindows Library Licence, Version 3.1
9 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_AUINOTEBOOK_H_
14 #define _WX_AUINOTEBOOK_H_
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
24 #include "wx/aui/framemanager.h"
25 #include "wx/aui/dockart.h"
26 #include "wx/aui/floatpane.h"
27 #include "wx/control.h"
33 enum wxAuiNotebookOption
35 wxAUI_NB_TOP
= 1 << 0,
36 wxAUI_NB_LEFT
= 1 << 1, // not implemented yet
37 wxAUI_NB_RIGHT
= 1 << 2, // not implemented yet
38 wxAUI_NB_BOTTOM
= 1 << 3, // not implemented yet
39 wxAUI_NB_TAB_SPLIT
= 1 << 4,
40 wxAUI_NB_TAB_MOVE
= 1 << 5,
41 wxAUI_NB_TAB_EXTERNAL_MOVE
= 1 << 6,
42 wxAUI_NB_TAB_FIXED_WIDTH
= 1 << 7,
43 wxAUI_NB_SCROLL_BUTTONS
= 1 << 8,
44 wxAUI_NB_WINDOWLIST_BUTTON
= 1 << 9,
45 wxAUI_NB_CLOSE_BUTTON
= 1 << 10,
46 wxAUI_NB_CLOSE_ON_ACTIVE_TAB
= 1 << 11,
47 wxAUI_NB_CLOSE_ON_ALL_TABS
= 1 << 12,
48 wxAUI_NB_MIDDLE_CLICK_CLOSE
= 1 << 13,
50 wxAUI_NB_DEFAULT_STYLE
= wxAUI_NB_TOP
|
53 wxAUI_NB_SCROLL_BUTTONS
|
54 wxAUI_NB_CLOSE_ON_ACTIVE_TAB
|
55 wxAUI_NB_MIDDLE_CLICK_CLOSE
61 // aui notebook event class
63 class WXDLLIMPEXP_AUI wxAuiNotebookEvent
: public wxNotifyEvent
66 wxAuiNotebookEvent(wxEventType command_type
= wxEVT_NULL
,
68 : wxNotifyEvent(command_type
, win_id
)
75 wxAuiNotebookEvent(const wxAuiNotebookEvent
& c
) : wxNotifyEvent(c
)
77 old_selection
= c
.old_selection
;
78 selection
= c
.selection
;
79 drag_source
= c
.drag_source
;
82 wxEvent
*Clone() const { return new wxAuiNotebookEvent(*this); }
84 void SetSelection(int s
) { selection
= s
; m_commandInt
= s
; }
85 int GetSelection() const { return selection
; }
87 void SetOldSelection(int s
) { old_selection
= s
; }
88 int GetOldSelection() const { return old_selection
; }
90 void SetDragSource(wxAuiNotebook
* s
) { drag_source
= s
; }
91 wxAuiNotebook
* GetDragSource() const { return drag_source
; }
96 wxAuiNotebook
* drag_source
;
100 DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxAuiNotebookEvent
)
105 class WXDLLIMPEXP_AUI wxAuiNotebookPage
108 wxWindow
* window
; // page's associated window
109 wxString caption
; // caption displayed on the tab
110 wxBitmap bitmap
; // tab's bitmap
111 wxRect rect
; // tab's hit rectangle
112 bool active
; // true if the page is currently active
115 class WXDLLIMPEXP_AUI wxAuiTabContainerButton
119 int id
; // button's id
120 int cur_state
; // current state (normal, hover, pressed, etc.)
121 int location
; // buttons location (wxLEFT, wxRIGHT, or wxCENTER)
122 wxBitmap bitmap
; // button's hover bitmap
123 wxBitmap dis_bitmap
; // button's disabled bitmap
124 wxRect rect
; // button's hit rectangle
129 WX_DECLARE_USER_EXPORTED_OBJARRAY(wxAuiNotebookPage
, wxAuiNotebookPageArray
, WXDLLIMPEXP_AUI
);
130 WX_DECLARE_USER_EXPORTED_OBJARRAY(wxAuiTabContainerButton
, wxAuiTabContainerButtonArray
, WXDLLIMPEXP_AUI
);
136 class WXDLLIMPEXP_AUI wxAuiTabArt
141 virtual ~wxAuiTabArt() { }
143 virtual wxAuiTabArt
* Clone() = 0;
144 virtual void SetFlags(unsigned int flags
) = 0;
146 virtual void SetSizingInfo(const wxSize
& tab_ctrl_size
,
147 size_t tab_count
) = 0;
149 virtual void SetNormalFont(const wxFont
& font
) = 0;
150 virtual void SetSelectedFont(const wxFont
& font
) = 0;
151 virtual void SetMeasuringFont(const wxFont
& font
) = 0;
153 virtual void DrawBackground(
156 const wxRect
& rect
) = 0;
158 virtual void DrawTab(wxDC
& dc
,
160 const wxAuiNotebookPage
& pane
,
161 const wxRect
& in_rect
,
162 int close_button_state
,
163 wxRect
* out_tab_rect
,
164 wxRect
* out_button_rect
,
167 virtual void DrawButton(
170 const wxRect
& in_rect
,
174 wxRect
* out_rect
) = 0;
176 virtual wxSize
GetTabSize(
179 const wxString
& caption
,
180 const wxBitmap
& bitmap
,
182 int close_button_state
,
185 virtual int ShowDropDown(
187 const wxAuiNotebookPageArray
& items
,
190 virtual int GetIndentSize() = 0;
192 virtual int GetBestTabCtrlSize(
194 const wxAuiNotebookPageArray
& pages
,
195 const wxSize
& required_bmp_size
) = 0;
199 class WXDLLIMPEXP_AUI wxAuiDefaultTabArt
: public wxAuiTabArt
204 wxAuiDefaultTabArt();
205 virtual ~wxAuiDefaultTabArt();
207 wxAuiTabArt
* Clone();
208 void SetFlags(unsigned int flags
);
209 void SetSizingInfo(const wxSize
& tab_ctrl_size
,
212 void SetNormalFont(const wxFont
& font
);
213 void SetSelectedFont(const wxFont
& font
);
214 void SetMeasuringFont(const wxFont
& font
);
221 void DrawTab(wxDC
& dc
,
223 const wxAuiNotebookPage
& pane
,
224 const wxRect
& in_rect
,
225 int close_button_state
,
226 wxRect
* out_tab_rect
,
227 wxRect
* out_button_rect
,
233 const wxRect
& in_rect
,
244 const wxString
& caption
,
245 const wxBitmap
& bitmap
,
247 int close_button_state
,
252 const wxAuiNotebookPageArray
& items
,
255 int GetBestTabCtrlSize(wxWindow
* wnd
,
256 const wxAuiNotebookPageArray
& pages
,
257 const wxSize
& required_bmp_size
);
261 wxFont m_normal_font
;
262 wxFont m_selected_font
;
263 wxFont m_measuring_font
;
264 wxColour m_base_colour
;
265 wxPen m_base_colour_pen
;
267 wxBrush m_base_colour_brush
;
268 wxBitmap m_active_close_bmp
;
269 wxBitmap m_disabled_close_bmp
;
270 wxBitmap m_active_left_bmp
;
271 wxBitmap m_disabled_left_bmp
;
272 wxBitmap m_active_right_bmp
;
273 wxBitmap m_disabled_right_bmp
;
274 wxBitmap m_active_windowlist_bmp
;
275 wxBitmap m_disabled_windowlist_bmp
;
277 int m_fixed_tab_width
;
278 int m_tab_ctrl_height
;
279 unsigned int m_flags
;
283 class WXDLLIMPEXP_AUI wxAuiSimpleTabArt
: public wxAuiTabArt
289 virtual ~wxAuiSimpleTabArt();
291 wxAuiTabArt
* Clone();
292 void SetFlags(unsigned int flags
);
294 void SetSizingInfo(const wxSize
& tab_ctrl_size
,
297 void SetNormalFont(const wxFont
& font
);
298 void SetSelectedFont(const wxFont
& font
);
299 void SetMeasuringFont(const wxFont
& font
);
306 void DrawTab(wxDC
& dc
,
308 const wxAuiNotebookPage
& pane
,
309 const wxRect
& in_rect
,
310 int close_button_state
,
311 wxRect
* out_tab_rect
,
312 wxRect
* out_button_rect
,
318 const wxRect
& in_rect
,
329 const wxString
& caption
,
330 const wxBitmap
& bitmap
,
332 int close_button_state
,
337 const wxAuiNotebookPageArray
& items
,
340 int GetBestTabCtrlSize(wxWindow
* wnd
,
341 const wxAuiNotebookPageArray
& pages
,
342 const wxSize
& required_bmp_size
);
346 wxFont m_normal_font
;
347 wxFont m_selected_font
;
348 wxFont m_measuring_font
;
349 wxPen m_normal_bkpen
;
350 wxPen m_selected_bkpen
;
351 wxBrush m_normal_bkbrush
;
352 wxBrush m_selected_bkbrush
;
354 wxBitmap m_active_close_bmp
;
355 wxBitmap m_disabled_close_bmp
;
356 wxBitmap m_active_left_bmp
;
357 wxBitmap m_disabled_left_bmp
;
358 wxBitmap m_active_right_bmp
;
359 wxBitmap m_disabled_right_bmp
;
360 wxBitmap m_active_windowlist_bmp
;
361 wxBitmap m_disabled_windowlist_bmp
;
363 int m_fixed_tab_width
;
364 unsigned int m_flags
;
375 class WXDLLIMPEXP_AUI wxAuiTabContainer
380 virtual ~wxAuiTabContainer();
382 void SetArtProvider(wxAuiTabArt
* art
);
383 wxAuiTabArt
* GetArtProvider() const;
385 void SetFlags(unsigned int flags
);
386 unsigned int GetFlags() const;
388 bool AddPage(wxWindow
* page
, const wxAuiNotebookPage
& info
);
389 bool InsertPage(wxWindow
* page
, const wxAuiNotebookPage
& info
, size_t idx
);
390 bool MovePage(wxWindow
* page
, size_t new_idx
);
391 bool RemovePage(wxWindow
* page
);
392 bool SetActivePage(wxWindow
* page
);
393 bool SetActivePage(size_t page
);
394 void SetNoneActive();
395 int GetActivePage() const;
396 bool TabHitTest(int x
, int y
, wxWindow
** hit
) const;
397 bool ButtonHitTest(int x
, int y
, wxAuiTabContainerButton
** hit
) const;
398 wxWindow
* GetWindowFromIdx(size_t idx
) const;
399 int GetIdxFromWindow(wxWindow
* page
) const;
400 size_t GetPageCount() const;
401 wxAuiNotebookPage
& GetPage(size_t idx
);
402 const wxAuiNotebookPage
& GetPage(size_t idx
) const;
403 wxAuiNotebookPageArray
& GetPages();
404 void SetNormalFont(const wxFont
& normal_font
);
405 void SetSelectedFont(const wxFont
& selected_font
);
406 void SetMeasuringFont(const wxFont
& measuring_font
);
408 void SetRect(const wxRect
& rect
);
410 void RemoveButton(int id
);
411 void AddButton(int id
,
413 const wxBitmap
& normal_bitmap
= wxNullBitmap
,
414 const wxBitmap
& disabled_bitmap
= wxNullBitmap
);
416 size_t GetTabOffset() const;
417 void SetTabOffset(size_t offset
);
421 virtual void Render(wxDC
* dc
, wxWindow
* wnd
);
426 wxAuiNotebookPageArray m_pages
;
427 wxAuiTabContainerButtonArray m_buttons
;
428 wxAuiTabContainerButtonArray m_tab_close_buttons
;
431 unsigned int m_flags
;
436 class WXDLLIMPEXP_AUI wxAuiTabCtrl
: public wxControl
,
437 public wxAuiTabContainer
441 wxAuiTabCtrl(wxWindow
* parent
,
442 wxWindowID id
= wxID_ANY
,
443 const wxPoint
& pos
= wxDefaultPosition
,
444 const wxSize
& size
= wxDefaultSize
,
449 #if wxABI_VERSION >= 20805
450 bool IsDragging() const { return m_is_dragging
; }
455 void OnPaint(wxPaintEvent
& evt
);
456 void OnEraseBackground(wxEraseEvent
& evt
);
457 void OnSize(wxSizeEvent
& evt
);
458 void OnLeftDown(wxMouseEvent
& evt
);
459 void OnLeftUp(wxMouseEvent
& evt
);
460 void OnMiddleDown(wxMouseEvent
& evt
);
461 void OnMiddleUp(wxMouseEvent
& evt
);
462 void OnRightDown(wxMouseEvent
& evt
);
463 void OnRightUp(wxMouseEvent
& evt
);
464 void OnMotion(wxMouseEvent
& evt
);
465 void OnLeaveWindow(wxMouseEvent
& evt
);
466 void OnButton(wxAuiNotebookEvent
& evt
);
472 wxWindow
* m_click_tab
;
474 wxAuiTabContainerButton
* m_hover_button
;
475 wxAuiTabContainerButton
* m_pressed_button
;
478 DECLARE_CLASS(wxAuiTabCtrl
)
479 DECLARE_EVENT_TABLE()
486 class WXDLLIMPEXP_AUI wxAuiNotebook
: public wxControl
493 wxAuiNotebook(wxWindow
* parent
,
494 wxWindowID id
= wxID_ANY
,
495 const wxPoint
& pos
= wxDefaultPosition
,
496 const wxSize
& size
= wxDefaultSize
,
497 long style
= wxAUI_NB_DEFAULT_STYLE
);
499 virtual ~wxAuiNotebook();
501 bool Create(wxWindow
* parent
,
502 wxWindowID id
= wxID_ANY
,
503 const wxPoint
& pos
= wxDefaultPosition
,
504 const wxSize
& size
= wxDefaultSize
,
507 void SetWindowStyleFlag(long style
);
508 void SetArtProvider(wxAuiTabArt
* art
);
509 wxAuiTabArt
* GetArtProvider() const;
511 virtual void SetUniformBitmapSize(const wxSize
& size
);
512 virtual void SetTabCtrlHeight(int height
);
514 bool AddPage(wxWindow
* page
,
515 const wxString
& caption
,
517 const wxBitmap
& bitmap
= wxNullBitmap
);
519 bool InsertPage(size_t page_idx
,
521 const wxString
& caption
,
523 const wxBitmap
& bitmap
= wxNullBitmap
);
525 bool DeletePage(size_t page
);
526 bool RemovePage(size_t page
);
528 size_t GetPageCount() const;
529 wxWindow
* GetPage(size_t page_idx
) const;
530 int GetPageIndex(wxWindow
* page_wnd
) const;
532 bool SetPageText(size_t page
, const wxString
& text
);
533 wxString
GetPageText(size_t page_idx
) const;
535 bool SetPageBitmap(size_t page
, const wxBitmap
& bitmap
);
536 wxBitmap
GetPageBitmap(size_t page_idx
) const;
538 size_t SetSelection(size_t new_page
);
539 int GetSelection() const;
541 virtual void Split(size_t page
, int direction
);
543 const wxAuiManager
& GetAuiManager() const { return m_mgr
; }
545 // Sets the normal font
546 void SetNormalFont(const wxFont
& font
);
548 // Sets the selected tab font
549 void SetSelectedFont(const wxFont
& font
);
551 // Sets the measuring font
552 void SetMeasuringFont(const wxFont
& font
);
555 virtual bool SetFont(const wxFont
& font
);
557 // Gets the tab control height
558 int GetTabCtrlHeight() const;
560 // Gets the height of the notebook for a given page height
561 int GetHeightForPageHeight(int pageHeight
);
565 // these can be overridden
566 virtual void UpdateTabCtrlHeight();
567 virtual int CalculateTabCtrlHeight();
568 virtual wxSize
CalculateNewSplitSize();
573 void InitNotebook(long style
);
574 wxAuiTabCtrl
* GetTabCtrlFromPoint(const wxPoint
& pt
);
575 wxWindow
* GetTabFrameFromTabCtrl(wxWindow
* tab_ctrl
);
576 wxAuiTabCtrl
* GetActiveTabCtrl();
577 bool FindTab(wxWindow
* page
, wxAuiTabCtrl
** ctrl
, int* idx
);
578 void RemoveEmptyTabFrames();
579 void UpdateHintWindowSize();
583 void OnChildFocus(wxChildFocusEvent
& evt
);
584 void OnRender(wxAuiManagerEvent
& evt
);
585 void OnSize(wxSizeEvent
& evt
);
586 void OnTabClicked(wxCommandEvent
& evt
);
587 void OnTabBeginDrag(wxCommandEvent
& evt
);
588 void OnTabDragMotion(wxCommandEvent
& evt
);
589 void OnTabEndDrag(wxCommandEvent
& evt
);
590 void OnTabButton(wxCommandEvent
& evt
);
591 void OnTabMiddleDown(wxCommandEvent
& evt
);
592 void OnTabMiddleUp(wxCommandEvent
& evt
);
593 void OnTabRightDown(wxCommandEvent
& evt
);
594 void OnTabRightUp(wxCommandEvent
& evt
);
596 // set selection to the given window (which must be non-NULL and be one of
597 // our pages, otherwise an assert is raised)
598 void SetSelectionToWindow(wxWindow
*win
);
599 void SetSelectionToPage(const wxAuiNotebookPage
& page
)
601 SetSelectionToWindow(page
.window
);
607 wxAuiTabContainer m_tabs
;
609 int m_tab_id_counter
;
610 wxWindow
* m_dummy_wnd
;
612 wxSize m_requested_bmp_size
;
613 int m_requested_tabctrl_height
;
614 wxFont m_selected_font
;
615 wxFont m_normal_font
;
616 int m_tab_ctrl_height
;
619 unsigned int m_flags
;
622 DECLARE_CLASS(wxAuiNotebook
)
623 DECLARE_EVENT_TABLE()
630 // wx event machinery
634 BEGIN_DECLARE_EVENT_TYPES()
635 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE
, 0)
636 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED
, 0)
637 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING
, 0)
638 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_BUTTON
, 0)
639 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG
, 0)
640 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_END_DRAG
, 0)
641 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION
, 0)
642 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND
, 0)
643 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN
, 0)
644 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP
, 0)
645 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN
, 0)
646 DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_AUI
, wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP
, 0)
647 END_DECLARE_EVENT_TYPES()
649 typedef void (wxEvtHandler::*wxAuiNotebookEventFunction
)(wxAuiNotebookEvent
&);
651 #define wxAuiNotebookEventHandler(func) \
652 (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxAuiNotebookEventFunction, &func)
654 #define EVT_AUINOTEBOOK_PAGE_CLOSE(winid, fn) \
655 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, winid, wxAuiNotebookEventHandler(fn))
656 #define EVT_AUINOTEBOOK_PAGE_CHANGED(winid, fn) \
657 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, winid, wxAuiNotebookEventHandler(fn))
658 #define EVT_AUINOTEBOOK_PAGE_CHANGING(winid, fn) \
659 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, winid, wxAuiNotebookEventHandler(fn))
660 #define EVT_AUINOTEBOOK_BUTTON(winid, fn) \
661 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_BUTTON, winid, wxAuiNotebookEventHandler(fn))
662 #define EVT_AUINOTEBOOK_BEGIN_DRAG(winid, fn) \
663 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, winid, wxAuiNotebookEventHandler(fn))
664 #define EVT_AUINOTEBOOK_END_DRAG(winid, fn) \
665 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, winid, wxAuiNotebookEventHandler(fn))
666 #define EVT_AUINOTEBOOK_DRAG_MOTION(winid, fn) \
667 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, winid, wxAuiNotebookEventHandler(fn))
668 #define EVT_AUINOTEBOOK_ALLOW_DND(winid, fn) \
669 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, winid, wxAuiNotebookEventHandler(fn))
670 #define EVT_AUINOTEBOOK_TAB_MIDDLE_DOWN(winid, fn) \
671 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN, winid, wxAuiNotebookEventHandler(fn))
672 #define EVT_AUINOTEBOOK_TAB_MIDDLE_UP(winid, fn) \
673 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, winid, wxAuiNotebookEventHandler(fn))
674 #define EVT_AUINOTEBOOK_TAB_RIGHT_DOWN(winid, fn) \
675 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, winid, wxAuiNotebookEventHandler(fn))
676 #define EVT_AUINOTEBOOK_TAB_RIGHT_UP(winid, fn) \
677 wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, winid, wxAuiNotebookEventHandler(fn))
681 // wxpython/swig event work
682 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE
;
683 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED
;
684 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING
;
685 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_BUTTON
;
686 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG
;
687 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_END_DRAG
;
688 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION
;
689 %constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND
;
692 EVT_AUINOTEBOOK_PAGE_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE
, 1 )
693 EVT_AUINOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED
, 1 )
694 EVT_AUINOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING
, 1 )
695 EVT_AUINOTEBOOK_BUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON
, 1 )
696 EVT_AUINOTEBOOK_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG
, 1 )
697 EVT_AUINOTEBOOK_END_DRAG
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG
, 1 )
698 EVT_AUINOTEBOOK_DRAG_MOTION
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION
, 1 )
699 EVT_AUINOTEBOOK_ALLOW_DND
= wx
.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND
, 1 )
705 #endif // _WX_AUINOTEBOOK_H_