uMenuItemToggle Class Reference

#include <uMenu.h>

Inheritance diagram for uMenuItemToggle:

Inheritance graph
[legend]
Collaboration diagram for uMenuItemToggle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 uMenuItemToggle (uMenu *m, const tOutput &title, const tOutput &help, bool &targ)
 ~uMenuItemToggle ()
virtual void LeftRight (int)
virtual void Enter ()

Private Member Functions

void NewChoice (uSelectItem< bool > *c)
void NewChoice (const char *desc, bool val)


Detailed Description

Definition at line 326 of file uMenu.h.


Constructor & Destructor Documentation

uMenuItemToggle::uMenuItemToggle ( uMenu m,
const tOutput title,
const tOutput help,
bool &  targ 
)

Definition at line 622 of file uMenu.cpp.

References uMenuItemSelection< T >::NewChoice().

00627         :uMenuItemSelection<bool>(m,tit,help,targ){
00628     uMenuItemSelection<bool>::NewChoice("$menuitem_toggle_on","",true);
00629     uMenuItemSelection<bool>::NewChoice("$menuitem_toggle_off","",false);

Here is the call graph for this function:

uMenuItemToggle::~uMenuItemToggle (  ) 

Definition at line 631 of file uMenu.cpp.


Member Function Documentation

void uMenuItemToggle::NewChoice ( uSelectItem< bool > *  c  )  [private]

Reimplemented from uMenuItemSelection< bool >.

Definition at line 608 of file uMenu.cpp.

void uMenuItemToggle::NewChoice ( const char *  desc,
bool  val 
) [private]

Definition at line 609 of file uMenu.cpp.

00609 {}

void uMenuItemToggle::LeftRight ( int   )  [virtual]

Reimplemented from uMenuItemSelection< bool >.

Definition at line 633 of file uMenu.cpp.

References uMenuItemSelection< bool >::select, and uMenuItemSelection< bool >::target.

Referenced by Enter().

00634                                   {
00635     select=1-select;
00636     *target=!(*target);

Here is the caller graph for this function:

void uMenuItemToggle::Enter (  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 638 of file uMenu.cpp.

References LeftRight().

00639                            {
00640     LeftRight(0);

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:01:24 2008 for Armagetron Advanced by  doxygen 1.5.4