Пример #1
0
void UI_Main::shutdownRocket( void )
{
	int i;

	for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
		UI_Navigation &navigation = navigations[i];
		for( UI_Navigation::iterator it = navigation.begin(); it != navigation.end(); ++it ) {
			// clear the navigation stack
			(*it)->popAllDocuments();
			(*it)->getCache()->clearCaches();
		}
	}

	// forget about all previously registed shaders
	rocketModule->clearShaderCache();

	destroyDataSources();
	destroyFormatters();

	for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
		UI_Navigation &navigation = navigations[i];
		while( !navigation.empty() ) {
			NavigationStack *stack = navigation.front();
			__SAFE_DELETE_NULLIFY( stack );
			navigation.pop_front();
		}
	}

	__SAFE_DELETE_NULLIFY( rocketModule );
}
Пример #2
0
void UI_Main::reloadUI( void )
{
	// clear the navigation stack
	navigator->popAllDocuments();

	// clear the navigation stack from previous installment
	navigator->getCache()->clearCaches();

	// forget about all previously registed shaders
	rocketModule->clearShaderCache();

	if( serverBrowser ) {
		serverBrowser->stopUpdate();
	}
	if( demos ) {
		demos->Reset();
	}

	destroyDataSources();

	createDataSources();

	preloadUI();

	showUI( true );
}
Пример #3
0
void UI_Main::shutdownRocket( void )
{
	// clear the navigation stack
	navigator->popAllDocuments();
	// clear the navigation stack from previous installment
	navigator->getCache()->clearCaches();

	destroyDataSources();
	destroyFormatters();

	__SAFE_DELETE_NULLIFY( navigator );

	__SAFE_DELETE_NULLIFY( rocketModule );
}
Пример #4
0
void UI_Main::reloadUI( void )
{
	int i;

	for( i = 0; i < UI_NUM_CONTEXTS; i++ ) {
		UI_Navigation &navigation = navigations[i];
		NavigationStack *navigator = navigation.front();

		while( !navigation.empty() ) {
			NavigationStack *stack = navigation.front();
			navigation.pop_front();

			// clear the navigation stack
			stack->popAllDocuments();
			stack->getCache()->clearCaches();
			if( stack != navigator ) {
				__delete__( stack );
			}
		}

		navigation.push_front( navigator );
	}

	if( serverBrowser ) {
		serverBrowser->stopUpdate();
	}
	if( demos ) {
		demos->Reset();
	}

	destroyDataSources();

	createDataSources();

	preloadUI();

	showUI( true );
}