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

HallOfFame Class Reference

#include <halloffame.h>

Inheritance diagram for HallOfFame:

Inheritance graph
[legend]
Collaboration diagram for HallOfFame:

Collaboration graph
[legend]

Public Member Functions

 HallOfFame (Window *aParent)
 ~HallOfFame (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

Rsrc res

Constructor & Destructor Documentation

HallOfFame::HallOfFame Window *  aParent  ) 
 

Definition at line 5 of file halloffame.cpp.

References eHallOfFame, and Cfg::GetCfg().

00006 : BqBase( eHallOfFame , aParent ) , res( Cfg::GetCfg().GetFilename() )
00007 {
00008 }

HallOfFame::~HallOfFame void   ) 
 

Definition at line 10 of file halloffame.cpp.

00011 {
00012 }


Member Function Documentation

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

Definition at line 49 of file halloffame.cpp.

References BqBase::isDisplayed.

00050 {
00051         BqBase::evMouseLClick( msg );
00052 
00053         if( isDisplayed )
00054                 if( ((Window *)msg.source)->GetId() == 1 )
00055                 {
00056                         isDisplayed= false;     
00057                         return !isDisplayed;
00058                 }
00059 
00060         return isDisplayed;
00061 }

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

true if the screen must be refreshed

Reimplemented from BqBase.

Definition at line 42 of file halloffame.cpp.

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

00043 {
00044         SetupDialog( "HallOfFame" );
00045 
00046         return BqBase::MainLoop();
00047 }

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

Reimplemented from BqBase.

Definition at line 14 of file halloffame.cpp.

References BqBase::f, Cfg::GetCfg(), Cfg::Handler::GetCfgString(), icstring, itoa(), and BqBase::SetupWindow().

00015 {
00016         icstring tmp, tmp1;
00017 
00018         BqBase::SetupWindow( aMsg );
00019         
00020         if( f )
00021         {
00022                 Cfg::Handler    &h = Cfg::GetCfg();
00023                 char    temp[20];
00024 
00025                 XListBox        *lb = dynamic_cast<XListBox *>( f->GetArsObject( 2 ) );
00026                 int     i = 0;
00027                 icstring        str;
00028                 while( !(str = h.GetCfgString( "HallOfFame" , itoa( i++ , temp , 10 ) ).c_str()).empty() && lb )
00029                 {
00030                         tmp = FindCrdOf( str , "score" );
00031                         tmp1 = FindCrdOf ( str , "date" );
00032                         char    buffer[1024];
00033                         sprintf( buffer , "%-30.30s\t%20.20s\t\t%s" , GetStr( str ).c_str() , 
00034                         Rsrc::GetId( tmp ).c_str() , 
00035                         Rsrc::GetStr( tmp1 ).c_str() );
00036                         lb->AddItem( buffer );
00037                 }
00038         }
00039         return true;
00040 }


Field Documentation

Rsrc HallOfFame::res [private]
 

Definition at line 22 of file halloffame.h.


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