#include <ax/ax_controller_standard.h>
Public Member Functions | |
AxMenuListCtrl () | |
AxMenuListCtrl (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT) | |
~AxMenuListCtrl () | |
void | SetController (AxStandardMenuController *controller) |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT) |
void | Init () |
virtual bool | RefreshMenu (AxMenu *menu) |
Called when the menu must be refreshed. | |
virtual bool | UpdateMenuItem (AxMenu *menu, AxMenuItem *item) |
Called when a menu item must be updated. | |
virtual bool | SetMenuItemData (wxListItem &info, AxMenuItem *item) |
Set the menu item data. | |
virtual bool | SetMenuSelection (AxMenuItem *menuItem) |
Called when a menu item should be selected. | |
virtual AxMenuItem * | GetMenuSelection () const |
Called to get the currently selected menu item. | |
void | SetSelection (long sel, bool select) |
Set selection. | |
int | GetSelection () const |
Get selection. | |
virtual bool | IdleProcessing () |
Perform any required idle processing. | |
virtual bool | ApplySettings (int hints, const AxVisualSettings &settings) |
Apply settings to the appearance, in particular the background colour. | |
void | OnSelect (wxListEvent &event) |
void | OnActivate (wxListEvent &event) |
void | OnSize (wxSizeEvent &event) |
void | OnChar (wxKeyEvent &event) |
Protected Attributes | |
AxStandardMenuController * | m_controller |
AxMenu * | m_menu |
int | m_toActivate |
AxMenuListCtrl::AxMenuListCtrl | ( | ) | [inline] |
AxMenuListCtrl::AxMenuListCtrl | ( | wxWindow * | parent, | |
wxWindowID | id = wxID_ANY , |
|||
const wxPoint & | pos = wxDefaultPosition , |
|||
const wxSize & | size = wxDefaultSize , |
|||
long | style = wxLC_REPORT | |||
) |
AxMenuListCtrl::~AxMenuListCtrl | ( | ) |
bool AxMenuListCtrl::ApplySettings | ( | int | hints, | |
const AxVisualSettings & | settings | |||
) | [virtual] |
Apply settings to the appearance, in particular the background colour.
bool AxMenuListCtrl::Create | ( | wxWindow * | parent, | |
wxWindowID | id = wxID_ANY , |
|||
const wxPoint & | pos = wxDefaultPosition , |
|||
const wxSize & | size = wxDefaultSize , |
|||
long | style = wxLC_REPORT | |||
) |
AxMenuItem * AxMenuListCtrl::GetMenuSelection | ( | ) | const [virtual] |
Called to get the currently selected menu item.
int AxMenuListCtrl::GetSelection | ( | ) | const |
Get selection.
bool AxMenuListCtrl::IdleProcessing | ( | ) | [virtual] |
Perform any required idle processing.
void AxMenuListCtrl::Init | ( | ) |
void AxMenuListCtrl::OnActivate | ( | wxListEvent & | event | ) |
void AxMenuListCtrl::OnChar | ( | wxKeyEvent & | event | ) |
void AxMenuListCtrl::OnSelect | ( | wxListEvent & | event | ) |
void AxMenuListCtrl::OnSize | ( | wxSizeEvent & | event | ) |
bool AxMenuListCtrl::RefreshMenu | ( | AxMenu * | menu | ) | [virtual] |
Called when the menu must be refreshed.
void AxMenuListCtrl::SetController | ( | AxStandardMenuController * | controller | ) | [inline] |
bool AxMenuListCtrl::SetMenuItemData | ( | wxListItem & | info, | |
AxMenuItem * | item | |||
) | [virtual] |
Set the menu item data.
bool AxMenuListCtrl::SetMenuSelection | ( | AxMenuItem * | menuItem | ) | [virtual] |
Called when a menu item should be selected.
void AxMenuListCtrl::SetSelection | ( | long | sel, | |
bool | select | |||
) |
Set selection.
bool AxMenuListCtrl::UpdateMenuItem | ( | AxMenu * | menu, | |
AxMenuItem * | item | |||
) | [virtual] |
Called when a menu item must be updated.
AxStandardMenuController* AxMenuListCtrl::m_controller [protected] |
AxMenu* AxMenuListCtrl::m_menu [protected] |
int AxMenuListCtrl::m_toActivate [protected] |