eMenuItemVote Class Reference

Inheritance diagram for eMenuItemVote:

Inheritance graph
[legend]
Collaboration diagram for eMenuItemVote:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 eMenuItemVote (uMenu *m, eVoteItem *v)
 ~eMenuItemVote ()

Private Attributes

eVoteItemitem_
Vote vote_
uSelectEntry< Votereject_
uSelectEntry< VotedontMind_
uSelectEntry< Voteapprove_

Friends

class eVoteItem
class eVoteItemServerControlled


Detailed Description

Definition at line 721 of file eVoter.cpp.


Constructor & Destructor Documentation

eMenuItemVote::eMenuItemVote ( uMenu m,
eVoteItem v 
) [inline]

Definition at line 727 of file eVoter.cpp.

References eVoteItem::menuItem_, tASSERT, and eVoteItem::UpdateMenuItem().

00728             : uMenuItemSelection< Vote >( m, tOutput(""), tOutput("$vote_help"), vote_ )
00729             , item_( v )
00730             , vote_ ( Vote_DontMind )
00731             , reject_   ( *this, "$vote_reject"         , "$vote_reject_help"           , Vote_Reject   )
00732             , dontMind_ ( *this, "$vote_dont_mind"      , "$vote_dont_mind_help"        , Vote_DontMind )
00733             , approve_  ( *this, "$vote_approve"        , "$vote_approve_help"          , Vote_Approve  )
00734     {
00735         tASSERT( v );
00736 
00737         if ( v )
00738         {
00739             v->menuItem_ = this;
00740             v->UpdateMenuItem();
00741         }
00742     }

Here is the call graph for this function:

eMenuItemVote::~eMenuItemVote (  )  [inline]

Definition at line 744 of file eVoter.cpp.

References Vote_Approve, and Vote_Reject.

00745     {
00746         if ( item_ )
00747         {
00748             item_->menuItem_ = 0;
00749 
00750             switch ( vote_ )
00751             {
00752             case Vote_Approve:
00753                 item_->Vote( true );
00754                 break;
00755             case Vote_Reject:
00756                 item_->Vote( false );
00757                 break;
00758             default:
00759                 break;
00760             }
00761         }
00762     }


Friends And Related Function Documentation

friend class eVoteItem [friend]

Definition at line 723 of file eVoter.cpp.

friend class eVoteItemServerControlled [friend]

Definition at line 724 of file eVoter.cpp.


Member Data Documentation

eVoteItem* eMenuItemVote::item_ [private]

Definition at line 765 of file eVoter.cpp.

Referenced by eVoteItem::~eVoteItem().

Vote eMenuItemVote::vote_ [private]

Definition at line 766 of file eVoter.cpp.

uSelectEntry< Vote > eMenuItemVote::reject_ [private]

Definition at line 767 of file eVoter.cpp.

uSelectEntry< Vote > eMenuItemVote::dontMind_ [private]

Definition at line 767 of file eVoter.cpp.

uSelectEntry< Vote > eMenuItemVote::approve_ [private]

Definition at line 767 of file eVoter.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:26:15 2008 for Armagetron Advanced by  doxygen 1.5.4