#include <halloffame.h>
Inheritance diagram for HallOfFame:


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 |
|
|
Definition at line 5 of file halloffame.cpp. References eHallOfFame, and Cfg::GetCfg().
|
|
|
Definition at line 10 of file halloffame.cpp.
00011 {
00012 }
|
|
|
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 }
|
|
|
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 }
|
|
|
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 }
|
|
|
Definition at line 22 of file halloffame.h. |
1.3.3