AlbumListEditorForm::OnContentUpdated(void)
{
AppLogDebug("ENTER");
- int maxCount = __pPresentationModel->GetFolderCount();\r
+ int maxCount = __pPresentationModel->GetFolderCount();
if(__pDeletePopup != null)
{
if(__pDeletePopup->IsVisible() == true)
}
}
- for (int i = 0; i < maxCount; ++i)\r
- {\r
- __pEditorFolderIconList->SetItemChecked(i, false);\r
- }\r
+ for (int i = 0; i < maxCount; ++i)
+ {
+ __pEditorFolderIconList->SetItemChecked(i, false);
+ }
SceneManager* pSceneManager = SceneManager::GetInstance();
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
pCancelButton->SetActionId(IDA_DELETE_POPUP_CANCEL);
pCancelButton->AddActionEventListener(*this);
- __pDeletePopup->AddControl(*pLabel);
- __pDeletePopup->AddControl(*pDeleteButton);
- __pDeletePopup->AddControl(*pCancelButton);
+ __pDeletePopup->AddControl(pLabel);
+ __pDeletePopup->AddControl(pDeleteButton);
+ __pDeletePopup->AddControl(pCancelButton);
}
else
{
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
null, null, pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
footerMore.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitmapMorePressed);
}
- pFooter->SetButton(BUTTON_POSITION_LEFT,footerMore);
+ pFooter->SetButton(BUTTON_POSITION_LEFT, footerMore);
delete pBitmapMore;
delete pBitmapMoreDim;
delete pBitmapMorePressed;
__itemCount = __pPresentationModel->GetFolderCount();
__pAlbumViewIconList->UpdateList();
+ if (__itemCount == 0 )
+ {
+ GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+ }
+ else
+ {
+ GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+ }
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
__pNameEditField->SetColor(EDIT_STATUS_NORMAL, COLOR_NAME_EDIT_FIELD);
__pNameEditField->SetOverlayKeypadCommandButtonVisible(false);
- AddControl(*__pNameEditField);
+ AddControl(__pNameEditField);
__pNameEditField->AddActionEventListener(*this);
return E_SUCCESS;
Rectangle rect(0, 0, clientRect.width, clientRect.height);
__pProgressAnim = new (std::nothrow) ProgressAnimation;
__pProgressAnim->Construct(rect);
- AddControl(*__pProgressAnim);
+ AddControl(__pProgressAnim);
__pProgressAnim->SetShowState(true);
GetFooter()->SetEnabled(false);
__pProgressAnim->AnimationStart();
//Hide popup here..
__pProgressAnim->AnimationStop();
__pProgressAnim->SetShowState(false);
- RemoveControl(*__pProgressAnim);
+ RemoveControl(__pProgressAnim);
_overlayMsg = false;
GetFooter()->SetEnabled(true);
SceneManager* pSceneManager = SceneManager::GetInstance();
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__pLabelSelectCnt = new (std::nothrow) Label();
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
__pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
- AddControl(*__pLabelSelectCnt);
+ AddControl(__pLabelSelectCnt);
__pLabelSelectCnt->Invalidate(true);
__pButtonSelectRegion = new (std::nothrow) Button();
__pButtonSelectRegion->SetNormalBitmap(Point(buttonRegionRect.width, buttonRegionRect.height),
*pSelectionBitmap);
}
- AddControl(*__pButtonSelectRegion);
+ AddControl(__pButtonSelectRegion);
if (pSelectionBitmap != null)
{
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
null, pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- result r = AddControl(*__pContentIconListView);
+ result r = AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__itemCount = 0;
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__itemCount = 0;
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
null, pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
if (pCollisionList != null)
{
int loopCount = pCollisionList->GetCount();
- int collisionCount = 0;\r
+ int collisionCount = 0;
for (int i = 0; i < loopCount; ++i)
{
String* pCollisionString = const_cast<String*>(static_cast<const String*>(pCollisionList->GetAt(i)));
st.GetNextToken(fileName);
}
- int innerLoopCount = pMoveIndexList->GetCount();\r
- for (int j = 0; j < innerLoopCount; ++j)\r
+ int innerLoopCount = pMoveIndexList->GetCount();
+ for (int j = 0; j < innerLoopCount; ++j)
{
- if (collisionIndex == (const_cast<Integer*>(static_cast<const Integer*>\r
- (pMoveIndexList->GetAt(j))))->ToInt())\r
+ if (collisionIndex == (const_cast<Integer*>(static_cast<const Integer*>
+ (pMoveIndexList->GetAt(j))))->ToInt())
{
- pMoveIndexList->RemoveAt(j, true);\r
- --j;\r
- --innerLoopCount;\r
- collisionCount++;\r
+ pMoveIndexList->RemoveAt(j, true);
+ --j;
+ --innerLoopCount;
+ collisionCount++;
}
}
}
- }\r
- if ( collisionCount > 0)\r
- {\r
- MessageBox messageBox;\r
- messageBox.Construct(L"", L"Unable to move some files. Same files exists",\r
- MSGBOX_STYLE_NONE, 3000);\r
- int modalResult;\r
- messageBox.ShowAndWait(modalResult);\r
+ }
+ if ( collisionCount > 0)
+ {
+ MessageBox messageBox;
+ messageBox.Construct(L"", L"Unable to move some files. Same files exists",
+ MSGBOX_STYLE_NONE, 3000);
+ int modalResult;
+ messageBox.ShowAndWait(modalResult);
}
}
return pMoveIndexList;
{
__pPopUp->Initialize();
__pPopUp->SetEventListner(this);
- AddControl(*__pPopUp);
+ AddControl(__pPopUp);
}
__pPresentationModel = FileListPresentationModel::GetInstance();
ResourceManager::GetString(L"IDS_COM_POP_DELETE_Q"));
pLabelText->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pLabelText->SetTextConfig(34,LABEL_TEXT_STYLE_BOLD);
- __pDeletePopup->AddControl(*pLabelText);
+ __pDeletePopup->AddControl(pLabelText);
Button* pDeleteButton = new (std::nothrow) Button();
pDeleteButton->Construct(Rectangle(0, Y_DELETE_BUTTON, popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
pDeleteButton->SetTextColor(COLOR_DELETE_BUTTON_TEXT);
pDeleteButton->SetActionId(IDA_DELETE_POPUP_DEL);
pDeleteButton->AddActionEventListener(*this);
- __pDeletePopup->AddControl(*pDeleteButton);
+ __pDeletePopup->AddControl(pDeleteButton);
Button* pButtonCancel = new (std::nothrow) Button();
pButtonCancel->Construct(Rectangle(popupClientBounds.width / 2 + GAP_W_POPUP_ITEM, Y_DELETE_BUTTON,
popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON), ResourceManager::GetString(L"IDS_COM_POP_CANCEL"));
pButtonCancel->SetActionId(IDA_DELETE_POPUP_CANCEL);
pButtonCancel->AddActionEventListener(*this);
- __pDeletePopup->AddControl(*pButtonCancel);
+ __pDeletePopup->AddControl(pButtonCancel);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
{
__pPopUp->Initialize();
__pPopUp->SetEventListner(this);
- AddControl(*__pPopUp);
+ AddControl(__pPopUp);
}
InitializeFooter();
r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
- if(r == E_MAX_EXCEEDED)
+ if (r == E_MAX_EXCEEDED)
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
ImageFormat imageFormat;
Image img;
String filePath = GetContentFilePath(index);
- r = img.Construct();
+ ContentType contentType = ContentManagerUtil::CheckContentType(filePath);
+ if (contentType == CONTENT_TYPE_VIDEO)
+ {
+ return r;
+ }
+ r = img.Construct();
if (r == E_SUCCESS)
{
{
r = pRotatedBuffer->EncodeToFile(filePath, imageFormat, true, 100);
delete pRotatedBuffer;
+ ContentManager::ScanFile(filePath);
}
-
- ContentManager::ScanFile(filePath);
return r;
}
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__pLabelSelectCnt = new (std::nothrow) Label();
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
__pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
- AddControl(*__pLabelSelectCnt);
+ AddControl(__pLabelSelectCnt);
}
else
{
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
}
}
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__pLabelSelectCnt = new (std::nothrow) Label();
__pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
- AddControl(*__pLabelSelectCnt);
+ AddControl(__pLabelSelectCnt);
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
__pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
__pContentIconListView->AddIconListViewItemEventListener(*this);
__pContentIconListView->SetTouchAnimationEnabled(false);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__itemCount = 0;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
__pAnimation = new (std::nothrow) Animation();
__pAnimation->Construct(Rectangle((rect.width / 2 - 60 / 2), (rect.height / 2 - 60 / 2), 60, 60), *__pAnimationFrameList);
__pAnimation->SetRepeatCount(10000);
- AddControl(*__pAnimation);
+ AddControl(__pAnimation);
}
return E_SUCCESS;
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetItemProvider(*this);
__pContentIconListView->AddListViewItemEventListener(*this);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__pLabelSelectCnt = new (std::nothrow) Label();
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
__pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
- AddControl(*__pLabelSelectCnt);
+ AddControl(__pLabelSelectCnt);
}
else
{
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetItemProvider(*this);
__pContentIconListView->AddListViewItemEventListener(*this);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
}
}
__pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentIconListView->SetItemProvider(*this);
__pContentIconListView->AddListViewItemEventListener(*this);
- AddControl(*__pContentIconListView);
+ AddControl(__pContentIconListView);
__pContentIconListView->SetShowState(true);
__pLabelSelectCnt = new (std::nothrow) Label();
__pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
__pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
__pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
- AddControl(*__pLabelSelectCnt);
+ AddControl(__pLabelSelectCnt);
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
__pContentListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
__pContentListView->SetItemProvider(*this);
__pContentListView->AddListViewItemEventListener(*this);
- AddControl(*__pContentListView);
+ AddControl(__pContentListView);
__pContentListView->SetShowState(true);
__itemCount = 0;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));