Go to the source code of this file.
Functions | |
BOOL | InitKernel () |
Calls all Initxxx functions for everyone else. | |
BOOL | InitKernelPostSplash () |
Initialises various things that should be done after the splash screen has been shown. | |
void | DeinitKernel () |
Calls all Deinitxxx functions for everyone else. | |
void | Test () |
|
Calls all Deinitxxx functions for everyone else.
Definition at line 232 of file main.cpp. 00233 { 00234 // Needs to happen before any major systems disappear (namely the message handler system) 00235 Layer::Deinit(); 00236 00237 // Neville 5/8/97 remove Stroking code 00238 #ifdef VECTOR_STROKING 00239 // Deinit ValueFunction classes 00240 ValueFunction::DeInit(); 00241 #endif 00242 00243 PORTNOTE("extClipboard", "Do no call ExternalClipboard::Deinit") 00244 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX) 00245 ExternalClipboard::Deinit(); // Destroy clipboard manager 00246 // InternalClipboard::Deinit(); // Destroy internal clipboard cache 00247 #else 00248 InternalClipboard::Deinit(); // Destroy internal clipboard cache 00249 #endif 00250 00251 // Remove all the OpDescriptors from their internal static list 00252 OpDescriptor::DestroyAll(); 00253 MessageHandler::Destroy(); // Remove MessageHandler class lists 00254 00255 AttributeManager::Deinit(); 00256 00257 #if !defined(EXCLUDE_FROM_RALPH) 00258 #ifndef STANDALONE 00259 // Write out the preferences, only if the user has requested this 00260 if ( AppPrefsDlg::IsSaveOnExitSet() ) 00261 Camelot.WritePreferences(); 00262 #else 00263 Camelot.WritePreferences(); 00264 #endif 00265 #else 00266 Camelot.WritePreferences(); 00267 #endif 00268 00269 PORTNOTE("other","Removed XPEHost usage") 00270 #ifndef EXCLUDE_FROM_XARALX 00271 XPEEditOp::DeInit(); 00272 XPEHost::EndXPE3Connection(); 00273 #endif 00274 00275 // Always de-init the tools before the modules! 00276 Tool::DeinitTools(); // NB. tool function is also called prior to this 00277 Module::DeinitModules(); // by CMainFrame::OnDestroy() !! 00278 00279 #ifndef EXCLUDE_BFX 00280 #if !defined(EXCLUDE_FROM_RALPH) 00281 BitmapEffectBase::DeInit(); 00282 #endif 00283 #endif 00284 //WEBSTER-ranbirr-12/11/96 00285 #ifndef WEBSTER 00286 #ifndef STANDALONE 00287 // no printing on Viewer version 00288 // defined as a blank nothing function 00289 OpPrint::Deinitialise(); 00290 #endif 00291 #endif // WEBSTER 00292 00293 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX) 00294 #ifndef STANDALONE 00295 // Make sure we throw away all marks before the memory manager is deinitialised 00296 if (Camelot.GetMarksManager()) 00297 Camelot.GetMarksManager()->InvalidateCache(); 00298 #endif 00299 #endif 00300 00301 // Neville 5/8/97 remove Stroking code 00302 #ifdef VECTOR_STROKING 00303 // Make sure any Stroke provider stuff is deinitialised 00304 StrokeComponentClass::DeInit(); 00305 #endif 00306 // get rid of any stored brushes 00307 BrushComponentClass::DeInit(); 00308 00309 OpChangeFeatherSize::DeInit(); 00310 00311 DeinitMemory(); // Must be before deinithandles, as it it uses handles 00312 DeinitHandles(); 00313 // DeinitHotKeySystem(); 00314 00315 CursorStack::DeInit(); 00316 00317 #if !defined(EXCLUDE_FROM_RALPH) 00318 Progress::Deinit(); 00319 StandardUnit::DeInit(); 00320 #endif 00321 00322 #ifndef STANDALONE 00323 AppPrefsDlg::Deinit(); // Deinit the application preference/options dialog 00324 #endif 00325 Filter::DeinitFilters(); 00326 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX) 00327 ControlHelper::DeInit(); 00328 DialogControlHelper::DeInit(); 00329 #endif 00330 PORTNOTE("other","Removed FontFactory usage") 00331 #ifndef EXCLUDE_FROM_XARALX 00332 FontFactory::Deinit(); 00333 #endif 00334 PORTNOTE("other","Removed ATMInstall usage") 00335 #ifndef EXCLUDE_FROM_XARALX 00336 ATMInstall::AliasList.DeInit(); 00337 DeinitButtonBar(); 00338 #endif 00339 #if !defined(EXCLUDE_FROM_RALPH) 00340 // && !defined(EXCLUDE_FROM_XARALX) 00341 DeinitMenuSystem(); 00342 #endif 00343 DimScale::Deinit(); 00344 Unit::Deinit(); 00345 DocUnitList::Deinit(); 00346 GlobalBitmapList::DeInit(); 00347 GlobalFractalList::DeInit(); 00348 OILBitmap::Deinit(); 00349 #if !defined(EXCLUDE_FROM_RALPH) 00350 // && !defined(EXCLUDE_FROM_XARALX) 00351 HotKey::Deinit(); 00352 #endif 00353 #ifndef DISABLE_TEXT_RENDERING 00354 FontCache::DeInit(); 00355 #endif 00356 #ifndef EXCLUDE_GALS 00357 SGInit::DeInit(); // De-init the galleries 00358 #endif 00359 View::Deinit(); 00360 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX) 00361 SGLibOil::TidyUp(); 00362 // DeInitRegistry(); 00363 #endif 00364 // WEBSTER - markn 15/1/97 00365 // No rulers in Webster 00366 #ifndef WEBSTER 00367 OILRuler::Deinit(); 00368 #endif 00369 00370 // Deinit static rendering stuff 00371 PORTNOTE("other","Removed GRenderBitmap usage") 00372 #ifndef EXCLUDE_FROM_XARALX 00373 GRenderBitmap::Deinit(); 00374 #endif 00375 00376 // Close down the kernel application object (including preferences system) 00377 Camelot.Deinit(); 00378 00379 #if !defined(EXCLUDE_FROM_RALPH) && !defined(EXCLUDE_FROM_XARALX) 00380 // do this last now as we use the key to save out some preference data 00381 DeInitRegistry(); 00382 #endif 00383 }
|
|
Calls all Initxxx functions for everyone else.
Definition at line 162 of file main.cpp. 00163 { 00164 bool fSuccess = true; 00165 if( !InitPreTools() || 00166 !Tool::InitTools() || // Init Modules and tools (keep last) 00167 !InitPostTools1() || 00168 !InitPostTools2() 00169 ) 00170 { 00171 if( 0 == Error::GetErrorNumber() ) 00172 Error::SetError( _R(IDS_INITIALISATION_ERROR) ); 00173 00174 InformError(); 00175 TRACE( _T("InitKernel failed - will exit very soon\n")); 00176 fSuccess = false; 00177 } 00178 00179 return fSuccess; 00180 }
|
|
Initialises various things that should be done after the splash screen has been shown.
Definition at line 197 of file main.cpp. 00198 { 00199 if ( 00200 #if !defined(PROD_XS) && !defined(EXCLUDE_FROM_XARALX) 00201 // disabled for XS builds 00202 PluginOILFilter::AutoRegisterFilters() && 00203 #endif 00204 00205 Filter::InitFilters() 00206 ) 00207 return TRUE; 00208 else 00209 { 00210 InformError(); 00211 TRACE( _T("InitKernelPostSplash failed - will exit very soon\n")); 00212 return FALSE; 00213 } 00214 }
|
|
Definition at line 108 of file test.cpp.
|