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

MainSave Class Reference

#include <mainsave.h>

Inheritance diagram for MainSave:

Inheritance graph
[legend]
Collaboration diagram for MainSave:

Collaboration graph
[legend]

Public Member Functions

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

MainSave::MainSave Window *  aParent  ) 
 

Definition at line 3 of file mainsave.cpp.

References eSaveGame, and Cfg::GetCfg().

00004 : BqBase( eSaveGame , aParent ) , res( Cfg::GetCfg().GetFilename() )
00005 {
00006 }

MainSave::~MainSave void   ) 
 

Definition at line 8 of file mainsave.cpp.

00009 {
00010 }


Member Function Documentation

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

Definition at line 26 of file mainsave.cpp.

References BqBase::isDisplayed.

00027 {
00028         BqBase::evMouseLClick( msg );
00029 
00030         if( isDisplayed )
00031                 if( ((Window *)msg.source)->GetId() == 1 )
00032                 {
00033                         isDisplayed= false;     
00034                         return !isDisplayed;
00035                 }
00036                 else if( ((Window *)msg.source)->GetId() == 2 )
00037                 {
00038                         //      ArsPostMessage( UserMessage( Message::USER , 0 , SAVE_GALAXY , strdup( fname.c_str() ) ) );
00039                 }
00040 
00041         return isDisplayed;
00042 }

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

true if the screen must be refreshed

Reimplemented from BqBase.

Definition at line 19 of file mainsave.cpp.

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

00020 {
00021         SetupDialog( "SaveGame" );
00022 
00023         return BqBase::MainLoop();
00024 }

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

Reimplemented from BqBase.

Definition at line 12 of file mainsave.cpp.

References BqBase::SetupWindow().

00013 {
00014         BqBase::SetupWindow( aMsg );
00015 
00016         return true;
00017 }


Field Documentation

Rsrc MainSave::res [private]
 

Definition at line 21 of file mainsave.h.


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