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 MpUserPlaylistContentListForm.cpp
19 * @brief This is the implementation file for UserPlaylistContentListForm class.
22 #include "MpAllListPresentationModel.h"
23 #include "MpPlaylistListPresentationModel.h"
24 #include "MpPlaylistPickerPopup.h"
25 #include "MpSharePopup.h"
26 #include "MpThumbnailInfo.h"
27 #include "MpUserPlaylistContentListForm.h"
29 using namespace Tizen::App;
30 using namespace Tizen::Base;
31 using namespace Tizen::Base::Collection;
32 using namespace Tizen::Content;
33 using namespace Tizen::Graphics;
34 using namespace Tizen::Io;
35 using namespace Tizen::Ui;
36 using namespace Tizen::Ui::Controls;
37 using namespace Tizen::Ui::Scenes;
39 UserPlaylistContentListForm::UserPlaylistContentListForm(void)
40 : ContentListForm::ContentListForm()
41 , ThumbnailBase::ThumbnailBase()
42 , __pContentListTableView(null)
44 , __pPresentationModel(null)
45 , __checkedItemCount(0)
46 , __activatedStateContextItem(-1)
52 UserPlaylistContentListForm::~UserPlaylistContentListForm(void)
59 UserPlaylistContentListForm::Initialize(void)
62 if (IsFailed(Form::Construct(IDL_CONTENT_LIST_FORM)))
64 AppLogDebug("Construct(IDL_CONTENT_LIST_FORM) failed(%s)", GetErrorMessage(GetLastResult()));
73 UserPlaylistContentListForm::Construct(void)
76 __pContentListTableView = static_cast<TableView*>(GetControl(IDC_TABLEVIEW_CONTENT_LIST));
77 __pContentListTableView->AddTableViewItemEventListener(*this);
78 __pContentListTableView->SetItemProvider(this);
80 SetContentList(__pContentListTableView);
82 return ContentListForm::Construct();
86 UserPlaylistContentListForm::OnInitializing(void)
89 __fontSizeValue = CommonUtil::GetFontSizeValue();
90 __itemHeight = CommonUtil::GetItemHeight(__fontSizeValue);
92 return ThumbnailBase::Construct();
96 UserPlaylistContentListForm::OnTerminating(void)
99 ThumbnailBase::Stop();
100 __pPresentationModel = null;
102 return ContentListForm::OnTerminating();
106 UserPlaylistContentListForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
108 AppLogDebug("ENTER");
109 SceneManager* pSceneManager = SceneManager::GetInstance();
110 AppAssert(pSceneManager);
114 case IDA_HEADER_BUTTON_SELECTE_ALL:
116 bool isChecked = true;
117 if (__checkedItemCount == __pContentListTableView->GetItemCount())
121 SetItemCheckedAll(isChecked);
125 case IDA_FOOTER_BUTTON_SHARE:
127 LanucherPicker(PICKER_TYPE_SHARE_PICKER);
131 case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
133 LanucherPicker(PICKER_TYPE_PLAY_LIST_PICKER);
137 case IDA_CONTEXT_MENU_ITEM_SEARCH:
139 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH, SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY));
143 case IDA_CONTEXT_MENU_ITEM_EDIT:
145 ToggleScreenState(SCREEN_STATE_EDITOR);
149 case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
151 ToggleScreenState(SCREEN_STATE_SHARE_VIA);
155 case IDA_FOOTER_BUTTON_MORE:
157 CreateOptionMenuN(source);
158 if (IsEmptyContentList())
160 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_ADD);
164 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_ADD | CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_EDIT);
169 case IDA_FOOTER_BUTTON_DELETE:
171 SetCommonPopup(CommonUtil::CreateContentDeletePopup(*this, IDA_COMMON_POPUP_DELETE, IDA_COMMON_POPUP_CANCEL),this);
175 case IDA_COMMON_POPUP_DELETE:
177 int totalCount = __pPresentationModel->GetContentCount();
178 for (int iCount = 0; iCount < totalCount; iCount++)
180 if (__pContentListTableView->IsItemChecked(iCount) == true)
182 ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
183 __pContentListTableView->SetItemChecked(iCount, false);
184 __checkedItemCount--;
186 if (pContentInfoStruct == null)
190 __pPresentationModel->DeleteContent(USER_CONTENT, *pContentInfoStruct);
192 delete pContentInfoStruct;
195 RemoveCheckedTableviewItem(false);
196 __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
200 if(__pPresentationModel->GetContentCount() == 0)
202 ToggleScreenState(SCREEN_STATE_NORMAL);
207 case IDA_COMMON_POPUP_CANCEL:
213 case IDA_CONTEXT_MENU_ITEM_STYLE_ADD:
215 AllListPresentationModel* pPresentationModel = AllListPresentationModel::GetInstance();
216 pPresentationModel->UpdateContentList();
217 if (pPresentationModel->GetTotalCount() == 0)
219 MessageBox messageBox;
220 messageBox.Construct(L"", ResourceManager::GetString(L"IDS_MUSIC_HEADER_NO_SONGS"), MSGBOX_STYLE_NONE, 500);
223 messageBox.ShowAndWait(modalResult);
227 CommonUtil::SetAddtoPlaylistState(true);
228 CommonUtil::SetAddtoPlaylistName(__headerTitle);
229 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALL_CONTENT_PICKER));
237 TryRemoveCommonPopup(actionId);
238 TryRemoveContextMenu(actionId);
243 UserPlaylistContentListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
244 const Tizen::Ui::Scenes::SceneId& currentSceneId,
245 Tizen::Base::Collection::IList* pArgs)
247 AppLogDebug("ENTER");
248 if (pArgs != null && previousSceneId.Equals(IDSCN_PLAYLIST_LIST, true) == true)
250 __prevSceneId.Clear();
251 __headerTitle.Clear();
252 __prevSceneId.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME)));
253 __headerTitle.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME)));
255 __pPresentationModel = PlaylistListPresentationModel::GetInstance();
256 __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
262 pArgs->RemoveAll(true);
265 else if (pArgs != null && previousSceneId.Equals(IDSCN_PLAYLIST_CREATOR, false))
267 SetItemCheckedAll(false);
268 pArgs->RemoveAll(true);
271 else if (!(__headerTitle.Equals(L"", false)))
273 __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
275 if (!previousSceneId.Equals(IDSCN_PLAYER,true))
284 UserPlaylistContentListForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
285 const Tizen::Ui::Scenes::SceneId& nextSceneId)
287 AppLogDebug("ENTER");
288 CancelAllThumbnailRequest();
293 UserPlaylistContentListForm::GetItemCount(void)
295 AppLogDebug("ENTER");
296 if (__pPresentationModel == null)
302 return __pPresentationModel->GetContentCount();
305 Tizen::Ui::Controls::TableViewItem*
306 UserPlaylistContentListForm::CreateItem(const int itemIndex, int itemWidth)
308 AppLogDebug("ENTER");
309 RelativeLayout layout;
312 TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
313 if (GetScreenState() != SCREEN_STATE_NORMAL)
315 tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
318 TableViewItem* pItem = new (std::nothrow) TableViewItem();
319 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
321 result r = pItem->Construct(layout, Dimension(itemWidth, __itemHeight), tableViewAnnexStyle);
322 TryCatch(r == E_SUCCESS, delete pItem, "pItem->Construct(%s)", GetErrorMessage(r));
323 TryCatch(pContentInfo != null, delete pItem, "pContentInfo is null", GetErrorMessage(GetLastResult()));
325 r = CreateTableViewItem(*pItem, *pContentInfo);
326 TryCatch(r == E_SUCCESS, delete pItem, "CreateTableViewItem failed(%s)", GetErrorMessage(r));
328 RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
335 AppLogDebug("EXIT(%ls)", GetErrorMessage(GetLastResult()));
341 UserPlaylistContentListForm::OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableView,
343 Tizen::Ui::Controls::TableViewItem* pItem,
344 Tizen::Ui::Controls::TableViewItemStatus status)
346 AppLogDebug("ENTER");
347 if (GetScreenState() != SCREEN_STATE_NORMAL)
349 SetItemCheckedStateChanged(status);
354 if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
356 SceneManager* pSceneManager = SceneManager::GetInstance();
357 AppAssert(pSceneManager);
359 ArrayList* pSceneArg = MakePlayerSceneParam(itemIndex);
360 if (pSceneArg != null)
362 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pSceneArg);
369 UserPlaylistContentListForm::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView, int itemIndex,
370 Tizen::Ui::Controls::TableViewContextItem* pContextItem,
373 AppLogDebug("ENTER");
376 __activatedStateContextItem = itemIndex;
382 UserPlaylistContentListForm::GetDefaultItemHeight(void)
384 AppLogDebug("ENTER");
390 UserPlaylistContentListForm::DeleteItem(const int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
392 AppLogDebug("ENTER");
398 UserPlaylistContentListForm::OnTableViewItemReordered(Tizen::Ui::Controls::TableView& tableView,
402 AppLogDebug("ENTER");
407 UserPlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo)
409 AppLogDebug("ENTER");
410 Panel* pTableViewItem = new (std::nothrow) Panel();
412 if (GetScreenState() != SCREEN_STATE_NORMAL)
414 if (__fontSizeValue.Equals(STRING_FONT_SIZE_GIANT, false))
416 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_GIANT)))
418 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
422 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_HUGE, false))
424 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_HUGE)))
426 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
430 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_LARGE, false))
432 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_LARGE)))
434 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
438 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_SMALL, false))
440 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_FONT_SIZE_SMALL)))
442 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
448 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL_DEFAULT)))
450 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
457 if (__fontSizeValue.Equals(STRING_FONT_SIZE_GIANT, false))
459 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_GIANT)))
461 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
465 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_HUGE, false))
467 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_HUGE)))
469 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
473 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_LARGE, false))
475 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_LARGE)))
477 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
481 else if (__fontSizeValue.Equals(STRING_FONT_SIZE_SMALL, false))
483 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_FONT_SIZE_SMALL)))
485 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
491 if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL_DEFAULT)))
493 AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
499 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME))->SetText(contentInfo.TitleName);
500 static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ARTIST_NAME))->SetText(contentInfo.ArtistName);
501 // static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_THUMBNAIL))->SetBackgroundBitmap(*GetDefaultThumbnail());
503 parent.AddControl(pTableViewItem);
504 CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
511 UserPlaylistContentListForm::SetHeader(void)
513 AppLogDebug("ENTER");
514 CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
520 UserPlaylistContentListForm::IsEmptyContentList(void)
522 AppLogDebug("ENTER");
523 if (__pPresentationModel->GetContentCount() != INIT_VALUE)
531 Tizen::Base::Collection::ArrayList*
532 UserPlaylistContentListForm::MakePlayerSceneParam(int startIndex)
534 AppLogDebug("ENTER");
535 ArrayList* pArgs = new (std::nothrow) ArrayList();
536 result r = pArgs->Construct();
539 AppLogDebug("pArgs->Construct failed(%s)", GetErrorMessage(r));
543 pArgs->Add(*(new (std::nothrow) String(MUSIC)));
544 pArgs->Add(*(new (std::nothrow) Integer(startIndex)));
545 pArgs->Add(*(__pPresentationModel->GetContentPathListN(USER_CONTENT)));
552 UserPlaylistContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
554 AppLogDebug("ENTER");
555 __pThumbnail = pThumbnailInfo->GetBitmapN();
556 Object* pParam = pThumbnailInfo->GetUserParamN();
559 __pContentListTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
563 delete pThumbnailInfo;
568 UserPlaylistContentListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
570 AppLogDebug("ENTER");
571 ContentListForm::OnUserEventReceivedN(requestId, pArgs);
572 if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
574 __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
575 __pContentListTableView->UpdateTableView();
581 UserPlaylistContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
583 AppLogDebug("ENTER");
587 AppLogDebug("pItem is null");
593 Label* pThumbnailLabel = static_cast<Label*>(pItem->GetControl(IDC_CONTENTS_THUMBNAIL, true));
594 if (__pThumbnail == null || pThumbnailLabel == null)
596 AppLogDebug("__pThumbnail or pThumbnailLabel is null");
602 pThumbnailLabel->SetBackgroundBitmap(*__pThumbnail);
605 pThumbnailLabel->Invalidate(true);
610 UserPlaylistContentListForm::GetCheckedItemCount(void)
612 AppLogDebug("ENTER");
614 return __checkedItemCount;
618 UserPlaylistContentListForm::UpdateTableView(void)
620 AppLogDebug("ENTER");
621 __pContentListTableView->UpdateTableView();
626 UserPlaylistContentListForm::UpdateContentList(void)
628 AppLogDebug("ENTER");
629 __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
631 if(__pPresentationModel->GetContentCount() == 0)
633 // __headerTitle.Clear();
634 CommonUtil::SetAddtoPlaylistState(false);
635 // CommonUtil::SetAddtoPlaylistName(__headerTitle);
636 ToggleScreenState(SCREEN_STATE_NORMAL);
647 UserPlaylistContentListForm::SetItemCheckedAll(bool isChecked)
649 AppLogDebug("ENTER");
650 if (isChecked == true)
652 __checkedItemCount = __pContentListTableView->GetItemCount();
656 __checkedItemCount = INIT_VALUE;
658 CommonUtil::SetItemCheckedAll(isChecked, *__pContentListTableView);
659 if (GetFooter() != null)
661 CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
664 SetCheckedCountBallonTooltip(GetCheckedItemCount());
669 UserPlaylistContentListForm::RemoveCheckedTableviewItem(bool itemRemove)
671 AppLogDebug("ENTER");
674 int totalCount = __pContentListTableView->GetItemCount();
675 for (int iCount = 0; iCount < totalCount; iCount++)
677 if (__pContentListTableView->IsItemChecked(iCount) == true)
679 __pContentListTableView->SetItemChecked(iCount, false);
680 __checkedItemCount--;
681 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(iCount);
682 if (pContentInfo != null)
684 RemoveContentAt(pContentInfo->contentId);
692 SetItemCheckedAll(false);
699 UserPlaylistContentListForm::SetItemCheckedStateChanged(Tizen::Ui::Controls::TableViewItemStatus status)
701 AppLogDebug("ENTER");
702 if (status == TABLE_VIEW_ITEM_STATUS_UNCHECKED)
704 __checkedItemCount--;
705 if (__checkedItemCount == INIT_VALUE)
707 if (GetFooter() != null)
709 CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
713 else if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
715 if (__checkedItemCount == INIT_VALUE)
717 if (GetFooter() != null)
719 CommonUtil::SetFooterItemEnabled(*GetFooter(), true);
723 __checkedItemCount++;
726 SetCheckedCountBallonTooltip(GetCheckedItemCount());
730 Tizen::Base::Collection::IList*
731 UserPlaylistContentListForm::GetPickerArgumentListN(PickerType pickerType, PickerArgumentType argumentType)
733 AppLogDebug("ENTER");
734 Tizen::Base::Collection::ArrayList* pContentFilePathList = new (std::nothrow) ArrayList(SingleObjectDeleter);
735 if (IsFailed(pContentFilePathList->Construct()))
737 AppLogDebug("pContentList->Construct failed(%s)", GetErrorMessage(GetLastResult()));
738 delete pContentFilePathList;
742 if (argumentType == PICKER_ARGUMENT_TYPE_ACTIVATED_STATE_CONTEXT_ITEM)
744 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(__activatedStateContextItem);
745 if (pContentInfo == null)
747 delete pContentFilePathList;
748 AppLogDebug("GetContentInfoN(%d) is null", __activatedStateContextItem);
752 pContentFilePathList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
755 else if (argumentType == PICKER_ARGUMENT_TYPE_CHECKED_ITEM_ALL)
757 int totalCount = __pContentListTableView->GetItemCount();
758 for (int iCount = 0; iCount < totalCount; iCount++)
760 if (__pContentListTableView->IsItemChecked(iCount) == true)
762 ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(iCount);
763 if (pContentInfo == null)
765 AppLogDebug("GetContentInfoN(%d) is null", iCount);
766 delete pContentFilePathList;
770 if (pickerType == PICKER_TYPE_PLAY_LIST_PICKER)
772 pContentFilePathList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
774 else if (pickerType == PICKER_TYPE_SHARE_PICKER)
776 pContentFilePathList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
783 return pContentFilePathList;
787 UserPlaylistContentListForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
789 AppLogDebug("ENTER");
790 ArrayList* pList = null;
791 if (GetScreenState() != SCREEN_STATE_NORMAL)
793 ToggleScreenState(SCREEN_STATE_NORMAL);
798 SceneManager* pSceneManager = SceneManager::GetInstance();
799 AppAssert(pSceneManager);
800 pList = new (std::nothrow) ArrayList();
802 pSceneManager->GoBackward(BackwardSceneTransition(), pList);
807 UserPlaylistContentListForm::OnFormMenuRequested(Tizen::Ui::Controls::Form& source)
809 if (GetScreenState() == SCREEN_STATE_NORMAL)
811 CreateOptionMenuN(source);
812 if (IsEmptyContentList())
814 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_ADD);
818 SetOptionMenuItem(CONTEXT_MENU_ITEM_STYLE_ADD | CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_EDIT);
824 UserPlaylistContentListForm::OnFontSizeChanged(void)
826 __fontSizeValue = CommonUtil::GetFontSizeValue();
827 __itemHeight = CommonUtil::GetItemHeight(__fontSizeValue);
828 __pContentListTableView->UpdateTableView();