Exemplo n.º 1
0
result HelloWorldFrame::OnInitializing(void)
{
  // Prepare Scene management.
  SceneManager* pSceneManager = SceneManager::GetInstance();
  static HelloWorldFormFactory formFactory;
  static HelloWorldPanelFactory panelFactory;
  pSceneManager->RegisterFormFactory(formFactory);
  pSceneManager->RegisterPanelFactory(panelFactory);
  pSceneManager->RegisterScene(L"workflow");

  // Go to the scene.
  result r = pSceneManager->GoForward(SceneTransitionId(IDSCNT_MAIN_SCENE));

  // TODO: Add your frame initialization code here.
  return r;
}
Exemplo n.º 2
0
result
ProjectGiraffeFrame::OnInitializing(void)
{
	// Prepare Scene management.
	SceneManager* pSceneManager = SceneManager::GetInstance();
	static ProjectGiraffeFormFactory formFactory;
	static ProjectGiraffePanelFactory panelFactory;
	pSceneManager->RegisterFormFactory(formFactory);
	pSceneManager->RegisterPanelFactory(panelFactory);
	pSceneManager->RegisterScene(L"workflow");

	// Goto the scene.
	result r = pSceneManager->GoForward(SceneTransitionId(L"ID_SCNT_START"));

	// TODO: Add your initialization code here
	return r;
}
Exemplo n.º 3
0
void SceneRegister::RegisterAllScenes(void) {
	static const wchar_t* PANEL_BLANK = L"";
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	static HideItFormFactory formFactory;
	static HideItPanelFactory panelFactory;

	pSceneManager->RegisterPanelFactory(panelFactory);
	pSceneManager->RegisterFormFactory(formFactory);

	pSceneManager->RegisterScene(SCENE_CALCULATOR, FORM_CALCULATOR,
			PANEL_BLANK);
	pSceneManager->RegisterScene(SCENE_SETTING, FORM_SETTING, PANEL_BLANK);

	pSceneManager->RegisterScene(SCENE_FILEBROWSER, FORM_FILEBROWSER, PANEL_BLANK);

	pSceneManager->RegisterScene(SCENE_FILEBROWSER_MANAGEMENT, FORM_FILEBROWSER, PANEL_MANAGEMENT);
	pSceneManager->RegisterScene(SCENE_FILEBROWSER_HIDDEN, FORM_FILEBROWSER, PANEL_HIDDEN);
	pSceneManager->RegisterScene(SCENE_TEXTVIEWER, FORM_TEXTVIEWER, PANEL_BLANK);


}