2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: toolbook.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxToolbook
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2012-06-20 17:10:23 +00:00
|
|
|
#define wxTBK_BUTTONBAR 0x0100
|
|
|
|
#define wxTBK_HORZ_LAYOUT 0x8000
|
|
|
|
|
2013-04-25 10:11:03 +00:00
|
|
|
wxEventType wxEVT_TOOLBOOK_PAGE_CHANGED;
|
|
|
|
wxEventType wxEVT_TOOLBOOK_PAGE_CHANGING;
|
2012-06-20 17:10:23 +00:00
|
|
|
|
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
@class wxToolbook
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-05-08 20:46:34 +00:00
|
|
|
wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to
|
|
|
|
show the labels instead of the tabs.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-05-08 20:46:34 +00:00
|
|
|
There is no documentation for this class yet but its usage is identical to
|
|
|
|
wxNotebook (except for the features clearly related to tabs only), so please
|
|
|
|
refer to that class documentation for now. You can also use the
|
|
|
|
@ref page_samples_notebook to see wxToolbook in action.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@beginStyleTable
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxTBK_BUTTONBAR}
|
2008-05-08 20:46:34 +00:00
|
|
|
Use wxButtonToolBar-based implementation under Mac OS (ignored under
|
|
|
|
other platforms).
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxTBK_HORZ_LAYOUT}
|
2008-05-08 20:46:34 +00:00
|
|
|
Shows the text and the icons alongside, not vertically stacked (only
|
2008-10-13 10:27:19 +00:00
|
|
|
implement under Windows and GTK 2 platforms as it relies on
|
|
|
|
@c wxTB_HORZ_LAYOUT flag support).
|
2008-03-08 13:52:38 +00:00
|
|
|
@endStyleTable
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-05-08 20:46:34 +00:00
|
|
|
The common wxBookCtrl styles described in the @ref overview_bookctrl are
|
|
|
|
also supported.
|
|
|
|
|
2009-02-18 17:58:51 +00:00
|
|
|
@beginEventEmissionTable{wxBookCtrlEvent}
|
2008-10-13 10:27:19 +00:00
|
|
|
@event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)}
|
|
|
|
The page selection was changed.
|
2013-04-25 10:11:03 +00:00
|
|
|
Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGED event.
|
2008-10-13 10:27:19 +00:00
|
|
|
@event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)}
|
|
|
|
The page selection is about to be changed.
|
2013-04-25 10:11:03 +00:00
|
|
|
Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGING event.
|
2008-10-13 10:27:19 +00:00
|
|
|
This event can be vetoed (using wxNotifyEvent::Veto()).
|
|
|
|
@endEventTable
|
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
2009-02-20 11:34:52 +00:00
|
|
|
@category{bookctrl}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-05-08 20:46:34 +00:00
|
|
|
@see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
|
|
|
|
@ref page_samples_notebook
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-05-08 20:46:34 +00:00
|
|
|
class wxToolbook : public wxBookCtrlBase
|
2008-03-08 13:52:38 +00:00
|
|
|
{
|
|
|
|
public:
|
2008-10-13 10:27:19 +00:00
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Constructs a choicebook control.
|
|
|
|
*/
|
|
|
|
wxToolbook();
|
|
|
|
wxToolbook(wxWindow* parent, wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
2012-02-11 18:36:41 +00:00
|
|
|
const wxString& name = wxEmptyString);
|
2008-10-13 10:27:19 +00:00
|
|
|
//@}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2012-06-20 17:10:23 +00:00
|
|
|
/**
|
|
|
|
Create the tool book control that has already been constructed with
|
|
|
|
the default constructor.
|
|
|
|
*/
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxEmptyString);
|
|
|
|
|
2008-10-13 10:27:19 +00:00
|
|
|
/**
|
|
|
|
Returns the wxToolBarBase associated with the control.
|
|
|
|
*/
|
|
|
|
wxToolBarBase* GetToolBar() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|