equal
deleted
inserted
replaced
14 * Description: ?Description |
14 * Description: ?Description |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
|
19 #include <hbmainwindow.h> |
|
20 #include <hbinstance.h> |
19 |
21 |
20 #include <glxfullscreenstate.h> |
22 #include "glxfullscreenstate.h" |
21 #include <glxstatemanager.h> |
23 #include "glxstatemanager.h" |
22 #include <glxcommandhandlers.hrh> |
24 #include "glxcommandhandlers.hrh" |
23 |
25 |
24 GlxFullScreenState::GlxFullScreenState(GlxStateManager *stateManager, GlxState *preState) : GlxState(GLX_FULLSCREENVIEW_ID, preState) |
26 GlxFullScreenState::GlxFullScreenState(GlxStateManager *stateManager, GlxState *preState) : GlxState(GLX_FULLSCREENVIEW_ID, preState) |
25 { |
27 { |
26 mStateManager = stateManager ; |
28 mStateManager = stateManager ; |
27 } |
29 } |
61 viewEffect = BOTH_VIEW ; |
63 viewEffect = BOTH_VIEW ; |
62 } |
64 } |
63 } |
65 } |
64 else if ( dir == BACKWARD_DIR ) { |
66 else if ( dir == BACKWARD_DIR ) { |
65 if ( preState->compare( GLX_GRIDVIEW_ID ) ) { |
67 if ( preState->compare( GLX_GRIDVIEW_ID ) ) { |
66 effect = FULLSCREEN_TO_GRID; |
68 HbMainWindow *window = hbInstance->allMainWindows().first(); |
|
69 effect = window->orientation() == Qt::Vertical ? FULLSCREEN_TO_GRID_PORTRAIT : FULLSCREEN_TO_GRID ; |
67 viewEffect = LAUNCH_VIEW; |
70 viewEffect = LAUNCH_VIEW; |
68 } |
71 } |
69 } |
72 } |
70 } |
73 } |
71 |
74 |