AxToggleMenuItem Class Reference
[Basic AxTk UI classes]

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

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


Member Data Documentation

bool AxToggleMenuItem::m_checked [protected]

wxString AxToggleMenuItem::m_checkedLabel [protected]

wxString AxToggleMenuItem::m_uncheckedLabel [protected]


The documentation for this class was generated from the following files:

Generated on Wed May 6 19:22:08 2009 for AxTk by  doxygen 1.5.8