equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 #include <glxfullscreenstate.h> |
20 #include <glxfullscreenstate.h> |
|
21 #include <glxstatemanager.h> |
|
22 #include <glxcommandhandlers.hrh> |
21 |
23 |
22 GlxFullScreenState::GlxFullScreenState(GlxState *preState) : GlxState(GLX_FULLSCREENVIEW_ID, preState) |
24 GlxFullScreenState::GlxFullScreenState(GlxStateManager *stateManager, GlxState *preState) : GlxState(GLX_FULLSCREENVIEW_ID, preState) |
23 { |
25 { |
24 |
26 mStateManager = stateManager ; |
25 } |
27 } |
26 |
28 |
27 void GlxFullScreenState::eventHandler(qint32 &id) |
29 void GlxFullScreenState::eventHandler(qint32 &id) |
28 { |
30 { |
29 Q_UNUSED(id); |
31 switch ( id ){ |
|
32 case EGlxCmdDetailsOpen : |
|
33 if ( mState == IMAGEVIEWER_S ) { |
|
34 |
|
35 mStateManager->nextState( GLX_DETAILSVIEW_ID, IMAGEVIEWER_DETAIL_S ); |
|
36 } |
|
37 else { |
|
38 |
|
39 mStateManager->nextState( GLX_DETAILSVIEW_ID, NO_DETAIL_S ); |
|
40 } |
|
41 id = EGlxCmdHandled; |
|
42 break ; |
|
43 default : |
|
44 break ; |
|
45 } |
30 } |
46 } |
31 |
47 |
32 void GlxFullScreenState::setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect) |
48 void GlxFullScreenState::setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect) |
33 { |
49 { |
34 GlxState *preState = previousState(); |
50 GlxState *preState = previousState(); |