AxToggleMenuItem Class Reference

This is a menu item with two states. More...

#include <ax/ax_menu_toggle.h>

Inheritance diagram for AxToggleMenuItem:

AxMenuItem List of all members.

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 AxMenuItemClone ()
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

Detailed Description

This is a menu item with two states.

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.


Constructor & Destructor Documentation

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 
)


Member Function Documentation

void AxToggleMenuItem::Copy ( const AxToggleMenuItem item  )  [inline]

virtual AxMenuItem* AxToggleMenuItem::Clone (  )  [inline, virtual]

bool AxToggleMenuItem::IsChecked (  )  const [inline]

bool AxToggleMenuItem::Check ( bool  checked  )  [virtual]

void AxToggleMenuItem::UpdateToggleLabel (  ) 

void AxToggleMenuItem::SendToggleUpdate ( bool  value  ) 

void AxToggleMenuItem::SetUncheckedLabel ( const wxString &  label  )  [inline]

const wxString& AxToggleMenuItem::GetUncheckedLabel (  )  const [inline]

void AxToggleMenuItem::SetCheckedLabel ( const wxString &  label  )  [inline]

const wxString& AxToggleMenuItem::GetCheckedLabel (  )  const [inline]


Member Data Documentation

bool AxToggleMenuItem::m_checked [protected]

wxString AxToggleMenuItem::m_uncheckedLabel [protected]

wxString AxToggleMenuItem::m_checkedLabel [protected]


The documentation for this class was generated from the following files:
Generated on Wed May 6 19:20:22 2009 for AxTk by  doxygen 1.5.1