2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: listbook.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxListbook
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2012-06-20 13:10:23 -04:00
|
|
|
// wxListbook flags
|
|
|
|
#define wxLB_DEFAULT wxBK_DEFAULT
|
|
|
|
#define wxLB_TOP wxBK_TOP
|
|
|
|
#define wxLB_BOTTOM wxBK_BOTTOM
|
|
|
|
#define wxLB_LEFT wxBK_LEFT
|
|
|
|
#define wxLB_RIGHT wxBK_RIGHT
|
|
|
|
#define wxLB_ALIGN_MASK wxBK_ALIGN_MASK
|
|
|
|
|
2013-04-25 06:11:03 -04:00
|
|
|
wxEventType wxEVT_LISTBOOK_PAGE_CHANGED;
|
|
|
|
wxEventType wxEVT_LISTBOOK_PAGE_CHANGING;
|
2012-06-20 13:10:23 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
|
|
|
@class wxListbook
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-13 06:27:19 -04:00
|
|
|
wxListbook is a class similar to wxNotebook but which uses a wxListCtrl
|
|
|
|
to show the labels instead of the tabs.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-06-06 19:50:21 -04:00
|
|
|
The underlying wxListCtrl displays page labels in a one-column report view
|
2008-10-13 06:27:19 -04:00
|
|
|
by default. Calling wxBookCtrl::SetImageList will implicitly switch the
|
2008-06-06 19:50:21 -04:00
|
|
|
control to use an icon view.
|
|
|
|
|
2008-10-13 06:27:19 -04:00
|
|
|
For usage documentation of this class, please refer to the base abstract class
|
|
|
|
wxBookCtrl. You can also use the @ref page_samples_notebook to see wxListbook in
|
2008-03-08 08:52:38 -05:00
|
|
|
action.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@beginStyleTable
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxLB_DEFAULT}
|
2008-03-08 08:52:38 -05:00
|
|
|
Choose the default location for the labels depending on the current
|
|
|
|
platform (left everywhere except Mac where it is top).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxLB_TOP}
|
2008-03-08 08:52:38 -05:00
|
|
|
Place labels above the page area.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxLB_LEFT}
|
2008-03-08 08:52:38 -05:00
|
|
|
Place labels on the left side.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxLB_RIGHT}
|
2008-03-08 08:52:38 -05:00
|
|
|
Place labels on the right side.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxLB_BOTTOM}
|
2008-03-08 08:52:38 -05:00
|
|
|
Place labels below the page area.
|
|
|
|
@endStyleTable
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2009-02-18 12:58:51 -05:00
|
|
|
@beginEventEmissionTable{wxBookCtrlEvent}
|
2008-10-13 06:27:19 -04:00
|
|
|
@event{EVT_LISTBOOK_PAGE_CHANGED(id, func)}
|
|
|
|
The page selection was changed.
|
2013-04-25 06:11:03 -04:00
|
|
|
Processes a @c wxEVT_LISTBOOK_PAGE_CHANGED event.
|
2008-10-13 06:27:19 -04:00
|
|
|
@event{EVT_LISTBOOK_PAGE_CHANGING(id, func)}
|
|
|
|
The page selection is about to be changed.
|
2013-04-25 06:11:03 -04:00
|
|
|
Processes a @c wxEVT_LISTBOOK_PAGE_CHANGING event.
|
2008-10-13 06:27:19 -04:00
|
|
|
This event can be vetoed.
|
|
|
|
@endEventTable
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxcore}
|
2009-02-20 06:34:52 -05:00
|
|
|
@category{bookctrl}
|
2012-11-03 14:32:50 -04:00
|
|
|
@appearance{listbook}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-13 15:55:46 -04:00
|
|
|
@see wxBookCtrl, wxNotebook, @ref page_samples_notebook
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-10-13 06:27:19 -04:00
|
|
|
class wxListbook : public wxBookCtrlBase
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2008-10-13 06:27:19 -04:00
|
|
|
Default ctor.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxListbook();
|
2008-10-13 06:27:19 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
Constructs a listbook control.
|
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
wxListbook(wxWindow* parent, wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
2008-11-10 16:33:25 -05:00
|
|
|
const wxString& name = wxEmptyString);
|
2008-10-13 06:27:19 -04:00
|
|
|
|
2012-06-20 13:10:23 -04:00
|
|
|
/**
|
|
|
|
Create the list 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 06:27:19 -04:00
|
|
|
/**
|
|
|
|
Returns the wxListView associated with the control.
|
|
|
|
*/
|
|
|
|
wxListView* GetListView() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|