#include <SdlArs.h>
Include dependency graph for SdlArs.cpp:
Go to the source code of this file.
Namespaces | |
namespace | Ars |
Functions | |
Ars::Window * | cbObjCreate (const icstring &name) |
const int | TofMain (const int argc, char **argv) |
int | main (int argc, char **argv) |
Variables | |
ofstream | tron |
Ars::RGBColor | ArsText_color (0, 0, 0) |
Ars::RGBColor | ArsBack_color (0xc0, 0xc0, 0xc0) |
Ars::ArsApplication * | _mainApp_ |
|
Definition at line 6 of file arsobject.cpp. Referenced by Ars::ArsApplication::ArsApplication().
00007 { 00008 Ars::Window *ans = 0; 00009 00010 if( name == "Button" ) 00011 ans = new Ars::XButton(); 00012 else if( name == "BTNIMG" ) 00013 ans = new Ars::XButtonImage(); 00014 else if( name == "CheckBox" ) 00015 ans = new Ars::XCheckBox(); 00016 else if( name == "DROPDOWN" ) 00017 ans = new Ars::XDropDown(); 00018 else if( name == "EDITBOX" ) 00019 ans = new Ars::XEditBox(); 00020 else if( name == "GROUPBOX" ) 00021 ans = new Ars::XGroupBox(); 00022 else if( name == "BOX" ) 00023 ans = new Ars::XBox(); 00024 else if( name == "LABEL" ) 00025 ans = new Ars::XLabel(); 00026 else if( name == "LISTBOX" ) 00027 ans = new Ars::XListBox(); 00028 else if( name == "IMAGE" ) 00029 ans = new Ars::XImage(); 00030 else if( name == "SCROLL" ) 00031 ans = new Ars::XScrollBar(); 00032 else if( name == "PROGRESS" ) 00033 ans = new Ars::XProgress(); 00034 else if( name == "MPEG" ) 00035 ans = new Ars::XMPEG(); 00036 else if( name == "TextBox" ) 00037 ans = new Ars::XTextBox(); 00038 00039 return ans; 00040 } |
|
Definition at line 296 of file SdlArs.cpp. References TofMain(), and tron.
00297 { 00298 string s = argv[0]; 00299 s = s.substr( 0 , s.find_last_of( '.' ) ); 00300 s += ".log"; 00301 tron.open( s.c_str() , ios::app ); 00302 00303 time_t t; 00304 time( &t ); 00305 struct tm *tm = localtime( &t ); 00306 tron << endl << argv[0] << endl; 00307 s.assign( (int)strlen( argv[0] ) , '=' ); 00308 tron << s << endl << "started at " << asctime( tm ) << endl << endl; 00309 00310 int iExitCode = EXIT_FAILURE; 00311 iExitCode = TofMain( argc , argv ); 00312 00313 t; 00314 time( &t ); 00315 tm = localtime( &t ); 00316 tron << endl << "finished at " << asctime( tm ) << endl << endl; 00317 00318 exit(iExitCode); 00319 } |
|
Definition at line 10 of file borqueror.cpp. References _mainApp_, Ars::ArsApplication::Exec(), Ars::ArsApplication::ExitCode(), and Ars::ArsApplication::Init(). Referenced by main().
00011 { 00012 #ifdef WIN32 00013 # ifdef _DEBUG 00014 // Get current flag 00015 int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ); 00016 // Turn on leak-checking bit 00017 tmpFlag |= _CRTDBG_LEAK_CHECK_DF; 00018 // Turn off CRT block checking bit 00019 tmpFlag &= ~_CRTDBG_CHECK_CRT_DF; 00020 // Set flag to the new value 00021 _CrtSetDbgFlag( tmpFlag ); 00022 # endif 00023 #endif 00024 extern ArsApplication *_mainApp_; 00025 00026 _mainApp_ = (ArsApplication *)new Borqueror( argc , argv ); 00027 _mainApp_->Init(); 00028 _mainApp_->Exec(); 00029 int ans = _mainApp_->ExitCode(); 00030 delete _mainApp_; 00031 00032 MessageServer *ins = &MessageServer::Instance(); 00033 if( ins ) 00034 delete ins; 00035 ins = 0; 00036 00037 return ans; 00038 } |
|
Definition at line 28 of file SdlArs.cpp. Referenced by TofMain(). |
|
Definition at line 88 of file SdlArs.h. Referenced by Ars::ArsApplication::GenDefaultCfg(), and Ars::ArsApplication::Init(). |
|
Definition at line 88 of file SdlArs.h. Referenced by Ars::ArsApplication::GenDefaultCfg(), and Ars::ArsApplication::Init(). |
|