2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file GlImageListEditorPanel.cpp
19 * @brief This is the implementation file for ImageListEditorPanel class.
24 #include "GlAlbumInfo.h"
25 #include "GlCommonUtil.h"
26 #include "GlFileListPresentationModel.h"
27 #include "GlGalleryApp.h"
28 #include "GlImageListEditorPanel.h"
29 #include "GlResourceManager.h"
31 #include "GlFileUpdateTimer.h"
32 #include "GlFileListEditorForm.h"
34 using namespace Tizen::App;
35 using namespace Tizen::Base;
36 using namespace Tizen::Base::Collection;
37 using namespace Tizen::Content;
38 using namespace Tizen::Graphics;
39 using namespace Tizen::Media;
40 using namespace Tizen::Ui;
41 using namespace Tizen::Ui::Controls;
42 using namespace Tizen::Ui::Scenes;
44 static const int H_SELECTALL_REGION = 112;
45 static const int COUNT_LABEL_FONT_SIZE = 33;
46 static const unsigned int COLOR_COUNT_LABEL = Color32<68, 68, 68>::Value;
47 static const unsigned int COLOR_SELECT_COUNT_FONT = Color32<255, 255, 255>::Value;
48 static const Color COLOR_THUMBNAIL_DIM (Color::GetColor(COLOR_ID_BLACK));
49 static const float H_COUNT_LABEL = 48.0f;
50 static const int LENGTH_COUNT_LABEL = 256;
51 static const int ALPHA_THUMBNAIL_DIM = 70;
52 static const Rectangle RECT_INITIAL (0, 0, 10, 10);
53 static const int H_CROP_RECTANGLE = 20;
55 ImageListEditorPanel::ImageListEditorPanel(void)
57 , __pContentIconListView(null)
58 , __pCheckButton(null)
59 , __pLabelSelectCnt(null)
60 , __pPresentationModel(null)
61 , __pFileListEditorForm(null)
64 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
67 ImageListEditorPanel::~ImageListEditorPanel(void)
70 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
74 ImageListEditorPanel::Initialize(void)
77 result r = Construct(RECT_INITIAL);
78 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
84 ImageListEditorPanel::OnInitializing(void)
87 const Form* pForm = dynamic_cast<Form*>(GetParent());
88 TryReturn(pForm != null, E_FAILURE, "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
90 __pPresentationModel = FileListPresentationModel::GetInstance();
91 __pPresentationModel->ClearThumbnailRequests();
92 __pPresentationModel->AddPresentationModelListener(this);
95 FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
96 SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
98 if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK)
100 __pContentIconListView = new (std::nothrow) IconListView();
102 if (__pPresentationModel->GetAppControlSelectionMode() == APPCONTROL_SELECTION_MODE_MULTIPLE)
104 __pContentIconListView->Construct(Rectangle(0, 0, clientAreaBounds.width, clientAreaBounds.height - H_COUNT_LABEL),
105 DIMENSION_DEFAULT_THUMBNAIL, ICON_LIST_VIEW_STYLE_MARK,
106 ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
107 Bitmap* pBitmapEmpty = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
108 if (pBitmapEmpty != null)
110 __pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
113 __pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
114 __pContentIconListView->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
115 __pContentIconListView->SetItemProvider(*this);
116 __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
117 __pContentIconListView->AddIconListViewItemEventListener(*this);
118 __pContentIconListView->SetTouchAnimationEnabled(false);
119 AddControl(__pContentIconListView);
120 __pContentIconListView->SetShowState(true);
122 __pLabelSelectCnt = new (std::nothrow) Label();
124 __pLabelSelectCnt->Construct(FloatRectangle(0, clientAreaBounds.height - H_COUNT_LABEL,
125 clientAreaBounds.width, H_COUNT_LABEL), ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
126 __pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
127 __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
128 __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
129 __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
130 __pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
131 AddControl(__pLabelSelectCnt);
135 __pContentIconListView->Construct(Rectangle(0, 0, clientAreaBounds.width, clientAreaBounds.height),
136 DIMENSION_DEFAULT_THUMBNAIL, ICON_LIST_VIEW_STYLE_NORMAL,
137 ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
138 Bitmap* pBitmapEmpty = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
139 if (pBitmapEmpty != null)
141 __pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
144 __pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
145 __pContentIconListView->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
146 __pContentIconListView->SetItemProvider(*this);
147 __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
148 __pContentIconListView->AddIconListViewItemEventListener(*this);
149 __pContentIconListView->SetTouchAnimationEnabled(false);
150 AddControl(__pContentIconListView);
151 __pContentIconListView->SetShowState(true);
156 __pContentIconListView = new (std::nothrow) IconListView();
157 __pContentIconListView->Construct(Rectangle(0, H_SELECTALL_REGION, clientAreaBounds.width,
158 clientAreaBounds.height - H_SELECTALL_REGION), DIMENSION_DEFAULT_THUMBNAIL,
159 ICON_LIST_VIEW_STYLE_MARK, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
160 Bitmap* pBitmapEmpty = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
161 if (pBitmapEmpty != null)
163 __pContentIconListView->SetBitmapOfEmptyList(pBitmapEmpty);
166 __pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
167 __pContentIconListView->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
168 __pContentIconListView->SetItemProvider(*this);
169 __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
170 __pContentIconListView->AddIconListViewItemEventListener(*this);
171 __pContentIconListView->SetTouchAnimationEnabled(false);
172 AddControl(__pContentIconListView);
173 __pContentIconListView->SetShowState(true);
175 __pLabelSelectCnt = new (std::nothrow) Label();
176 __pLabelSelectCnt->Construct(
177 Rectangle(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL),
178 ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED"));
179 __pLabelSelectCnt->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
180 __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
181 __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
182 __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
183 AddControl(__pLabelSelectCnt);
185 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
191 ImageListEditorPanel::OnTerminating(void)
193 AppLogDebug("ENTER");
194 __pPresentationModel->RemovePresentationModelListener(*this);
195 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
201 ImageListEditorPanel::GetItemCount(void)
203 AppLogDebug("ENTER");
204 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
210 ImageListEditorPanel::CreateItem(int index)
212 AppLogDebug("ENTER : index(%d)", index);
213 IconListViewItem* pIconListviewItem = new (std::nothrow) IconListViewItem();
214 Bitmap* pBitmap = null;
215 String* pItemText = null;
217 result r = __pPresentationModel->GetThumbnailInSyncCacheN(index, pItemText, pBitmap);
218 if (pBitmap == null || r == E_FAILURE)
220 __pPresentationModel->RequestThumbnail(index);
221 pBitmap = CommonUtil::GetEmptyThumbnailN();
224 if (pItemText == null)
226 pItemText = new (std::nothrow) String(ResourceManager::GetString(L"EMPTY_SPACE"));
228 else if ((*pItemText) != ResourceManager::GetString(L"EMPTY_SPACE"))
231 pItemText = new (std::nothrow) String(ResourceManager::GetString(L"EMPTY_SPACE"));
234 if (__pContentIconListView->IsItemChecked(index) == true)
238 BufferInfo bufferInfo;
239 pBitmap->Lock(bufferInfo, INFINITE);
241 Color dimColor(COLOR_THUMBNAIL_DIM);
242 dimColor.SetAlpha(ALPHA_THUMBNAIL_DIM);
245 canvas.Construct(bufferInfo);
246 canvas.FillRectangle(dimColor, canvas.GetBounds());
248 Bitmap* pSelectedBitmap = new (std::nothrow) Bitmap();
249 pSelectedBitmap->Construct(canvas, canvas.GetBounds());
250 pIconListviewItem->Construct(*pBitmap, pItemText, pSelectedBitmap);
251 delete pSelectedBitmap;
255 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
256 delete pIconListviewItem;
263 pIconListviewItem->Construct(*pBitmap, pItemText);
270 if (pItemText != null)
274 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
276 return pIconListviewItem;
280 ImageListEditorPanel::DeleteItem(int index, IconListViewItem* pItem)
282 AppLogDebug("ENTER");
284 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
290 ImageListEditorPanel::OnIconListViewItemStateChanged(IconListView& view, int index, IconListViewItemStatus status)
292 AppLogDebug("ENTER");
294 if (status == ICON_LIST_VIEW_ITEM_CHECKED || status == ICON_LIST_VIEW_ITEM_UNCHECKED)
296 if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK)
298 if (__pPresentationModel->GetAppControlSelectionMode() == APPCONTROL_SELECTION_MODE_MULTIPLE)
300 int checkedCount = GetItemCheckedCount();
302 if (checkedCount == 0)
304 strTmp = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
306 else if (checkedCount == 1)
308 strTmp = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
312 strTmp.Format(LENGTH_COUNT_LABEL,
313 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), checkedCount);
316 __pLabelSelectCnt->SetText(strTmp);
317 __pLabelSelectCnt->RequestRedraw(true);
318 __pContentIconListView->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
323 int checkedCount = GetItemCheckedCount();
325 if (checkedCount == 0)
327 strTmp = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
329 else if (checkedCount == 1)
331 strTmp = ResourceManager::GetString(L"IDS_VR_POP_1_ITEM_SELECTED");
335 strTmp.Format(LENGTH_COUNT_LABEL,
336 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), checkedCount);
339 __pLabelSelectCnt->SetText(strTmp);
340 __pLabelSelectCnt->RequestRedraw(true);
341 if (__pCheckButton->IsSelected())
343 __pCheckButton->SetSelected(false);
345 __pContentIconListView->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
349 if ( __pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK
350 && __pPresentationModel->GetAppControlSelectionMode() == APPCONTROL_SELECTION_MODE_SINGLE)
352 if (status == ICON_LIST_VIEW_ITEM_SELECTED)
354 GalleryApp* pApp = static_cast<GalleryApp*>(GalleryApp::GetInstance());
355 const IMap* pArguments = pApp->GetAppControlArguments();
356 const String* cropMode = null;
358 if (pArguments != null)
360 cropMode = static_cast<const String*>(pArguments->GetValue(String(APPCONTROL_KEY_IMAGEVIEWER_MODE)));
365 ImageFormat imageFormat = IMG_FORMAT_NONE;
366 result r = E_SUCCESS;
367 r = ImageBuffer::GetImageInfo(__pPresentationModel->GetContentFilePath(index), imageFormat, width, height);
369 if (cropMode != null && r == E_SUCCESS && width > (H_CROP_RECTANGLE * 5) && height > (H_CROP_RECTANGLE * 5))
371 ArrayList* pList = new (std::nothrow) ArrayList(SingleObjectDeleter);
372 pList->Add(new (std::nothrow) String(__pPresentationModel->GetContentFilePath(index)));
373 SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_IMAGE_CROP), pList);
378 HashMap* pMap = new (std::nothrow) HashMap(SingleObjectDeleter);
379 result r = pMap->Construct();
383 ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
384 r = pArrayList->Construct();
387 pArrayList->Add(new (std::nothrow) String(__pPresentationModel->GetContentFilePath(index)));
388 pMap->Add(new (std::nothrow) String(APPCONTROL_KEY_DATA_SELECTED), (Object*)pArrayList);
390 GalleryApp* pApp = dynamic_cast<GalleryApp*>(UiApp::GetInstance());
393 pApp->SendAppControlResult(APP_CTRL_RESULT_SUCCEEDED, pMap);
416 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
420 ImageListEditorPanel::OnFileInfoChanged(const ContentType contentType)
422 AppLogDebug("ENTER");
423 if (contentType == CONTENT_TYPE_IMAGE)
425 __pPresentationModel->RefreshCurrentAlbumContentInfoList(CONTENT_TYPE_IMAGE);
426 __itemCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
427 __pContentIconListView->UpdateList();
429 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
433 ImageListEditorPanel::OnThumbnailDecoded(const int index)
435 AppLogDebug("ENTER : index(%d)",index);
438 __pContentIconListView->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
440 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
444 ImageListEditorPanel::OnSceneActivatedN(const SceneId& previousSceneId,
445 const SceneId& currentSceneId, IList* pArgs)
447 AppLogDebug("ENTER");
451 __pPresentationModel = FileListPresentationModel::GetInstance();
453 if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK)
455 if (currentSceneId == IDSCN_IMAGE_LIST_EDITOR)
457 if (previousSceneId == IDSCN_ALBUM_LIST)
459 AlbumInfo* pAlbumInfo = static_cast<AlbumInfo*>(pArgs->GetAt(0));
460 if (pAlbumInfo == null)
462 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
467 IList* pDirectoryList = pAlbumInfo->GetDirectoryListN();
468 __pPresentationModel->SetCurrentAlbumInfo(pAlbumInfo->GetAlbumName(), *pDirectoryList);
470 if (pDirectoryList != null)
472 delete pDirectoryList;
476 __itemCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
477 __pContentIconListView->UpdateList();
483 __itemCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
484 __pContentIconListView->RequestRedraw(true);
487 SceneManager* pSceneManager = SceneManager::GetInstance();
488 TryReturnVoid(pSceneManager != null, "[%s] fail to get SceneManager.", GetErrorMessage(GetLastResult()));
490 __pFileListEditorForm = dynamic_cast<FileListEditorForm*>(pSceneManager->GetCurrentScene()->GetForm());
491 TryReturnVoid(__pFileListEditorForm != null, "[%s] fail to get FileListEditorForm.", GetErrorMessage(GetLastResult()));
493 String titleText = __pPresentationModel->GetCurrentAlbumName();
495 if (titleText == ALL_ALBUMS_REAL_NAME)
497 String text = ResourceManager::GetString(L"IDS_MEDIABR_BODY_ALL_ALBUMS");
498 __pFileListEditorForm->SetTitleText(text);
502 __pFileListEditorForm->SetTitleText(titleText);
505 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
509 ImageListEditorPanel::OnSceneDeactivated(const SceneId& currentSceneId,
510 const SceneId& nextSceneId)
512 AppLogDebug("ENTER");
513 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
517 ImageListEditorPanel::GetItemCheckedCount(void) const
519 AppLogDebug("ENTER");
521 if (__pContentIconListView != null)
523 int loopCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
524 for (int i = 0; i < loopCount; ++i)
526 if (__pContentIconListView->IsItemChecked(i))
532 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
538 ImageListEditorPanel::GetItemCheckedIndexListN(void) const
540 AppLogDebug("ENTER");
541 IList* pList = new (std::nothrow) ArrayList(SingleObjectDeleter);
542 Integer* pIndex = null;
544 if (__pContentIconListView != null)
546 int loopCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
547 AppLogDebug("ENTER loopCount(%d)", loopCount);
548 for (int i = 0; i < loopCount; ++i)
550 if (__pContentIconListView->IsItemChecked(i))
552 pIndex = new (std::nothrow) Integer(i);
553 AppLogDebug("ENTER loopCount(%d)", loopCount);
554 AppLogDebug("ENTER loopCount(%d)", pIndex->ToInt());
559 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
564 void ImageListEditorPanel::OnFileOpInvalidate(enum FileActionMode actionId)
566 SceneManager* pSceneManager = SceneManager::GetInstance();
567 FileListEditorForm* pFileListEditorForm =
568 dynamic_cast<FileListEditorForm*>(pSceneManager->GetCurrentScene()->GetForm());
569 TryReturnVoid(pFileListEditorForm != null, "[%s] fail to get SceneManager.",
570 GetErrorMessage(GetLastResult()));
571 pFileListEditorForm->Invalidate(true);
574 void ImageListEditorPanel::OnFileOpComplete(enum FileActionMode actionId, enum FileActionCompleteRes res)
579 ImageListEditorPanel::OnRequestAppExitWithMultipleSelectionAppControlResult(void)
581 AppLogDebug("ENTER");
582 IList* pIndexList = GetItemCheckedIndexListN();
584 if (pIndexList->GetCount() <= 0)
587 AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
591 ArrayList* pArrayList = new (std::nothrow) ArrayList(SingleObjectDeleter);
592 pArrayList->Construct();
593 int loopCount = pIndexList->GetCount();
594 Integer* pTemp = null;
595 for (int i = 0; i < loopCount; ++i)
597 pTemp = static_cast<Integer*>(pIndexList->GetAt(i));
598 pArrayList->Add(new (std::nothrow) String(__pPresentationModel->GetContentFilePath(pTemp->ToInt())));
601 HashMap* pMap = new (std::nothrow) HashMap(SingleObjectDeleter);
603 pMap->Add(new (std::nothrow) String(APPCONTROL_KEY_DATA_SELECTED), pArrayList);
605 GalleryApp* pApp = dynamic_cast<GalleryApp*>(UiApp::GetInstance());
608 pApp->SendAppControlResult(APP_CTRL_RESULT_SUCCEEDED, pMap);
613 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
617 ImageListEditorPanel::OnSelectAllPressed(void)
619 bool needToSelectAll = true;
620 int checkedCount = GetItemCheckedCount();
621 int totalFileCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
622 if (checkedCount == totalFileCount)
624 needToSelectAll = false;
627 if (needToSelectAll == true)
629 for (int i = 0; i < totalFileCount; ++i)
631 if (__pContentIconListView->IsItemChecked(i) == false)
633 __pContentIconListView->SetItemChecked(i, true);
634 __pContentIconListView->RefreshList(i, LIST_REFRESH_TYPE_ITEM_MODIFY);
636 if (__pFileListEditorForm != null)
638 __pFileListEditorForm->SetFooterButtonsState(true);
644 for (int i = 0; i < totalFileCount; ++i)
646 if (__pContentIconListView->IsItemChecked(i) == true)
648 __pContentIconListView->SetItemChecked(i, false);
649 __pContentIconListView->RefreshList(i, LIST_REFRESH_TYPE_ITEM_MODIFY);
651 if (__pFileListEditorForm != null)
653 __pFileListEditorForm->SetFooterButtonsState(false);
659 if (needToSelectAll == true)
661 tempString.Format(LENGTH_COUNT_LABEL,
662 ResourceManager::GetString(L"IDS_VR_POP_PD_ITEMS_SELECTED").GetPointer(), totalFileCount);
666 tempString = ResourceManager::GetString(L"IDS_ST_POP_NO_ITEMS_SELECTED");
669 __pLabelSelectCnt->SetText(tempString);
670 __pLabelSelectCnt->RequestRedraw(true);
674 ImageListEditorPanel::SetButtonState(void)
676 AppLogDebug("ENTER");
678 TryReturnVoid(__pFileListEditorForm != null, "[%s] __pFileListEditorForm is null", GetErrorMessage(GetLastResult()));
680 if (GetItemCheckedCount() > 0)
682 AppLogDebug("BUTTONSTATE : Request Enable");
683 __pFileListEditorForm->SetFooterButtonsState(true);
687 AppLogDebug("BUTTONSTATE : Request disable");
688 __pFileListEditorForm->SetFooterButtonsState(false);
690 AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
694 ImageListEditorPanel::ChangeOrientation(void)
696 AppLogDebug("ENTER");
697 SceneManager* pSceneManager = SceneManager::GetInstance();
698 const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
699 TryReturn(pForm != null,, "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
701 FloatRectangle clientAreaBounds = pForm->GetClientAreaBoundsF();
702 SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height);
703 if (__pLabelSelectCnt != NULL)
705 __pLabelSelectCnt->SetBounds(0.0f, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
707 __pContentIconListView->SetBounds(0.0f, 0.0f, clientAreaBounds.width, clientAreaBounds.height -H_COUNT_LABEL);