#include <ax/ax_menu_toggle.h>
Public Member Functions | |
AxToggleMenuItem (const AxToggleMenuItem &item) | |
AxToggleMenuItem () | |
AxToggleMenuItem (const wxString &uncheckedLabel, const wxString &checkedLabel, const wxString &description, const wxString &id=wxEmptyString, bool value=false) | |
void | Copy (const AxToggleMenuItem &item) |
virtual AxMenuItem * | Clone () |
bool | IsChecked () const |
virtual bool | Check (bool checked) |
void | UpdateToggleLabel () |
void | SendToggleUpdate (bool value) |
void | SetUncheckedLabel (const wxString &label) |
const wxString & | GetUncheckedLabel () const |
void | SetCheckedLabel (const wxString &label) |
const wxString & | GetCheckedLabel () const |
Protected Attributes | |
bool | m_checked |
wxString | m_uncheckedLabel |
wxString | m_checkedLabel |
On activation, the value is toggled.
label and description can both contain the VALUE% keyword, which will be substituted with the current value.
When the value is changed, a wxEVT_COMMAND_CHECKBOX_CLICKED
event is generated.
AxToggleMenuItem::AxToggleMenuItem | ( | const AxToggleMenuItem & | item | ) | [inline] |
AxToggleMenuItem::AxToggleMenuItem | ( | ) | [inline] |
AxToggleMenuItem::AxToggleMenuItem | ( | const wxString & | uncheckedLabel, | |
const wxString & | checkedLabel, | |||
const wxString & | description, | |||
const wxString & | id = wxEmptyString , |
|||
bool | value = false | |||
) |
bool AxToggleMenuItem::Check | ( | bool | checked | ) | [virtual] |
virtual AxMenuItem* AxToggleMenuItem::Clone | ( | ) | [inline, virtual] |
void AxToggleMenuItem::Copy | ( | const AxToggleMenuItem & | item | ) | [inline] |
const wxString& AxToggleMenuItem::GetCheckedLabel | ( | ) | const [inline] |
const wxString& AxToggleMenuItem::GetUncheckedLabel | ( | ) | const [inline] |
bool AxToggleMenuItem::IsChecked | ( | ) | const [inline] |
void AxToggleMenuItem::SendToggleUpdate | ( | bool | value | ) |
void AxToggleMenuItem::SetCheckedLabel | ( | const wxString & | label | ) | [inline] |
void AxToggleMenuItem::SetUncheckedLabel | ( | const wxString & | label | ) | [inline] |
void AxToggleMenuItem::UpdateToggleLabel | ( | ) |
bool AxToggleMenuItem::m_checked [protected] |
wxString AxToggleMenuItem::m_checkedLabel [protected] |
wxString AxToggleMenuItem::m_uncheckedLabel [protected] |