AlbumListPresentationModel* __pPresentationModel;
};
-#endif // _MP_ALBUM_CONTENT_LIST_FORM_H_
+#endif // _MP_ALBUM_CONTENT_LIST_FORM_H_
\ No newline at end of file
void SetEditHeaderStyle(void);
void SetTabHeaderStyle(void);
void SetDisableIconAllCheckButton(void);
- void SetCheckedIconAllCheckButton(void);
- void SetUnCheckedIconAllCheckButton(void);
private:
int __checkedItemCount;
void SetEditHeaderStyle(void);
void SetTabHeaderStyle(void);
void SetDisableIconAllCheckButton(void);
- void SetCheckedIconAllCheckButton(void);
- void SetUnCheckedIconAllCheckButton(void);
private:
PlayListPickerPopup* __pPlayListPickerPopup;
protected:
int __checkedItemCount;
-// Tizen::Ui::Controls::CheckButton* __pSelectAllCheckedButton;
-// Tizen::Ui::Controls::Label* __pCheckedCountLabel;
AllListPresentationModel* __pPresentationModel;
Tizen::Graphics::Bitmap* __pThumbnail;
int __editType;
const Tizen::Base::Collection::IMap* pExtraData);
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
+// result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
void ToggleViewMode(bool editMode);
static Tizen::Graphics::Bitmap* GetColorizedBitmapN(const Tizen::Graphics::Bitmap& bitmap, const Tizen::Graphics::Color& color);
};
-#endif // _MP_COMMON_UTIL_H_
+#endif // _MP_COMMON_UTIL_H_
\ No newline at end of file
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
+// result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
void ToggleViewMode(bool editMode);
result SetContextMenuItem(unsigned int contextMenuItemStyle, Tizen::Graphics::Point anchorPosition = Tizen::Graphics::Point(-1, -1));
void SetCommonPopup(Tizen::Ui::Controls::Popup* commonUtilPopup);
result ToggleContentListScreenMode(ContentListScreenMode screenMode);
- void ToggleAllSelectedItemButton(bool isChecked);
+ void ToggleItemCheckedAll(bool isChecked);
void UpdateContentListScreenState(void);
int __itemIndex;
int __checkedItemCount;
int __additionlInformationRegisterBarHeight;
+ bool __allSelectToggle;
};
-#endif // _MP_CONTENT_LIST_FORM_H_
+#endif // _MP_CONTENT_LIST_FORM_H_
\ No newline at end of file
FolderListPresentationModel* __pPresentationModel;
};
-#endif // _MP_FOLDER_CONTENT_LIST_FORM_H_
+#endif // _MP_FOLDER_CONTENT_LIST_FORM_H_
\ No newline at end of file
void SetEditHeaderStyle(void);
void SetTabHeaderStyle(void);
void SetDisableIconAllCheckButton(void);
- void SetCheckedIconAllCheckButton(void);
- void SetUnCheckedIconAllCheckButton(void);
protected:
int __checkedItemCount;
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
+// result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
void ToggleViewMode(bool editMode);
void UpdateContentList(void);
void SetEditHeaderStyle(void);
void SetTabHeaderStyle(void);
- void SetCheckedIconAllCheckButton(void);
- void SetUnCheckedIconAllCheckButton(void);
+ void SetDisableIconAllCheckButton(void);
private:
int __selectedItemIndex;
static const Tizen::Base::String CONTENT_FORM_REQUSEST_ID = L"ContentFormRequestId";
-#endif // _MP_TYPES_H_
+#endif // _MP_TYPES_H_
\ No newline at end of file
PlaylistListPresentationModel* __pPresentationModel;
};
-#endif // _MP_USER_PLAYLIST_CONTENT_LIST_FORM_H_
+#endif // _MP_USER_PLAYLIST_CONTENT_LIST_FORM_H_
\ No newline at end of file
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
+// result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
void ToggleViewMode(bool editMode);
AlbumContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
-
delete __pContextItem;
__pContextItem = null;
}
break;
-
-
case IDA_FOOTER_BUTTON_DELETE:
{
RemoveCheckedTableviewItem();
pArtistName->SetText(pContentInfoStruct->ArtistName);
String albumCount = null;
- albumCount.Format(255,L"%d songs",__pPresentationModel->GetContentCount(__currentContentIndex));
+ albumCount.Format(255, L"%d songs", __pPresentationModel->GetContentCount(__currentContentIndex));
Label* pAlbumCount = static_cast<Label*>(pContentInfoPanel->GetControl(IDC_PLAY_CONTENT_COUNT));
pAlbumCount->SetText(albumCount);
layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
+ TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
AlbumContentListForm::SetContentListHeader(void)
{
AppLogDebug("ENTER");
-
CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
AppLogDebug("EXIT");
return E_SUCCESS;
AlbumContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
-
Panel* pItemPanel = static_cast<Panel*>(GetRegisteredAdditionalInforamtionControl());
if (pItemPanel == null)
}
String albumCount = null;
- albumCount.Format(255,L"%d songs",__pPresentationModel->GetContentCount(__currentContentIndex));
+ albumCount.Format(255, L"%d songs", __pPresentationModel->GetContentCount(__currentContentIndex));
Label* pAlbumCount = static_cast<Label*>(pItemPanel->GetControl(IDC_PLAY_CONTENT_COUNT));
pAlbumCount->SetText(albumCount);
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
__pContentTableView->Invalidate(true);
}
else
{
SetNoContentSongs(true);
+ SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- if (__checkedItemCount == __pPresentationModel->GetAllAlbumCount())
- {
- SetCheckedIconAllCheckButton();
- }
- else
- {
- SetUnCheckedIconAllCheckButton();
- }
-
SetCheckedCountBalloonPopup(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
void
-AlbumListEditorPanel::SetCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, true);
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
-
-void
-AlbumListEditorPanel::SetUnCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, false);
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
-
-void
AlbumListEditorPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
pFooter->RemoveAllItems();
pFooter->RemoveActionEventListener(*this);
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
if (__pPresentationModel->GetTotalCount() != 0)
{
-// __pSelectAllCheckedButton->SetEnabled(true);
+ // Empty statement
}
else
{
SetNoContentSongs(true);
+ SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
__pContentTableView->Invalidate(true);
}
}
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
__pContentTableView->Invalidate(true);
UpdateContentList();
SetCheckedCountBalloonPopup(INIT_VALUE);
+
if (__pPresentationModel->GetTotalCount() != INIT_VALUE)
{
SetNoContentSongs(false);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- if (__checkedItemCount == __pPresentationModel->GetTotalCount())
- {
- SetCheckedIconAllCheckButton();
- }
- else
- {
- SetUnCheckedIconAllCheckButton();
- }
-
SetCheckedCountBalloonPopup(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
pHeader->Invalidate(true);
AppLogDebug("EXIT");
}
+
void
AllListEditorPanel::SetDisableIconAllCheckButton(void)
{
pHeader->Invalidate(true);
AppLogDebug("EXIT");
}
-void
-AllListEditorPanel::SetCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- if(__editType == IDA_MORE_CONTEXT_MENU_EDIT)
- {
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, true);
- }
- else
- {
- String titleText(L"Share via");//NEED STRING
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, true);
- }
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
-void
-AllListEditorPanel::SetUnCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- if(__editType == IDA_MORE_CONTEXT_MENU_EDIT)
- {
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, false);
- }
- else
- {
- String titleText(L"Share via");//NEED STRING
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, false);
- }
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
void
AllListEditorPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
static const int X_OFFSET_EDIT_STYLE_TABLE_VIEW = 96;
static const int COUNT_MESSAGE_BOX_TIMEOUT = 3000;
+
#if 0
#define ALL_SONG_INDEX_COUNT_PLUS(n) (n + 1)
#define ALL_SONG_INDEX_COUNT_MINUS(n) (n - 1)
+
ArtistContentListForm::ArtistContentListForm(void)
: ContentListForm::ContentListForm()
, __pPresentationModel(null)
}
AppLogDebug("EXIT");
}
-#endif
+#endif
\ No newline at end of file
pTabHeaderItem.Construct(IDA_HEADER_BUTTON_SONG + iCount);
pTabHeaderItem.SetText(ResourceManager::GetString(TabNameId[iCount]));
-// CommonUtil::SetBackgroundBitmapHeaderItem(pTabHeaderItem, null, null, null, null);
pHeader.AddItem(pTabHeaderItem);
headItemChecked++;
}
pTabHeaderItem.Construct(IDA_HEADER_BUTTON_SONG + iCount);
pTabHeaderItem.SetText(ResourceManager::GetString(TabNameId[iCount]));
-// CommonUtil::SetBackgroundBitmapHeaderItem(pTabHeaderItem, null, null, null, null);
pHeader.AddItem(pTabHeaderItem);
headItemChecked++;
}
ButtonItem buttonItem;
buttonItem.Construct(BUTTON_ITEM_STYLE_ICON, actionId);
- Bitmap* checkedIcon = null;
- if (isChecked == true)
- {
- checkedIcon = ResourceManager::GetBitmapN(L"00_check_checking.png");
- }
+ CommonUtil::SetIconButtonItem(buttonItem, ResourceManager::GetBitmapN(L"00_icon_select_all_web.png"),
+ ResourceManager::GetBitmapN(L"00_icon_select_all_press_web.png"),
+ ResourceManager::GetBitmapN(L"00_icon_select_all_dim_web.png"));
- CommonUtil::SetIconButtonItem(buttonItem, checkedIcon, checkedIcon, null);
- CommonUtil::SetBackgroundBitmapButtonItem(buttonItem, ResourceManager::GetBitmapN(L"00_check_bg.png"),
- ResourceManager::GetBitmapN(L"00_check_bg_press.png"), ResourceManager::GetBitmapN(L"00_check_bg_dim.png"));
pHeader.SetButton(BUTTON_POSITION_RIGHT, buttonItem);
- delete checkedIcon;
-
pHeader.SetTitleTextColor(COLOR_HEADER_TITLE_TEXT);
AppLogDebug("EXIT");
}
delete pBgDisabled;
delete pIconChecked;
AppLogDebug("EXIT");
-
- AppLogDebug("EXIT");
}
-//
+
//void
//CommonUtil::SetButtonItemIcon(Tizen::Ui::Controls::ButtonItem& buttonItem, Tizen::Graphics::Bitmap* pIconNormal
// , Tizen::Graphics::Bitmap* pIconPressed, Tizen::Graphics::Bitmap* pIconDisabled)
// buttonItem.SetIcon(BUTTON_ITEM_STATUS_DISABLED, pIconDisabled);
// AppLogDebug("EXIT");
//}
-//
+
//void
//CommonUtil::SetButtonItemBackgroundBitmap(Tizen::Ui::Controls::ButtonItem& buttonItem, Tizen::Graphics::Bitmap* pIconNormal
// , Tizen::Graphics::Bitmap* pIconPressed, Tizen::Graphics::Bitmap* pIconDisabled)
// buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_DISABLED, pIconDisabled);
// AppLogDebug("EXIT");
//}
-//
+
//void
//CommonUtil::SetButtonItemBackgroundBitmap(Tizen::Ui::Controls::HeaderItem& headerItem, Tizen::Graphics::Bitmap* pIconNormal
// , Tizen::Graphics::Bitmap* pIconPressed, Tizen::Graphics::Bitmap* pIconDisabled, Tizen::Graphics::Bitmap* pIconSelected)
CommonUtil::CreateTableViewContextItemN(Tizen::Ui::IActionEventListener& listener, int itemWidth, FlickMenuStyle menuStyle)
{
AppLogDebug("ENTER");
- Panel* pItem = CommonUtil::CreateFlickMenuN(listener, menuStyle);
+ Panel* pItem = CommonUtil::CreateFlickMenuN(listener, menuStyle);
if (pItem == null)
{
AppLogDebug("CommonUtil::CreateSweepMenuItemN failed");
pContextMenu->AddActionEventListener(listener);
pContextMenu->SetAnchorPosition(itemPoint);
pContextMenu->SetShowState(true);
- AppLogDebug("EXIT");
+ AppLogDebug("EXIT");
return pContextMenu;
}
// IDA_CONTEXT_MENU_ITEM_GO_TO_LIBARY
contextMenu.AddItem(L"Go to Library", IDA_CONTEXT_MENU_ITEM_GO_TO_LIBARY);//NEED STRING
}
-
AppLogDebug("EXIT");
}
-
bool
CommonUtil::IsVaildContextMenuItemActionId(int actionId)
{
AppLogDebug("EXIT");
return folderPath;
-}
+}
\ No newline at end of file
static const Tizen::Graphics::Rectangle RECT_COMPOSER_EDIT_ITEM_TITLE_NAME (144, 8, (300 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 66);
static const Tizen::Graphics::Rectangle RECT_COMPOSER_EDIT_ITEM_TIME ((444 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 8, 260, 66);
static const Tizen::Graphics::Rectangle RECT_COMPOSER_EDIT_ITEM_ARTIST_NAME (144, 66, (560 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 46);
+
#if 0
ComposerContentListForm::ComposerContentListForm(void)
: ContentListForm::ContentListForm()
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
}
-#endif
+#endif
\ No newline at end of file
Label* pSize = static_cast<Label*>(GetControl(IDC_SIZE_DATA_LABEL));
contentSize = pAudioInfo->GetContentSize();
- if ( contentSize >= SCALE_MBYTE)
+ if (contentSize >= SCALE_MBYTE)
{
- int megaByte = ( contentSize / SCALE_MBYTE);
- int killoByte = (((( contentSize % SCALE_MBYTE) / SCALE_KBYTE ) * DECIMAL_ROUNDING) / SCALE_KBYTE);
+ int megaByte = (contentSize / SCALE_MBYTE);
+ int killoByte = ((((contentSize % SCALE_MBYTE) / SCALE_KBYTE ) * DECIMAL_ROUNDING) / SCALE_KBYTE);
- stringContentSize.Format(256,L"%d.%dMB", megaByte, killoByte);
+ stringContentSize.Format(256, L"%d.%dMB", megaByte, killoByte);
}
- else if ( contentSize >= SCALE_KBYTE)
+ else if (contentSize >= SCALE_KBYTE)
{
- int killoByte = ( contentSize / SCALE_KBYTE);
- int bytes = ((( contentSize % SCALE_KBYTE) * DECIMAL_ROUNDING) / SCALE_KBYTE);
- stringContentSize.Format(256,L"%d.%dKB", killoByte, bytes);
+ int killoByte = (contentSize / SCALE_KBYTE);
+ int bytes = (((contentSize % SCALE_KBYTE) * DECIMAL_ROUNDING) / SCALE_KBYTE);
+ stringContentSize.Format(256, L"%d.%dKB", killoByte, bytes);
}
else
{
- stringContentSize.Format(256,L"%dB", contentSize);
+ stringContentSize.Format(256, L"%dB", contentSize);
}
pSize->SetText(stringContentSize);
bool isDrmProtected = false;
isDrmProtected = pAudioInfo->IsDrmProtected();
Label* pForwarding = static_cast<Label*>(GetControl(IDC_FORWARDING_DATA_LABEL));
- if ( isDrmProtected == true)
+ if (isDrmProtected == true)
{
pForwarding->SetText(ResourceManager::GetString(L"IDS_MUSIC_BODY_IMPOSSIBLE"));
}
Label* pLocation = static_cast<Label*>(GetControl(IDC_LOCATION_DATA_LABEL));
pLocation->SetText(stringContentPath);
Invalidate(true);
+
+ AppLogDebug("EXIT");
return r;
}
pSceneManager->GoBackward(BackwardSceneTransition());
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"EDIT"); //NEED String\r
CommonUtil::SetButtonItemUnCheckedIcon(*GetParentHeader());\r
AppLogDebug("EXIT");\r
-}\r
+}
\ No newline at end of file
, __pContextMenu(null)
, __pCommonUtilPopupHandler(null)
, __pNoContentLabel(null)
- ,__pAdditionalInformationRegisterBar(null)
- ,__pItemSelectedBalloonPopup(null)
+ , __pAdditionalInformationRegisterBar(null)
+ , __pItemSelectedBalloonPopup(null)
, __pPlayListPickerPopup(null)
, __pSharePopup(null)
, __contentListScreenMode(CONTENT_LIST_SCREEN_MODE_NORMAL)
, __itemIndex(-1)
, __checkedItemCount(0)
, __additionlInformationRegisterBarHeight(0)
-
+ , __allSelectToggle(0)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
}
void
-ContentListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+ContentListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
GetHeader()->AddActionEventListener(*this);
AppLogDebug("ENTER");
switch (actionId)
{
- case IDA_HEADER_BUTTION_CHECK_BOX_UNCHECKED_ICON:
- {
- ToggleAllSelectedItemButton(false);
- }
- break;
-
- case IDA_HEADER_BUTTION_CHECK_BOX_CHECKED_ICON:
+ case IDA_HEADER_ALL_CHECK_BUTTON:
{
- ToggleAllSelectedItemButton(true);
+ __allSelectToggle = __allSelectToggle ? false : true;
+ ToggleItemCheckedAll(__allSelectToggle);
}
break;
{
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- ToggleAllSelectedItemButton(false);
+ ToggleItemCheckedAll(false);
+ __allSelectToggle = false;
}
DestroyPlayListPickerPopup();
}
SetShowStateNoContent(true);
SetShowStateItemSelectedBalloonPopup(false);
SetShowStateAdditionalInformationRegisterBar(false);
+ GetHeader()->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
+ GetHeader()->Invalidate(true);
AppLogDebug("EXIT");
return;
}
{
return E_SUCCESS;
}
-
+ AppLogDebug("EXIT");
return E_FAILURE;
}
{
if (screenMode == CONTENT_LIST_SCREEN_MODE_EDITOR)
{
- GetHeader()->SetTitleText(L"EDIT"); //NEED String
+ CommonUtil::SetEditHeaderStyle(*GetHeader(), L"EDIT", IDA_HEADER_ALL_CHECK_BUTTON, false);
CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_ADDTO_DELETE_ADD);
}
else if (screenMode == CONTENT_LIST_SCREEN_MODE_SHARE_VIA)
{
- GetHeader()->SetTitleText(L"Share via"); //NEED String
+ CommonUtil::SetEditHeaderStyle(*GetHeader(), L"Share via", IDA_HEADER_ALL_CHECK_BUTTON, false);
CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_SHARE_ADD);
}
__checkedItemCount = INIT_VALUE;
CommonUtil::SetItemCheckedAll(false, *__pContentTableView);
- CommonUtil::SetButtonItemUnCheckedIcon(*GetHeader());
CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemSelectedBalloonPopup, __checkedItemCount);
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
}
UpdateContentListScreenState();
__pContentTableView->UpdateTableView();
+
AppLogDebug("EXIT");
return E_SUCCESS;
}
}
void
-ContentListForm::ToggleAllSelectedItemButton(bool isChecked)
+ContentListForm::ToggleItemCheckedAll(bool isChecked)
{
AppLogDebug("ENTER");
if (isChecked == true)
{
- CommonUtil::SetButtonItemCheckedIcon(*GetHeader());
__checkedItemCount = __pContentTableView->GetItemCount();
}
else
{
- CommonUtil::SetButtonItemUnCheckedIcon(*GetHeader());
__checkedItemCount = INIT_VALUE;
}
-
CommonUtil::SetItemCheckedAll(isChecked, *__pContentTableView);
CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemSelectedBalloonPopup, __checkedItemCount);
AppLogDebug("ENTER");
if (status == TABLE_VIEW_ITEM_STATUS_UNCHECKED)
{
- if (tableView.GetItemCount() == __checkedItemCount)
+ __allSelectToggle = false;
+ __checkedItemCount--;
+ if (__checkedItemCount == INIT_VALUE)
{
- CommonUtil::SetButtonItemUnCheckedIcon(*GetHeader());
+ CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
}
-
- __checkedItemCount--;
- if (__checkedItemCount == INIT_VALUE)
- {
- CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
- }
}
else if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
{
__checkedItemCount++;
if (tableView.GetItemCount() == __checkedItemCount)
{
- CommonUtil::SetButtonItemCheckedIcon(*GetHeader());
+ __allSelectToggle = true;
}
}
}
__checkedItemCount = INIT_VALUE;
- CommonUtil::SetButtonItemUnCheckedIcon(*GetHeader());
+ __allSelectToggle = false;
CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemSelectedBalloonPopup, __checkedItemCount);
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
AppLogDebug("EXIT");
__pSharePopup->SetShowState(true);
__pSharePopup->Show();
- ToggleAllSelectedItemButton(false);
+ ToggleItemCheckedAll(false);
+ __allSelectToggle = false;
AppLogDebug("EXIT");
return E_SUCCESS;
__pPlayListPickerPopup->SetShowState(true);
__pPlayListPickerPopup->Show();
+
AppLogDebug("EXIT");
return E_SUCCESS;
-}
+}
\ No newline at end of file
parent.SetIndividualSelectionEnabled(pTableViewItem, true);
CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
+
AppLogDebug("EXIT");
return E_SUCCESS;
}
FolderContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
AppLogDebug("ENTER");
- Panel* pItemPanel = null;
+ Panel* pItemPanel = null;
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL));
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
: ContentEditPanel::ContentEditPanel()
, __checkedItemCount(0)
, __pPlayListPickerPopup(null)
- ,__pPresentationModel(null)
+ , __pPresentationModel(null)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
void
FolderListEditorPanel::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
-//
- AppLogDebug("ENTER %d",actionId);
+ AppLogDebug("ENTER %d", actionId);
Form* pForm = dynamic_cast<Form*>(GetParent());
Footer* pFooter = pForm->GetFooter();
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
__pPresentationModel->UpdateFolderPathList();
if (__pPresentationModel->GetAllFolderCount() != 0)
{
-
+ // Empty statement
}
else
{
SetNoContentSongs(true);
+ SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
delete pArgs;
}
AppLogDebug("EXIT");
-
}
void
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- if (__checkedItemCount == __pPresentationModel->GetAllFolderCount())
- {
- SetCheckedIconAllCheckButton();
- }
- else
- {
- SetUnCheckedIconAllCheckButton();
- }
-
SetCheckedCountBalloonPopup(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
pHeader->Invalidate(true);
AppLogDebug("EXIT");
-}
-
-void
-FolderListEditorPanel::SetCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, true);
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
-
-void
-FolderListEditorPanel::SetUnCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, false);
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
CommonUtil::SetLayoutFitToContainer(*pTableViewContextItem, *pSweepQuickMenu);
AppLogDebug("EXIT");
return pTableViewContextItem;
-}
+}
\ No newline at end of file
AppLogDebug("ENTER");
IList* pRemoveFolderList = null;
int totalCount = 0;
- ContentInformation* pContentInformation = null;
- ContentSearchResult* pResult = null;
ContentManager contentManager;
contentManager.Construct();
pRemoveFolderList->RemoveAll(true);
delete pRemoveFolderList;
-
AppLogDebug("EXIT");
}
}
AppLogDebug("EXIT");
return pNewForm;
-}
+}
\ No newline at end of file
static const Tizen::Graphics::Rectangle RECT_GENRE_EDIT_ITEM_TITLE_NAME (144, 8, (300 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 66);
static const Tizen::Graphics::Rectangle RECT_GENRE_EDIT_ITEM_TIME ((444 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 8, 260, 66);
static const Tizen::Graphics::Rectangle RECT_GENRE_EDIT_ITEM_ARTIST_NAME (144, 66, (560 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 46);
+
#if 0
GenreContentListForm::GenreContentListForm(void)
: ContentListForm::ContentListForm()
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
}
-#endif
+#endif
\ No newline at end of file
__pProgressBar->SetEnabled(false);\r
__pProgressBar->SetValue(__pPresentationModel->GetPlayPosition());\r
\r
-\r
Bitmap* pBackNormalBitmap = ResourceManager::GetBitmapN(L"00_icon_Back_02_web.png");\r
Bitmap* pBackPressBitmap = ResourceManager::GetBitmapN(L"00_icon_Back_02_press_web.png");\r
\r
delete pMoreContextPressBitmap;\r
\r
Invalidate(true);\r
+\r
AppLogDebug("EXIT");\r
return E_SUCCESS;\r
}\r
Rectangle clientBounds = GetClientAreaBounds();
if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE
- || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+ || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
{
if (__pVolumePanel != null)
{
PlaylistContentListForm::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
-
RelativeLayout layout;
layout.Construct();
parent.AddControl(*pTableViewItem);
CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
+
AppLogDebug("EXIT");
return E_SUCCESS;
}
PlaylistContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
AppLogDebug("ENTER");
- Panel* pItemPanel = null;
+ Panel* pItemPanel = null;
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL));
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
if (__pPresentationModel->GetAllPlayListCount() != INIT_VALUE)
{
- //__pSelectAllCheckedButton->SetEnabled(true);
+ // Empty statement
}
else
{
SetNoContentSongs(true);
+ SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
- SetUnCheckedIconAllCheckButton();
-
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- if (__checkedItemCount == __pPresentationModel->GetAllPlayListCount())
- {
- SetCheckedIconAllCheckButton();
- }
- else
- {
- SetUnCheckedIconAllCheckButton();
- }
-
SetCheckedCountBalloonPopup(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
void
-PlaylistListEditorPanel::SetCheckedIconAllCheckButton(void)
-{
- AppLogDebug("ENTER");
- Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, true);
- pHeader->Invalidate(true);
- AppLogDebug("EXIT");
-}
-
-void
-PlaylistListEditorPanel::SetUnCheckedIconAllCheckButton(void)
+PlaylistListEditorPanel::SetDisableIconAllCheckButton(void)
{
AppLogDebug("ENTER");
Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
- CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, false);
+ pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
pHeader->Invalidate(true);
AppLogDebug("EXIT");
}
//__XML_IDC_
//IMAGE
-const wchar_t* IDB_STORAGE_SDCARD = L"T02_folder_storage_icon_memory.png";
-const wchar_t* IDB_STORAGE_PHONE = L"T02_folder_storage_icon_inner_memory.png";
+const wchar_t* IDB_STORAGE_SDCARD = L"T02_folder_storage_icon_memory.png";
+const wchar_t* IDB_STORAGE_PHONE = L"T02_folder_storage_icon_inner_memory.png";
const wchar_t* IDB_STORAGE_EXTERNAL = L"T02_folder_storage_icon_memory.png";
const wchar_t* IDB_NO_CONTENTS = L"T02_nocomposers.png";
-//
+
//COLOR
const unsigned int COLOR_HEADER_TITLE_TEXT = Color32<59, 115, 182>::Value;
const unsigned int COLOR_HEADER_DESCRIPTION_TEXT = Color32<155, 154, 150>::Value;
const wchar_t* IDB_MUSIC_LINE_CONTENT_FORM = L"T02_music_line.png";
//COMMON
-const Tizen::Base::String IDS_SEPARATOR_SLASH = L"/";
+const Tizen::Base::String IDS_SEPARATOR_SLASH = L"/";
const Tizen::Base::String IDS_STORAGE_PHONE_PATH = Environment::GetMediaPath() + L"Sounds/";
const Tizen::Base::String IDS_STORAGE_SDCARD_PATH = Environment::GetExternalStoragePath();
-const Tizen::Base::String IDS_STORAGE_EXTERNAL_PATH = Environment::GetMediaPath();
+const Tizen::Base::String IDS_STORAGE_EXTERNAL_PATH = Environment::GetMediaPath();
\ No newline at end of file
layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
+ TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
UserPlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo)
{
AppLogDebug("ENTER");
- Panel* pTableViewItem = new (std::nothrow) Panel();
+ Panel* pTableViewItem = new (std::nothrow) Panel();
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL)))
parent.AddControl(*pTableViewItem);
CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
+
AppLogDebug("EXIT");
return E_SUCCESS;
}
UserPlaylistContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
AppLogDebug("ENTER");
- Panel* pItemPanel = null;
+ Panel* pItemPanel = null;
if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL));
delete __pThumbnail;
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
-}
+ AppLogDebug("EXIT");
+}
\ No newline at end of file
static const Tizen::Graphics::Rectangle RECT_YEAR_EDIT_ITEM_TITLE_NAME (144, 8, (300 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 66);
static const Tizen::Graphics::Rectangle RECT_YEAR_EDIT_ITEM_TIME ((444 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 8, 260, 66);
static const Tizen::Graphics::Rectangle RECT_YEAR_EDIT_ITEM_ARTIST_NAME (144, 66, (560 - X_OFFSET_EDIT_STYLE_TABLE_VIEW), 46);
+
#if 0
YearContentListForm::YearContentListForm(void)
: ContentListForm::ContentListForm()
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
}
-#endif
+#endif
\ No newline at end of file