ui/viewmanagement/statehandler/src/glxgridstate.cpp
changeset 54 0f0f3f26f787
parent 26 c499df2dbb33
child 71 27f2d7aec52a
--- a/ui/viewmanagement/statehandler/src/glxgridstate.cpp	Fri Jul 23 20:41:04 2010 +0530
+++ b/ui/viewmanagement/statehandler/src/glxgridstate.cpp	Fri Aug 06 20:44:25 2010 +0530
@@ -43,10 +43,12 @@
     
     switch ( mState ) {
     case ALL_ITEM_S :
+	case FETCHER_ITEM_S :
         allItemEventHandler ( id ) ;
         break;
         
     case ALBUM_ITEM_S :
+    case FETCHER_ALBUM_ITEM_S :
     	albumItemEventHandler ( id ) ;
     	break;
     	
@@ -60,11 +62,10 @@
    qDebug("GlxGridState::defaultEventHandler() action id = %d", id);
    
    switch(id) { 
-   case EGlxCmdFullScreenOpen :
-        id = EGlxCmdHandled;
-        mStateManager->nextState( GLX_FULLSCREENVIEW_ID, -1 );
-        break;
-        
+   case EGlxCmdFetcherFullScreenOpen:
+       id = EGlxCmdHandled;
+       mStateManager->nextState( GLX_FULLSCREENVIEW_ID, FETCHER_S );
+       break;
    case EGlxCmdAddToAlbum :
    case EGlxCmdDelete :
    case EGlxCmdRemoveFrom :
@@ -110,9 +111,13 @@
     
     switch(id) {
     case EGlxCmdAllGridOpen :
+    case EGlxCmdFetcherAllGridOpen :   
     	id = EGlxCmdHandled;
     	break ;
-    	
+    case EGlxCmdFullScreenOpen :
+        mStateManager->nextState( GLX_FULLSCREENVIEW_ID, ALL_FULLSCREEN_S );
+        id = EGlxCmdHandled;
+    	break;
     default :
     	break;    
     }
@@ -128,14 +133,25 @@
         mStateManager->goBack( GLX_GRIDVIEW_ID, ALL_ITEM_S );
         id = EGlxCmdHandled;
         break ;
+
+    case EGlxCmdFetcherAllGridOpen :
+        mStateManager->removeCurrentModel();
+        mStateManager->goBack( GLX_GRIDVIEW_ID, FETCHER_ITEM_S );
+        id = EGlxCmdHandled;
+        break ;
         
     case EGlxCmdAlbumListOpen :
+    case EGlxCmdFetcherAlbumListOpen:        
     case EGlxCmdBack :
         mStateManager->removeCurrentModel();
         mStateManager->previousState();
         id = EGlxCmdHandled;
         break;
-    	
+
+    case EGlxCmdFullScreenOpen :
+        mStateManager->nextState( GLX_FULLSCREENVIEW_ID, ALBUM_FULLSCREEN_S );
+        id = EGlxCmdHandled;
+    	break;
     default :
         break;
     }