Merge " Fixed issue 40947" into tizen_2.2
authorHyuksoonChoi <hs619.choi@samsung.com>
Mon, 10 Jun 2013 11:27:27 +0000 (20:27 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 10 Jun 2013 11:27:27 +0000 (20:27 +0900)
inc/GlFileListForm.h
src/GlAllListPanel.cpp
src/GlFileListForm.cpp

index 6c6fac9..9bba2a1 100644 (file)
@@ -54,6 +54,8 @@ public:
 
        virtual void OnSlideSettingPopUpItemSelected(int index);
 
+       void SetFooterState(bool state);
+
 private:
        result InitializeFooter(void);
 
index d16bfcf..a91d0e4 100644 (file)
@@ -357,6 +357,16 @@ AllListPanel::OnSceneActivatedN(const SceneId& previousSceneId,
                if (pFileListForm != null)
                {
                        pFileListForm->SetTitleText(__pPresentationModel->GetCurrentAlbumName());
+
+                       if( __itemCount == 0)
+                       {
+                               pFileListForm->SetFooterState(false);
+                       }
+                       else
+                       {
+                               pFileListForm->SetFooterState(true);
+                       }
+
                }
                __pPresentationModel->AddContentEventListener(pFileListForm);
        }
index 819464e..714335e 100644 (file)
@@ -327,3 +327,10 @@ FileListForm::OnSlideSettingPopUpItemSelected(int index)
                pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SETTING_MAIN));
        }
 }
+
+void
+FileListForm::SetFooterState(bool state)
+{
+       GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT,state);
+       GetFooter()->Invalidate(true);
+}