2 #ifndef _YI_SCREEN_TRANSITION_MANAGER_H_ 3 #define _YI_SCREEN_TRANSITION_MANAGER_H_ 252 enum NAVIGATE_BACK_BEHAVIOUR
254 DONT_ALLOW_NAVIGATE_BACK = 0,
255 ALLOW_NAVIGATE_BACK = 1
262 CYIScreenTransitionManager::NAVIGATE_BACK_BEHAVIOUR eNavigateBackBehaviour,
264 bool bIsNavigationHistoryEnabled,
274 bool IsBackNavigationAllowed()
const;
276 void SetNavigationHistoryEnabled(
bool bEnable);
278 bool IsNavigationHistoryEnabled()
const;
288 CYIScreenTransitionManager::NAVIGATE_BACK_BEHAVIOUR m_eNavigateBackBehaviour;
289 bool m_bIsNavigationHistoryEnabled;
295 enum TRANSITION_STATE
313 void OnPushTransitionComplete();
314 void OnPopTransitionComplete();
315 void OnPushTransitionFail();
316 void OnPopTransitionFail();
317 void OnPopScreenTransitionComplete();
319 void OnLoadAnimationStarted();
320 void OnLoadAnimationComplete();
322 void ClearScreenStack();
324 void DumpScreenStack(
const CYIString& sTitle);
326 void StartTransitionState();
327 void StopTransitionState();
328 void ResetTransitionState();
331 const std::vector<ScreenTransitionBundle> &historyScreens);
333 void OnScreenTransitionStopped();
337 TRANSITION_STATE m_eTransitionState;
344 std::vector<ScreenTransitionBundle> m_HistoryScreens;
346 bool m_bUnloadComplete;
347 bool m_bUnloadAnimationComplete;
348 bool m_bLoadingAnimationComplete;
349 bool m_bLoadingUserComplete;
354 std::deque<StackData> m_screenStack;
358 uint32_t m_uMaxScreenStackSize;
363 #endif // _YI_SCREEN_TRANSITION_MANAGER_H_ ScreenTransitionDelegate()
Definition: YiScreenTransitionManager.h:86
CYIBundle PeekScreenBundle() const
Stores a stack of screen view controllers (referred to here for simplicity as "screens") to allow for...
Definition: YiScreenTransitionManager.h:58
The CYIAbstractScreenViewController serves as the base to create application screen view controllers...
Definition: YiAbstractScreenViewController.h:38
Definition: YiPersistentStore.h:60
Contains optional data which can be stored on the screen stack with PushScreen() and retrieved using ...
Definition: YiScreenTransitionManager.h:67
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
void SetTransitionDelegate(ScreenTransitionDelegate *pScreenTransitionDelegate)
CYIBundle represents a collection of key-value pairs.
Definition: YiBundle.h:45
The base class for an object accessible from script source code.
Definition: YiScriptableObject.h:28
CYIAbstractScreenViewController * m_pScreenController
Definition: YiScreenTransitionManager.h:69
ScreenTransitionBundle & operator=(const ScreenTransitionBundle &screenBundle)
StatusBar
Definition: YiViewProperty.h:23
void SetMaxScreenStackSize(uint32_t uSize)
NavigationBar
Definition: YiViewProperty.h:29
CYIBundle m_bundle
Definition: YiScreenTransitionManager.h:70
void UseTransition(CYIScreenTransition *pTransition)
uint32_t GetStackSize() const
virtual ~CYIScreenTransitionManager()
CYIAbstractScreenViewController * PeekScreen() const
Performs animated transitions from one application screen to another.
Definition: YiScreenTransition.h:34
CYISignal< const CYIPersistentStore & > TransitionStarted
Definition: YiScreenTransitionManager.h:243
CYIScreenTransitionManager()
void ClearScreenNavigationHistory()
Definition: YiSignalHandler.h:174
void AppSpecificLoadingComplete()
bool IsTransitionActive() const
CYISignal< const CYIBundle & > TransitionFailed
ScreenTransitionDelegate::onTransitionError.
Definition: YiScreenTransitionManager.h:245
virtual ~ScreenTransitionDelegate()
Definition: YiScreenTransitionManager.h:87
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:164
CYISignal TransitionCompleted
Definition: YiScreenTransitionManager.h:244
Orientation
Definition: YiViewProperty.h:12
void PushScreen(CYIAbstractScreenViewController *pScreen)
bool Connect(CYIAbstractScreenViewController *pScreen)
bool Disconnect(CYIAbstractScreenViewController *pScreen)
Listener interface for the CYIScreenTransitionManager events.
Definition: YiScreenTransitionManager.h:82