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

mainsave.cpp

Go to the documentation of this file.
00001 #include "borqueror.h"
00002 
00003 MainSave::MainSave( Window *aParent )
00004 : BqBase( eSaveGame , aParent ) , res( Cfg::GetCfg().GetFilename() )
00005 {
00006 }
00007 
00008 MainSave::~MainSave( void )
00009 {
00010 }
00011 
00012 const bool MainSave::SetupWindow( const Message &aMsg )
00013 {
00014         BqBase::SetupWindow( aMsg );
00015 
00016         return true;
00017 }
00018 
00019 const bool MainSave::MainLoop( void )
00020 {
00021         SetupDialog( "SaveGame" );
00022 
00023         return BqBase::MainLoop();
00024 }
00025 
00026 const bool MainSave::evMouseLClick( const CtrlMessage &msg )
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 }
00043 

Generated on Fri Dec 5 04:05:59 2003 for Borqueror by doxygen 1.3.3