Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Retire Class Reference

#include <retire.h>

Inheritance diagram for Retire:

Inheritance graph
[legend]
Collaboration diagram for Retire:

Collaboration graph
[legend]

Public Member Functions

 Retire (Window *aParent)
 ~Retire (void)

Protected Member Functions

virtual const bool SetupWindow (const Message &msg)
virtual const bool MainLoop (void)
 true if the screen must be refreshed

virtual const bool evMouseLClick (const CtrlMessage &msg)

Private Attributes

bool leaving

Constructor & Destructor Documentation

Retire::Retire Window *  aParent  ) 
 

Definition at line 5 of file retire.cpp.

References eRetire.

00006 : BqBase( eRetire , aParent ) , leaving( false )
00007 {
00008 }

Retire::~Retire void   ) 
 

Definition at line 10 of file retire.cpp.

00011 {
00012 }


Member Function Documentation

const bool Retire::evMouseLClick const CtrlMessage &  msg  )  [protected, virtual]
 

Definition at line 33 of file retire.cpp.

References BqBase::isDisplayed, and leaving.

00034 {
00035         if( isDisplayed )
00036                 if( ((Window *)msg.source)->GetId() == 1 )
00037                 {
00038                         isDisplayed= false;     
00039                         return !isDisplayed;
00040                 }
00041                 else if( ((Window *)msg.source)->GetId() == 2 )
00042                 {
00043                         isDisplayed= false;     
00044                         leaving = true;
00045 //                      ArsPostMessage( Message( Message::APP_EXIT , 0 ) );
00046                         return !isDisplayed;
00047                 }
00048 
00049         return isDisplayed;
00050 }

const bool Retire::MainLoop void   )  [protected, virtual]
 

true if the screen must be refreshed

Reimplemented from BqBase.

Definition at line 21 of file retire.cpp.

References ArsPostMessage, leaving, BqBase::MainLoop(), and BqBase::SetupDialog().

00022 {
00023         SetupDialog( "Retire" );
00024 
00025         const bool ans = BqBase::MainLoop();
00026 
00027         if( leaving )
00028                 ArsPostMessage( UserMessage( Message::USER , GetParent() , 8 ) );
00029 
00030         return ans;
00031 }

const bool Retire::SetupWindow const Message &  msg  )  [protected, virtual]
 

Reimplemented from BqBase.

Definition at line 14 of file retire.cpp.

References BqBase::SetupWindow().

00015 {
00016         BqBase::SetupWindow( aMsg );
00017 
00018         return true;
00019 }


Field Documentation

bool Retire::leaving [private]
 

Definition at line 21 of file retire.h.

Referenced by evMouseLClick(), and MainLoop().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 04:06:35 2003 for Borqueror by doxygen 1.3.3