+
+
+void
+AlbumListEditorForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+
+ IList* pIndexList = GetItemCheckedIndexListN();
+
+ if( __pEditorFolderIconList != null )
+ {
+ RemoveControl(__pEditorFolderIconList);
+ }
+
+ __pEditorFolderIconList = new IconListView();
+
+ if( orientationStatus == ORIENTATION_STATUS_PORTRAIT )
+ {
+ __pEditorFolderIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height- __pSelectCountLabel->GetHeight()),
+ Dimension(348, 348), ICON_LIST_VIEW_STYLE_MARK, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+ }
+ else if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+ {
+ int horizontalSpacing = 8;
+ int verticalSpacing = 60;
+ int height = 424;
+ int width = 410;
+
+ __pEditorFolderIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height - __pSelectCountLabel->GetHeight()),
+ Dimension(width, height), ICON_LIST_VIEW_STYLE_MARK, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+
+ __pEditorFolderIconList->SetItemSpacing(horizontalSpacing, verticalSpacing);
+ __pEditorFolderIconList->SetMargin(MARGIN_TYPE_TOP,40);
+ }
+
+ Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
+
+ if (pBitmap != null)
+ {
+ __pEditorFolderIconList->SetBitmapOfEmptyList(pBitmap);
+ delete pBitmap;
+ }
+
+ __pEditorFolderIconList->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
+ __pEditorFolderIconList->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
+ __pEditorFolderIconList->SetTouchAnimationEnabled(false);
+ __pEditorFolderIconList->SetItemProvider(*this);
+ __pEditorFolderIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
+ __pEditorFolderIconList->AddIconListViewItemEventListener(*this);
+
+ AddControl(*__pEditorFolderIconList);
+
+ int loopCount = pIndexList->GetCount();
+ int index = -1 ;
+ for(int count = 0 ; count < loopCount; count ++)
+ {
+ Integer* pRealIndex = static_cast<Integer*>(pIndexList->GetAt(count));
+ index = pRealIndex->ToInt();
+ __pEditorFolderIconList->SetItemChecked(index, true);
+ __pEditorFolderIconList->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+
+}
+