equal
deleted
inserted
replaced
39 #include <glxsetappstate.h> // For view state |
39 #include <glxsetappstate.h> // For view state |
40 #include <mglxmedialist.h> //medialist |
40 #include <mglxmedialist.h> //medialist |
41 #include <data_caging_path_literals.hrh> // For directory paths |
41 #include <data_caging_path_literals.hrh> // For directory paths |
42 |
42 |
43 #include <aknlayoutscalable_uiaccel.cdl.h> |
43 #include <aknlayoutscalable_uiaccel.cdl.h> |
|
44 #include <glxtagsbrowserview.rsg> // For resources |
44 |
45 |
45 #include "glxcloudviewcontrol.h"//cloud view control |
46 #include "glxcloudviewcontrol.h"//cloud view control |
46 |
47 |
47 const TInt KViewId = 0x200071B7; |
48 const TInt KViewId = 0x200071B7; |
48 |
49 |
156 // --------------------------------------------------------------------------- |
157 // --------------------------------------------------------------------------- |
157 // |
158 // |
158 TBool CGlxCloudViewImp::HandleViewCommandL(TInt aCommand) |
159 TBool CGlxCloudViewImp::HandleViewCommandL(TInt aCommand) |
159 { |
160 { |
160 TRACER("GLX_CLOUD::CGlxCloudViewImp::HandleViewCommandL"); |
161 TRACER("GLX_CLOUD::CGlxCloudViewImp::HandleViewCommandL"); |
|
162 |
161 TBool consumed = EFalse; |
163 TBool consumed = EFalse; |
162 |
|
163 switch (aCommand) |
164 switch (aCommand) |
164 { |
165 { |
165 case EAknCmdOpen: |
166 case EAknCmdOpen: |
166 case EKeyEnter: |
167 case EKeyEnter: |
167 { |
168 { |
335 |
336 |
336 iAnchorlayout = &((CAlfAnchorLayout&)layoutmanager->getLayout()); |
337 iAnchorlayout = &((CAlfAnchorLayout&)layoutmanager->getLayout()); |
337 |
338 |
338 iAnchorlayout->SetFlag(EAlfVisualFlagLayoutUpdateNotification); |
339 iAnchorlayout->SetFlag(EAlfVisualFlagLayoutUpdateNotification); |
339 iAnchorlayout->SetFlag(EAlfVisualFlagAutomaticLocaleMirroringEnabled); |
340 iAnchorlayout->SetFlag(EAlfVisualFlagAutomaticLocaleMirroringEnabled); |
340 |
341 |
341 iCloudControl = CGlxCloudViewControl::NewL (*iDisplay, *iUiUtility->Env (), *iMediaList, |
342 iCloudControl = CGlxCloudViewControl::NewL (*iDisplay, *iUiUtility->Env (), *iMediaList, |
342 *iEmptyListText, *this,*this,iAnchorlayout,*this); |
343 *iEmptyListText, *this,*this,iAnchorlayout,*this,*this); |
343 |
344 |
344 CAlfControlGroup * ctrlGroup = iUiUtility->Env ()->FindControlGroup(0); |
345 CAlfControlGroup * ctrlGroup = iUiUtility->Env ()->FindControlGroup(0); |
345 if(ctrlGroup) |
346 if(ctrlGroup) |
346 { |
347 { |
347 ctrlGroup->AppendL(iCloudControl); |
348 ctrlGroup->AppendL(iCloudControl); |
419 TAlfTimedPoint(ClientRect().iBr.iX ,(ClientRect().iBr.iY - ClientRect().iTl.iY))); |
420 TAlfTimedPoint(ClientRect().iBr.iX ,(ClientRect().iBr.iY - ClientRect().iTl.iY))); |
420 |
421 |
421 iAnchorlayout->UpdateChildrenLayout(0); |
422 iAnchorlayout->UpdateChildrenLayout(0); |
422 } |
423 } |
423 |
424 |
|
425 // --------------------------------------------------------------------------- |
|
426 // HandleGridMenuListL() |
|
427 // --------------------------------------------------------------------------- |
|
428 // |
|
429 void CGlxCloudViewImp::HandleGridMenuListL(TInt aCommand) |
|
430 { |
|
431 TRACER("GLX_CLOUD::CGlxCloudViewImp::HandleGridMenuListL"); |
|
432 ProcessCommandL(aCommand); |
|
433 } |
|
434 |
|
435 // ---------------------------------------------------------------------------- |
|
436 // ViewDynInitMenuPaneL |
|
437 // ---------------------------------------------------------------------------- |
|
438 // |
|
439 void CGlxCloudViewImp::ViewDynInitMenuPaneL(TInt aMenuId, CEikMenuPane* /*aMenuPane*/) |
|
440 { |
|
441 TRACER("GLX_CLOUD::CGlxCloudViewImp::ViewDynInitMenuPaneL"); |
|
442 if( aMenuId == R_TAGSBROWSER_MENU) |
|
443 { |
|
444 iCloudControl->ShowContextItemMenu(EFalse); |
|
445 } |
|
446 } |