Public Member Functions | |
eMenuItemVote (uMenu *m, eVoteItem *v) | |
~eMenuItemVote () | |
Private Attributes | |
eVoteItem * | item_ |
Vote | vote_ |
uSelectEntry< Vote > | reject_ |
uSelectEntry< Vote > | dontMind_ |
uSelectEntry< Vote > | approve_ |
Friends | |
class | eVoteItem |
class | eVoteItemServerControlled |
Definition at line 721 of file eVoter.cpp.
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 }
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 }
friend class eVoteItem [friend] |
Definition at line 723 of file eVoter.cpp.
friend class eVoteItemServerControlled [friend] |
Definition at line 724 of file eVoter.cpp.
eVoteItem* eMenuItemVote::item_ [private] |
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.