virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+protected:
+ virtual int GetCheckedItemCount(void);
+
private:
result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
void UpdateContentList(void);
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+protected:
+ virtual int GetCheckedItemCount(void);
+
private:
result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
void SetEditHeaderStyle(void);
#include "MpThumbnailBase.h"
class ArtistListPresentationModel;
-class PlayListPickerPopup;
-class SharePopup;
class ArtistContentListForm
: public ContentListForm
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+protected:
+ virtual int GetCheckedItemCount(void);
+
private:
result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
void UpdateContentList(void);
result AddParentHeaderActionEventListener(void);\r
result RemoveParentHeaderActionEventListener(void);\r
\r
- result SetShowStateBalloonPopup(bool isShow);\r
- result SetCheckedCountBalloonPopup(int itemCount);\r
+ result SetShowStateBalloonTooltip(bool isShow);\r
+ void SetCheckedCountBallonTooltip(unsigned int checkedItemCount);\r
void SetNoContentSongs(bool isNoContents);\r
void SetContentEditHeader(void);\r
\r
+ virtual int GetCheckedItemCount(void) = 0;\r
+\r
private:\r
result Construct(void);\r
\r
private:\r
- Tizen::Ui::Controls::Label* __pItemCheckedCountBallooPopup;\r
+ Tizen::Ui::Controls::Label* __pBallonTooltip;\r
};\r
\r
#endif // _MP_CONTENT_EDIT_PANEL_H_
\ No newline at end of file
result TryRemoveContextMenu(int actionId);
result TryRemoveCommonPopup(int actionId);
- void SetTextBallonTooltip(Tizen::Base::String tooltipText);
+ void SetCheckedCountBallonTooltip(unsigned int checkedItemCount);
void SetCommonPopup(Tizen::Ui::Controls::Popup* commonUtilPopup);
void SetContentList(Tizen::Ui::Container* pTableview);
void UpdateScreenState(void);
virtual void OnUpdateContentList(void);
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+protected:
+ virtual int GetCheckedItemCount(void);
+
private:
result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
\r
private:\r
+ result SetContentInfo(int currentContentIndex);\r
void SetPauseButtonImage(void);\r
void SetPlayButtonImage(void);\r
\r
Tizen::Base::String GetOperationId(void);
- virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData);
+ virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData,
+ const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData);
virtual void OnSettingChanged(Tizen::Base::String& key);
void UpdateAnimationAlbumArt(AlbumArtImage position);
result InitializeVolumeBar(void);
+ void SetPlayerScreenState(unsigned int playerScreenState);
+ unsigned int GetPlayerScreenState(void);
+
+ result CreateContextMenuN(const Tizen::Ui::Control& source);
+ result SetContextMenuItem(unsigned int contextMenuItemStyle, Tizen::Graphics::Point anchorPosition = Tizen::Graphics::Point(-1, -1));
+ result TryRemoveContextMenu(int actionId);
+ void RemoveContextMenu(void);
+
+ result LanucherPicker(PickerType pickerType);
+ Tizen::Base::Collection::IList* GetPickerArgumentListN(PickerType pickerType);
+
+ result ShowSharePicker(Tizen::Base::Collection::IList* pIList);
+ result ShowPlayListPicker(Tizen::Base::Collection::IList* pIList);
+ result ShowSetAsPicker(Tizen::Base::Collection::IList* pIList);
+
+ void RemoveSharePicker(void);
+ void RemovePlayListPicker(void);
+ void RemoveSetAsPicker(void);
+
void PlayAnimation(void);
void StopAnimation(void);
Tizen::Ui::Controls::Slider* __pVolumeSlider;
// Tizen::Ui::Controls::TableView* __pContentsListView;
- Tizen::Ui::Controls::ContextMenu* __pContextMenuIconText;
+// Tizen::Ui::Controls::ContextMenu* __pContextMenuIconText;
Tizen::Graphics::Bitmap* __pThumbnail;
- PlayListPickerPopup* __pPlayListPickerPopup;
+ PlayListPickerPopup* __pPlayListPicker;
+ SharePopup* __pSharePicker;
+ SetAsPopup* __pSetAsPicker;
SoundPathPopup* __pSoundPathPopup;
- SharePopup* __pSharePopup;
- SetAsPopup* __pSetAsPopup;
+
bool __isLongPressed;
Tizen::Ui::FlickDirection flickDirection;
int __transactionID;
+ unsigned int __playerScreenState;
bool __isAnimationPerformed;
+
Tizen::Base::Runtime::Timer* __pAnimationFinishedTimer;
Tizen::Base::Runtime::Timer* __pContentPlayTimer;
Tizen::Ui::Scenes::SceneId __pPreviousSceneId;
Tizen::Base::String* __pPath;
- Tizen::Ui::Controls::ContextMenu* __pMoreContextMenu;
+ Tizen::Ui::Controls::ContextMenu* __pContextMenu;
};
#endif // _MP_MUSIC_PLAYER_FORM_H_
\ No newline at end of file
virtual void OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo);
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+protected:
+ virtual int GetCheckedItemCount(void);
+
private:
void UpdateContentList(void);
void SetEditHeaderStyle(void);
Tizen::Base::Collection::IList* __pSearchList;
};
-#endif // _MP_SEARCH_PRESENTATION_MODEL_H_
+#endif // _MP_SEARCH_PRESENTATION_MODEL_H_
\ No newline at end of file
public:
SetAsPopup(void);
virtual ~SetAsPopup(void);
- result Initialize(void);
+ result Initialize(Tizen::Ui::Control* pControl);
void SetCurrentContentPath(Tizen::Base::String* contentPath);
Tizen::Ui::Controls::TableView* __pSetAsItemTableView;
Tizen::Ui::Controls::Button* __pCancelButton;
Tizen::Base::String* __pCurrentContentPath;
+ Tizen::Ui::Control* __pControl;
};
#endif // _MP_SET_AS_POPUP_H_
\ No newline at end of file
CONTEXT_MENU_ITEM_STYLE_CREATE_PLAYLIST= 0x00000400,
CONTEXT_MENU_ITEM_STYLE_SHARE_VIA = 0x00001000,
CONTEXT_MENU_ITEM_STYLE_EDIT = 0x00002000,
- CONTEXT_MENU_ITEM_STYLE_ADD = 0x00004000
+ CONTEXT_MENU_ITEM_STYLE_ADD = 0x00004000,
+ CONTEXT_MENU_ITEM_STYLE_SET_AS = 0x00008000,
+ CONTEXT_MENU_ITEM_STYLE_DETAILS = 0x00010000,
+ CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST = 0x00020000,
+ CONTEXT_MENU_ITEM_STYLE_SOUND_PATH = 0x00040000,
+ CONTEXT_MENU_ITEM_STYLE_MAX = 0x00080000
};
//__CONTEXT_MENU_ITEM_STYLE-->
PICKER_TYPE_BASE = 0,
PICKER_TYPE_PLAY_LIST_PICKER = PICKER_TYPE_BASE,
PICKER_TYPE_SHARE_PICKER,
+ PICKER_TYPE_SET_AS_PICKER,
PICKER_TYPE_MAX
};
//__PICKER_ARGUMENT_TYPE-->
IDA_CONTEXT_MENU_ITEM_EDIT,
IDA_CONTEXT_MENU_ITEM_GO_TO_LIBARY,
IDA_CONTEXT_MENU_ITEM_STYLE_ADD,
+ IDA_CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST,
+ IDA_CONTEXT_MENU_ITEM_STYLE_SET_AS,
+ IDA_CONTEXT_MENU_ITEM_STYLE_DETAILS,
+ IDA_CONTEXT_MENU_ITEM_STYLE_SOUND_PATH,
IDA_CONTEXT_MENU_ITEM_MAX
};
//__CONTEXT_MENU_ITEM_ACTION_ID-->
<layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="280" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280" x="500" y="102"/>\r
</Label>\r
<GroupedTableView id="IDC_GROUPEDTABLEVIEW_CONTENT_LIST" parent="IDL_CONTENT_LIST_ARTIST_FORM">\r
- <property backgroundColor="" backgroundColorOpacity="0" collapseByPinchEnabled="false" fastScrollIndex="" groupedLookEnabled="false" itemDivider="false" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
+ <property backgroundColor="" backgroundColorOpacity="0" collapseByPinchEnabled="false" fastScrollIndex="" groupedLookEnabled="false" itemDivider="true" itemDividerColor="#808080" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
<layout bottomRelation="IDC_LABEL_BALLOON_TOOLTIP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="963" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_ARTIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_ARTIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENT_LIST_ARTIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="0"/>\r
<layout bottomRelation="IDC_LABEL_BALLOON_TOOLTIP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="436" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_ARTIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_ARTIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENT_LIST_ARTIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="0"/>\r
</GroupedTableView>\r
This XML file was automatically generated by UiBuilder - do not modify by hand.\r
-->\r
<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">\r
-<ScenePanel Bversion="2.0.0.201302250944" Dversion="20120315">\r
+<ScenePanel Bversion="2.0.0.201303041025" Dversion="20120315">\r
<Panel id="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL">\r
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
<layout height="144" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
</Panel>\r
<Label id="IDC_LABEL_THUMBNAIL_INNER_STROKE" parent="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL">\r
<property backgroundBitmapPath="" backgroundColor="#000000" backgroundColorOpacity="10" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="28" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="28"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="28" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="28"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="16" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="16"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="16" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="16"/>\r
</Label>\r
<Label id="IDC_LABEL_CONTENT_TITLE_NAME" parent="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL">\r
<property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
- <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="38" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="16" marginRight="24" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="552" x="144" y="102"/>\r
- <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="38" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="16" marginRight="24" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1112" x="144" y="102"/>\r
+ <layout bottomRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="38" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="14" marginLeft="16" marginRight="24" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="552" x="144" y="92"/>\r
+ <layout bottomRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="38" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="14" marginLeft="16" marginRight="24" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1112" x="144" y="92"/>\r
</Label>\r
<Label id="IDC_LABEL_CONTENT_THUMBNAIL" parent="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL">\r
<property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="2" marginRight="0" marginTop="2" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_THUMBNAIL_INNER_STROKE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="30"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="2" marginRight="0" marginTop="2" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_THUMBNAIL_INNER_STROKE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="30"/>\r
- </Label>\r
- <Label id="IDC_LABEL_CONTENT_TITLE_LINE" parent="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL">\r
- <property backgroundBitmapPath="" backgroundColor="#808080" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
- <layout bottomRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="4" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="4" marginRight="24" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="672" x="24" y="140"/>\r
- <layout bottomRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="4" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="4" marginRight="24" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_ARTIST_GROUPITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1232" x="24" y="140"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="2" marginRight="0" marginTop="2" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_LABEL_THUMBNAIL_INNER_STROKE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="18"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="2" marginRight="0" marginTop="2" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_LABEL_THUMBNAIL_INNER_STROKE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="18"/>\r
</Label>\r
</ScenePanel>\r
}
__pPresentationModel->RefreshContentList(__currentAlbumIndex);
}
+
__checkedItemCount = INIT_VALUE;
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
AppLogDebug("EXIT");
}
}
CommonUtil::SetItemCheckedAll(isChecked, *__pContentListTableView);
CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
__checkedItemCount++;
}
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
{
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
CommonUtil::SetFooterItemEnabled(*pFooter, false);
UpdateContentList();
- SetCheckedCountBalloonPopup(INIT_VALUE);
+ SetCheckedCountBallonTooltip(INIT_VALUE);
if (__pPresentationModel->GetAllAlbumCount() != INIT_VALUE)
{
pFooter->RemoveActionEventListener(*this);
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetAllAlbumCount();
for (int iCount = 0; iCount < totalCount; iCount++)
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
if (pIsInitialize->Equals(true))
{
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetAllAlbumCount();
for (int iCount = 0; iCount < totalCount; iCount++)
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
+}
+
+int
+AlbumListEditorPanel::GetCheckedItemCount(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __checkedItemCount;
}
\ No newline at end of file
{
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
SetAddHeaderStyle();
UpdateContentList();
- SetCheckedCountBalloonPopup(INIT_VALUE);
+ SetCheckedCountBallonTooltip(INIT_VALUE);
if (__pPresentationModel->GetTotalCount() != INIT_VALUE)
{
{
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
CommonUtil::SetFooterItemEnabled(*pFooter, false);
UpdateContentList();
- SetCheckedCountBalloonPopup(INIT_VALUE);
+ SetCheckedCountBallonTooltip(INIT_VALUE);
if (__pPresentationModel->GetTotalCount() != INIT_VALUE)
{
pFooter->RemoveActionEventListener(*this);
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetTotalCount();
for (int iCount = 0; iCount < totalCount; iCount++)
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
if (pIsInitialize->Equals(true))
{
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetTotalCount();
for (int iCount = 0; iCount < totalCount; iCount++)
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
+}
+
+int
+AllListEditorPanel::GetCheckedItemCount(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __checkedItemCount;
}
\ No newline at end of file
}
SetItemCheckedAt(groupIndex, ischeck);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
tableView.Invalidate(true);
CommonUtil::SetFooterItemEnabled(*GetFooter(), ischeck);
}
CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
__pContentGroupedTableView->Invalidate(true);
AppLogDebug("EXIT");
}
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
}
}
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
using namespace Tizen::Ui::Scenes;
ArtistListEditorPanel::ArtistListEditorPanel(void)
- : ThumbnailBase::ThumbnailBase()
+ : ContentEditPanel::ContentEditPanel()
+ , ThumbnailBase::ThumbnailBase()
, __checkedItemCount(0)
, __pThumbnail(null)
, __pPlayListPickerPopup(null)
{
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
SetUnCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
SetCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
SetNoContentSongs(true);
}
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
SetUnCheckedIconAllCheckButton();
CommonUtil::SetFooterItemEnabled(*pFooter, false);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
UpdateContentList();
- SetCheckedCountBalloonPopup(INIT_VALUE);
+ SetCheckedCountBallonTooltip(INIT_VALUE);
if (__pPresentationModel->GetArtistListCount() != INIT_VALUE)
{
pFooter->RemoveActionEventListener(*this);
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetArtistListCount();
for (int iCount = 0; iCount < totalCount; iCount++)
{
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
+}
+
+int
+ArtistListEditorPanel::GetCheckedItemCount(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __checkedItemCount;
}
\ No newline at end of file
StrSelectStr.Format(STRING_LENGTH, ResSelect.GetPointer(), itemCount);
}
- else
- {
- StrSelectStr.Format(STRING_LENGTH,L"Select <Noun>s");//NEED STRING
- }
+// else
+// {
+// StrSelectStr.Format(STRING_LENGTH,L"Select <Noun>s");//NEED STRING
+// }
AppLogDebug("EXIT");
return StrSelectStr;
}
pContextMenu->SetName(L"IDC_CONTEXT_MENU");
pContextMenu->AddActionEventListener(listener);
pContextMenu->SetAnchorPosition(itemPoint);
+ pContextMenu->SetMaxVisibleItemsCount(5);
pContextMenu->SetShowState(true);
AppLogDebug("EXIT");
// IDA_CONTEXT_MENU_ITEM_STYLE_ADD
contextMenu.AddItem(L"Add", IDA_CONTEXT_MENU_ITEM_STYLE_ADD);//NEED STRING
}
+
+ if (CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST
+ contextMenu.AddItem(L"Add To PlayList", IDA_CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST);//NEED STRING
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_SET_AS & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_STYLE_SET_AS
+ contextMenu.AddItem(L"Set as", IDA_CONTEXT_MENU_ITEM_STYLE_SET_AS);//NEED STRING
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_DETAILS & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_STYLE_DETAILS
+ contextMenu.AddItem(L"Details", IDA_CONTEXT_MENU_ITEM_STYLE_DETAILS);//NEED STRING
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_SOUND_PATH & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_STYLE_SOUND_PATH
+ contextMenu.AddItem(L"Sound Path", IDA_CONTEXT_MENU_ITEM_STYLE_SOUND_PATH);//NEED STRING
+ }
AppLogDebug("EXIT");
}
\r
ContentEditPanel::ContentEditPanel(void)\r
: ContentPanel::ContentPanel()\r
- , __pItemCheckedCountBallooPopup(null)\r
+ , __pBallonTooltip(null)\r
{\r
AppLogDebug("ENTER");\r
AppLogDebug("EXIT");\r
__pContentTableView = static_cast<TableView*>(GetControl(IDC_CONTENTS_EDIT_TABLEVIEW));\r
__pContentTableView->SetItemProvider(this);\r
__pContentTableView->AddTableViewItemEventListener(*this);\r
- __pItemCheckedCountBallooPopup = static_cast<Label*>(GetControl(IDC_ITEM_SELECTED_COUNT_LABEL));\r
+ __pBallonTooltip = static_cast<Label*>(GetControl(IDC_ITEM_SELECTED_COUNT_LABEL));\r
__pNoContentLabel = static_cast<Label*>(GetControl(IDC_NO_CONTENTS_LABEL));\r
\r
AppLogDebug("EXIT");\r
}\r
\r
result\r
-ContentEditPanel::SetShowStateBalloonPopup(bool isShow)\r
+ContentEditPanel::SetShowStateBalloonTooltip(bool isShow)\r
{\r
AppLogDebug("ENTER");\r
int balloonTooltipHeight = INIT_VALUE;\r
- if (isShow == true)\r
+ if (isShow == true && GetCheckedItemCount() != INIT_VALUE)\r
{\r
balloonTooltipHeight = H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP;\r
}\r
+ else\r
+ {\r
+ isShow = false;\r
+ }\r
+\r
AppLogDebug("EXIT");\r
- return CommonUtil::SetShowStateVariableHeightSizeControl(*__pItemCheckedCountBallooPopup, balloonTooltipHeight, isShow);\r
+ return CommonUtil::SetShowStateVariableHeightSizeControl(*__pBallonTooltip, balloonTooltipHeight, isShow);\r
}\r
\r
-result\r
-ContentEditPanel::SetCheckedCountBalloonPopup(int itemCount)\r
+void\r
+ContentEditPanel::SetCheckedCountBallonTooltip(unsigned int checkedItemCount)\r
{\r
AppLogDebug("ENTER");\r
- CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemCheckedCountBallooPopup, itemCount);\r
+ if (checkedItemCount == INIT_VALUE)\r
+ {\r
+ SetShowStateBalloonTooltip(false);\r
+ return ;\r
+ }\r
+\r
+ __pBallonTooltip->SetText(CommonUtil::GetStringItemSelectd(checkedItemCount));\r
+ if (__pBallonTooltip->GetShowState() == false)\r
+ {\r
+ SetShowStateBalloonTooltip(true);\r
+ }\r
+ else\r
+ {\r
+ __pBallonTooltip->Invalidate(true);\r
+ }\r
AppLogDebug("EXIT");\r
- return CommonUtil::SetShowStateVariableHeightSizeControl(*__pItemCheckedCountBallooPopup, H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP, true);\r
}\r
\r
void\r
AppLogDebug("ENTER");\r
if (isNoContents == true)\r
{\r
- SetShowStateBalloonPopup(false);\r
+ SetShowStateBalloonTooltip(false);\r
SetShowStateContentTableview(false);\r
\r
SetShowStateNoContent(true);\r
{
AppLogDebug("ENTER");
int balloonTooltipHeight = INIT_VALUE;
- if (isShow == true)
+ if (isShow == true && GetCheckedItemCount() != INIT_VALUE)
{
balloonTooltipHeight = H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP;
}
+ else
+ {
+ isShow = false;
+ }
AppLogDebug("EXIT");
return CommonUtil::SetShowStateVariableHeightSizeControl(*__pBallonTooltip, balloonTooltipHeight, isShow);
}
void
-ContentListForm::SetTextBallonTooltip(Tizen::Base::String tooltipText)
+ContentListForm::SetCheckedCountBallonTooltip(unsigned int checkedItemCount)
{
AppLogDebug("ENTER");
- __pBallonTooltip->SetText(tooltipText);
- __pBallonTooltip->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- __pBallonTooltip->Invalidate(true);
+ if (checkedItemCount == INIT_VALUE)
+ {
+ SetShowStateBalloonTooltip(false);
+ return;
+ }
+
+ __pBallonTooltip->SetText(CommonUtil::GetStringItemSelectd(checkedItemCount));
+ if (__pBallonTooltip->GetShowState() == false)
+ {
+ SetShowStateBalloonTooltip(true);
+ }
+ else
+ {
+ __pBallonTooltip->Invalidate(true);
+ }
AppLogDebug("EXIT");
}
}
GetHeader()->Invalidate(true);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
}
}
CommonUtil::SetItemCheckedAll(isChecked, *__pContentListTableView);
CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
}
__checkedItemCount = INIT_VALUE;
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
AppLogDebug("EXIT");
}
__checkedItemCount++;
}
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
{
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
CommonUtil::SetFooterItemEnabled(*pFooter, false);
UpdateContentList();
- SetCheckedCountBalloonPopup(INIT_VALUE);
+ SetCheckedCountBallonTooltip(INIT_VALUE);
if (__pPresentationModel->GetAllFolderCount() != INIT_VALUE)
{
pFooter->RemoveActionEventListener(*this);
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetAllFolderCount();
for (int iCount = 0; iCount < totalCount; iCount++)
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
if (pIsInitialize->Equals(true))
{
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetAllFolderCount();
for (int iCount = 0; iCount < totalCount; iCount++)
AppLogDebug("EXIT");
}
+int
+FolderListEditorPanel::GetCheckedItemCount(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __checkedItemCount;
+}
+
void
FolderListEditorPanel::UpdateContentList(void)
{
MiniPlayer::OnPlayContentChanged(int currentContentIndex)\r
{\r
AppLogDebug("ENTER");\r
- ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(currentContentIndex);\r
- if (pContentInfo == null)\r
- {\r
- AppLogDebug("__pPresentationModel->GetContentInfoN(currentContentIndex) failed");\r
- return;\r
- }\r
-\r
- String miniPlayerAtritsName;\r
- miniPlayerAtritsName.Append(L" - ");\r
- miniPlayerAtritsName.Append(pContentInfo->ArtistName);\r
-\r
- __pTitleLabel->SetText(pContentInfo->TitleName);\r
- __pArtistLabel->SetText(miniPlayerAtritsName);\r
-\r
- Bitmap* pAlbumArt = __pPresentationModel->GetContentAlbumArtN(currentContentIndex);\r
- __pThumbnailLabel->SetBackgroundBitmap(*pAlbumArt);\r
- delete pAlbumArt;\r
-\r
- __pProgressBar->SetRange(INIT_VALUE, PROGRESS_MAX_VALUE);\r
-\r
- delete pContentInfo;\r
-\r
+ SetContentInfo(currentContentIndex);\r
Invalidate(true);\r
AppLogDebug("EXIT");\r
}\r
MiniPlayer::MiniPlayerActivate(void)\r
{\r
AppLogDebug("ENTER");\r
+// if (__pPlayerPresentationModel->GetContentListCount() == INIT_VALUE)\r
+// {\r
+// }\r
+\r
switch (__pPresentationModel->GetPlayerState())\r
{\r
case PLAYER_STATE_PLAYING:\r
break;\r
}\r
\r
- __pThumbnailLabel->SetBackgroundBitmap(*__pPresentationModel->GetPlayContentThumbnail());\r
- __pThumbnailLabel->Draw();\r
-\r
- __pTitleLabel->SetText(*__pPresentationModel->GetPlayContentTitle());\r
- __pTitleLabel->Draw();\r
-\r
- String miniPlayerAtritsName;\r
- miniPlayerAtritsName.Append(L" - ");\r
- miniPlayerAtritsName.Append(*__pPresentationModel->GetPlayContentArtist());\r
- __pArtistLabel->SetText(miniPlayerAtritsName);\r
- __pArtistLabel->Draw();\r
-\r
- __pMinPlayerPlayToggleButton->Draw();\r
+ SetContentInfo(__pPresentationModel->GetCurrentContentIndex());\r
__pProgressBar->SetValue(__pPresentationModel->GetPlayPosition());\r
- __pProgressBar->Draw(true);\r
-\r
__pPresentationModel->AddMusicPlayerEventListener(*this);\r
AppLogDebug("EXIT");\r
}\r
AppLogDebug("ENTER");\r
__pPresentationModel->RemoveMusicPlayerEventListener(*this);\r
AppLogDebug("EXIT");\r
+}\r
+\r
+result\r
+MiniPlayer::SetContentInfo(int currentContentIndex)\r
+{\r
+ AppLogDebug("ENTER");\r
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(currentContentIndex);\r
+ if (pContentInfo == null)\r
+ {\r
+ AppLogDebug("__pPresentationModel->GetContentInfoN(currentContentIndex) failed");\r
+ AppLogDebug("__pPlayerPresentationModel->GetContentInfoN is null");\r
+ return E_FAILURE;\r
+ }\r
+\r
+ String miniPlayerAtritsName;\r
+ miniPlayerAtritsName.Append(L" - ");\r
+ miniPlayerAtritsName.Append(pContentInfo->ArtistName);\r
+\r
+ __pTitleLabel->SetText(pContentInfo->TitleName);\r
+ __pArtistLabel->SetText(miniPlayerAtritsName);\r
+\r
+ Bitmap* pAlbumArt = __pPresentationModel->GetContentAlbumArtN(currentContentIndex);\r
+ __pThumbnailLabel->SetBackgroundBitmap(*pAlbumArt);\r
+ delete pAlbumArt;\r
+\r
+ __pProgressBar->SetRange(INIT_VALUE, PROGRESS_MAX_VALUE);\r
+\r
+ delete pContentInfo;\r
+ AppLogDebug("EXIT");\r
+ return E_SUCCESS;\r
}
\ No newline at end of file
}
void
-MusicPlayerApp::OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData)
+MusicPlayerApp::OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData,
+ const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData)
{
AppLogDebug("ENTER");
// result r = E_SUCCESS;
using namespace Tizen::Ui::Scenes;
static const int H_CONTROLLER_PANEL = 288;
-
static const int W_HORIZONTAL_PLAYER = 720;
static const int H_HORIZONTAL_CONTROLLER_PANEL = 300;
-
static const int H_VOLUME_PANEL = 112;
-//static const int X_PLAYSTATE_SLIDER = 82;
-//static const int Y_PLAYSTATE_SLIDER = 105;
-//static const int W_PLAYSTATE_SLIDER = 558;
-//static const int H_PLAYSTATE_SLIDER = 70;
-
static const int TRANSPARENT_COLOR = 0x00000000;
static const int MIN_VOLUME_SLIDER_COUNT = 0;
static const int MAX_VOLUME_SLIDER_COUNT = 15;
-static const int IDA_BUTTON_CONTENTS_LIST_VIEW = 100;
-static const int IDA_BUTTON_CONTENTS_ALBUM_VIEW = 101;
-static const int IDA_BUTTON_VOLUME = 102;
-static const int IDA_BUTTON_REWIND = 103;
-static const int IDA_BUTTON_PLAY = 104;
-static const int IDA_BUTTON_PAUSE = 105;
-static const int IDA_BUTTON_FORWARD = 106;
-static const int IDA_BUTTON_BACK = 107;
-static const int IDA_BUTTON_REPEAT = 108;
-static const int IDA_BUTTON_SHUFFLE = 109;
-static const int IDA_BUTTON_MORE_CONTEXT_MENU = 111;
-
-static const int IDA_CONTEXT_SHARE = 112;
-static const int IDA_CONTEXT_SET = 113;
-static const int IDA_CONTEXT_SOUND_PATH = 114;
-static const int IDA_CONTEXT_DETAILS = 115;
-static const int IDA_CONTEXT_SETTINGS = 116;
-static const int IDA_CONTEXT_ADDTO = 117;
+static const int IDA_BUTTON_CONTENTS_LIST_VIEW = 200;
+static const int IDA_BUTTON_CONTENTS_ALBUM_VIEW = 201;
static const Tizen::Base::String INVALID_VALUE_OF_CONTENT_ID = L"00000000-0000-0000-0000-000000000000";
IDA_TYPE_REPEAT_ALL /**< The repeat type is ALL */
};
+enum PlayerScreenState
+{
+ PLAYER_SCREEN_STATE_BASE = 0,
+ PLAYER_SCREEN_STATE_NORMAL = PLAYER_SCREEN_STATE_BASE,
+ PLAYER_SCREEN_STATE_NO_CONTENT_LIST,
+ PLAYER_SCREEN_STATE_APP_CONTROL,
+ PLAYER_SCREEN_STATE_MAX
+};
+
+enum IDAPlayerController
+{
+ IDA_PLAYER_CONTROLLER_BASE = 100,
+ IDA_PLAYER_CONTROLLER_REWIND = IDA_PLAYER_CONTROLLER_BASE,
+ IDA_PLAYER_CONTROLLER_PLAY,
+ IDA_PLAYER_CONTROLLER_PAUSE,
+ IDA_PLAYER_CONTROLLER_FORWARD,
+ IDA_PLAYER_CONTROLLER_VOLUME,
+ IDA_PLAYER_CONTROLLER_REPEAT,
+ IDA_PLAYER_CONTROLLER_SHUFFLE,
+ IDA_PLAYER_CONTROLLER_BACK,
+ IDA_PLAYER_CONTROLLER_MORE,
+ IDA_PLAYER_CONTROLLER_MAX
+};
+
PlayerForm::PlayerForm(void)
: __pPlayerPresentationModel(null)
, __pAlbumArtElements(null)
, __pMoreContextButton(null)
, __pPlayStateSlider(null)
, __pVolumeSlider(null)
- , __pContextMenuIconText(null)
, __pThumbnail(null)
- , __pPlayListPickerPopup(null)
+ , __pPlayListPicker(null)
+ , __pSharePicker(null)
+ , __pSetAsPicker(null)
, __pSoundPathPopup(null)
- , __pSharePopup(null)
- , __pSetAsPopup(null)
, __isLongPressed(false)
, flickDirection(FLICK_DIRECTION_NONE)
, __transactionID(ANIMATION_TRANSACTION_STATUS_STOPPED)
+ , __playerScreenState(PLAYER_SCREEN_STATE_NORMAL)
, __isAnimationPerformed(false)
, __pAnimationFinishedTimer(null)
, __pContentPlayTimer(null)
, __pPreviousSceneId(null)
, __pPath(null)
- , __pMoreContextMenu(null)
+ , __pContextMenu(null)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
__pContentsViewToggleButton->AddActionEventListener(*this);
__pVolumeButton = static_cast<Button*>(__pControllerPanel->GetControl(L"IDC_OPTION_VOLUMN"));
- __pVolumeButton->SetActionId(IDA_BUTTON_VOLUME);
+ __pVolumeButton->SetActionId(IDA_PLAYER_CONTROLLER_VOLUME);
__pVolumeButton->AddActionEventListener(*this);
__pShuffleButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_OPTION_SHUFFLE));
- __pShuffleButton->SetActionId(IDA_BUTTON_SHUFFLE);
+ __pShuffleButton->SetActionId(IDA_PLAYER_CONTROLLER_SHUFFLE);
__pShuffleButton->AddActionEventListener(*this);
__pRepeatButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_OPTION_REPEAT));
- __pRepeatButton->SetActionId(IDA_BUTTON_REPEAT);
+ __pRepeatButton->SetActionId(IDA_PLAYER_CONTROLLER_REPEAT);
__pRepeatButton->AddActionEventListener(*this);
Button* pButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_OPTION_PLAY_LIST_ADD));
pButton->SetShowState(false);
__pRewindButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_PREVIOUS_CONTROL_BUTTON));
- __pRewindButton->SetActionId(IDA_BUTTON_REWIND);
+ __pRewindButton->SetActionId(IDA_PLAYER_CONTROLLER_REWIND);
__pRewindButton->AddTouchEventListener(*this);
__pPlayPauseButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_PALY_TOGGLE_CONTROL_BUTTON));
- __pPlayPauseButton->SetActionId(IDA_BUTTON_PLAY);
+ __pPlayPauseButton->SetActionId(IDA_PLAYER_CONTROLLER_PLAY);
__pPlayPauseButton->AddActionEventListener(*this);
__pForwardButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_NEXT_CONTROL_BUTTON));
- __pForwardButton->SetActionId(IDA_BUTTON_FORWARD);
+ __pForwardButton->SetActionId(IDA_PLAYER_CONTROLLER_FORWARD);
__pForwardButton->AddTouchEventListener(*this);
Bitmap* pBackNormalBitmap = ResourceManager::GetBitmapN(L"00_icon_Back_02_web.png");
__pBackButton->SetNormalBitmap(__pBackButton->GetPosition(), *pBackNormalBitmap);
__pBackButton->SetPressedBitmap(__pBackButton->GetPosition(), *pBackPressBitmap);
- __pBackButton->SetActionId(IDA_BUTTON_BACK);
+ __pBackButton->SetActionId(IDA_PLAYER_CONTROLLER_BACK);
__pBackButton->AddActionEventListener(*this);
delete pBackNormalBitmap;
__pPlayStateSlider->SetThumbTextColor(SLIDER_THUMB_STATUS_NORMAL, Color(255, 255, 255, 0));
__pPlayStateSlider->SetThumbTextColor(SLIDER_THUMB_STATUS_PRESSED, Color(255, 255, 255, 0));
+ __pPlayStateSlider->SetThumbTextColor(SLIDER_THUMB_STATUS_DISABLED, Color(255, 255, 255, 0));
__pMoreContextButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_MORE_CONTEXT_MENU_BUTTON));
__pMoreContextButton->SetPressedBitmap(__pMoreContextButton->GetPosition(), *pMoreContextPressBitmap);
__pMoreContextButton->SetDisabledBitmap(__pMoreContextButton->GetPosition(), *pMoreContextDisableBitmap);
- __pMoreContextButton->SetActionId(IDA_BUTTON_MORE_CONTEXT_MENU);
+ __pMoreContextButton->SetActionId(IDA_PLAYER_CONTROLLER_MORE);
__pMoreContextButton->AddActionEventListener(*this);
delete pMoreContextNormalBitmap;
__pAlbumArtElements->Destroy();
__pAlbumArtElements = null;
}
- if (__pContextMenuIconText != null)
- {
- delete __pContextMenuIconText;
- __pContextMenuIconText = null;
- }
- if (__pMoreContextMenu != null)
- {
- delete __pMoreContextMenu;
- __pMoreContextMenu = null;
- }
+ RemoveContextMenu();
+ RemoveSharePicker();
+ RemovePlayListPicker();
+ RemoveSetAsPicker();
RemoveOrientationEventListener(*this);
RemoveKeyEventListener(*this);
- delete __pPlayListPickerPopup;
- __pPlayListPickerPopup = null;
-
- delete __pSharePopup;
- __pSharePopup = null;
-
- delete __pSetAsPopup;
- __pSetAsPopup = null;
-
delete __pSoundPathPopup;
__pSoundPathPopup = null;
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
- int currentContentIndex = -1;
- String* contentPath = null;
-
switch (actionId)
{
case IDA_BUTTON_CONTENTS_ALBUM_VIEW:
}
break;
- case IDA_BUTTON_VOLUME:
+ case IDA_PLAYER_CONTROLLER_VOLUME:
{
if (__pVolumePanel == null)
{
}
break;
- case IDA_BUTTON_PLAY:
+ case IDA_PLAYER_CONTROLLER_PLAY:
{
- int currentContentIndex = -1;
- String* currentPlayConent = null;
- String* ContentPath = null;
-
- currentContentIndex = __pPlayerPresentationModel->GetCurrentContentIndex();
- currentPlayConent = __pPlayerPresentationModel->GetPlayContentPath();
- ContentPath = __pPlayerPresentationModel->GetContentPath(currentContentIndex);
+ String* currentPlayConent = __pPlayerPresentationModel->GetPlayContentPath();
+ String* ContentPath = __pPlayerPresentationModel->GetContentPath(__pPlayerPresentationModel->GetCurrentContentIndex());
if (currentPlayConent->Equals(*ContentPath))
{
}
break;
- case IDA_BUTTON_PAUSE:
+ case IDA_PLAYER_CONTROLLER_PAUSE:
{
__pPlayerPresentationModel->Pause();
}
break;
- case IDA_BUTTON_BACK:
+ case IDA_PLAYER_CONTROLLER_BACK:
{
result r = pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_DESTROY_OPTION_KEEP));
-
- if (r != E_SUCCESS)
+ if (IsFailed(r))
{
UiApp* pApp = UiApp::GetInstance();
pApp->Terminate();
}
break;
- case IDA_BUTTON_REPEAT:
+ case IDA_PLAYER_CONTROLLER_REPEAT:
{
- int repeatState = __pPlayerPresentationModel->GetRepeatState();
-
- switch (repeatState)
+ switch (__pPlayerPresentationModel->GetRepeatState())
{
case IDA_TYPE_REPEAT_A:
{
}
break;
- case IDA_BUTTON_SHUFFLE:
+ case IDA_PLAYER_CONTROLLER_SHUFFLE:
{
if (__pPlayerPresentationModel->IsShuffleEnable() == false)
{
}
break;
- case IDA_BUTTON_MORE_CONTEXT_MENU:
+ case IDA_PLAYER_CONTROLLER_MORE:
{
- Point pointMorePopup = Point(X_MORE_POPUP, Y_MORE_POPUP);
- if (__pMoreContextMenu != null)
+ if (GetPlayerScreenState() == PLAYER_SCREEN_STATE_NORMAL)
{
- delete __pMoreContextMenu;
- __pMoreContextMenu = null;
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_SET_AS | CONTEXT_MENU_ITEM_STYLE_DETAILS | CONTEXT_MENU_ITEM_STYLE_SHARE_VIA
+ | CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST | CONTEXT_MENU_ITEM_STYLE_SETTINGS);
+ }
+ else if (GetPlayerScreenState() == PLAYER_SCREEN_STATE_APP_CONTROL)
+ {
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_SET_AS | CONTEXT_MENU_ITEM_STYLE_DETAILS | CONTEXT_MENU_ITEM_STYLE_SHARE_VIA);
}
-
- __pMoreContextMenu = new (std::nothrow) ContextMenu();
- __pMoreContextMenu->Construct(Point(0, 0), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
-
- __pMoreContextMenu->AddItem(L"Share via", IDA_CONTEXT_SHARE);//NEED STRING
- __pMoreContextMenu->AddItem(L"Add to Playlist", IDA_CONTEXT_ADDTO);//NEED STRING
- __pMoreContextMenu->AddItem(L"Set as", IDA_CONTEXT_SET);//NEED STRING
- __pMoreContextMenu->AddItem(L"Details", IDA_CONTEXT_DETAILS);//NEED STRING
- __pMoreContextMenu->AddItem(L"Settings", IDA_CONTEXT_SETTINGS);//NEED STRING
-
- __pMoreContextMenu->SetMaxVisibleItemsCount(__pMoreContextMenu->GetItemCount());
- __pMoreContextMenu->AddActionEventListener(*this);
- __pMoreContextMenu->SetAnchorPosition(pointMorePopup);
- __pMoreContextMenu->SetShowState(true);
- __pMoreContextMenu->Show();
}
break;
- case IDA_CONTEXT_SHARE:
+ case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
{
- currentContentIndex = __pPlayerPresentationModel->GetCurrentContentIndex();
- contentPath = __pPlayerPresentationModel->GetContentPath(currentContentIndex);
-
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- pDataList->Construct();
-
- if (__pSharePopup == null)
- {
- __pSharePopup = new (std::nothrow) SharePopup();
- __pSharePopup->Initialize(this);
- }
- pDataList->Add(*(new (std::nothrow) String(*contentPath)));
- __pSharePopup->SetArguments(pDataList);
-
- __pSharePopup->SetShowState(true);
- __pSharePopup->Show();
+ LanucherPicker(PICKER_TYPE_SHARE_PICKER);
}
break;
- case IDA_CONTEXT_ADDTO:
+ case IDA_CONTEXT_MENU_ITEM_STYLE_ADD_TO_PLAYLIST:
{
- currentContentIndex = __pPlayerPresentationModel->GetCurrentContentIndex();
- contentPath = __pPlayerPresentationModel->GetContentPath(currentContentIndex);
-
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- pDataList->Construct();
- pDataList->Add(*(new (std::nothrow) String(*contentPath)));
- if (__pPlayListPickerPopup != null)
- {
- AppLogDebug("1");
- delete __pPlayListPickerPopup;
- __pPlayListPickerPopup = null;
- AppLogDebug("2");
- }
-
- __pPlayListPickerPopup = new (std::nothrow) PlayListPickerPopup();
- __pPlayListPickerPopup->Initialize(this, pDataList);
- __pPlayListPickerPopup->SetShowState(true);
- __pPlayListPickerPopup->Show();
+ LanucherPicker(PICKER_TYPE_PLAY_LIST_PICKER);
}
break;
- case IDA_CONTEXT_SET:
+ case IDA_CONTEXT_MENU_ITEM_STYLE_SET_AS:
{
- currentContentIndex = __pPlayerPresentationModel->GetCurrentContentIndex();
- contentPath = __pPlayerPresentationModel->GetContentPath(currentContentIndex);
-
- if (__pSetAsPopup == null)
- {
- __pSetAsPopup = new (std::nothrow) SetAsPopup();
- __pSetAsPopup->Initialize();
- }
- __pSetAsPopup->SetCurrentContentPath(contentPath);
- __pSetAsPopup->SetShowState(true);
- __pSetAsPopup->Show();
+ LanucherPicker(PICKER_TYPE_SET_AS_PICKER);
}
break;
- case IDA_CONTEXT_SOUND_PATH:
+ case IDA_CONTEXT_MENU_ITEM_STYLE_SOUND_PATH:
{
if (__pSoundPathPopup == null)
{
}
break;
- case IDA_CONTEXT_DETAILS:
+ case IDA_CONTEXT_MENU_ITEM_STYLE_DETAILS:
{
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CONTENT_DETAIL));
}
break;
- case IDA_CONTEXT_SETTINGS:
+ case IDA_CONTEXT_MENU_ITEM_SETTINGS:
{
SettingPresentationModel::GetInstance()->InitializeSettingValue();
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_MUSIC_SETTING));
default:
break;
}
+
+ TryRemoveContextMenu(actionId);
AppLogDebug("EXIT");
}
*/
__pPlayerPresentationModel->AddMusicPlayerEventListener(*this);
- if (previousSceneId != IDSCN_MUSIC_SETTING
- && previousSceneId != IDSCN_PLAYLIST_CREATOR
- && previousSceneId != IDSCN_CONTENT_DETAIL)
+ if (pArgs != null)
{
-// __pPlayerPresentationModel->AddMusicPlayerEventListener(*this);
-
- if (pArgs != null)
+ if (IsFailed(__pPlayerPresentationModel->SetContentList(pArgs)))
{
- __pPlayerPresentationModel->SetContentList(pArgs);
+ AppLogDebug("__pPlayerPresentationModel->SetContentList failed(%s)", GetErrorMessage(GetLastResult()));
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_NO_CONTENT_LIST);
+ return;
+ }
+
+ __pPlayerPresentationModel->Play(static_cast<Integer*>(pArgs->GetAt(1))->ToInt(), MIN_PLAY_STATE_SLIDER_COUNT);
+ SetRepeatButtonImage(__pPlayerPresentationModel->GetRepeatState());// 0 - 2 (OFF, ONE, ALL)
+ SetShuffleButtonImage(__pPlayerPresentationModel->IsShuffleEnable());// 0 - 1 (OFF, ON)
- int playIndex = (static_cast<Integer*>(pArgs->GetAt(1)))->ToInt();
- __pPlayerPresentationModel->Play(playIndex, MIN_PLAY_STATE_SLIDER_COUNT);
- SetRepeatButtonImage(__pPlayerPresentationModel->GetRepeatState());// 0 - 2 (OFF, ONE, ALL)
- SetShuffleButtonImage(__pPlayerPresentationModel->IsShuffleEnable());// 0 - 1 (OFF, ON)
+ if (!static_cast<String*>(pArgs->GetAt(0))->Equals(MUSIC, false))
+ {
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_APP_CONTROL);
}
+
+ pArgs->RemoveAll(true);
+ delete pArgs;
}
else
{
+ if (__pPlayerPresentationModel->GetContentListCount() == INIT_VALUE)
+ {
+ AppLogDebug("__pPlayerPresentationModel->GetContentListCount() is 0");
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_NO_CONTENT_LIST);
+ return;
+ }
+
+ SetContentInfo( __pPlayerPresentationModel->GetCurrentContentIndex());
OnPlayStateChanged(__pPlayerPresentationModel->GetPlayerState());
}
{
SetMoreContentMenuStatus(false);
}
+
Invalidate(true);
AppLogDebug("EXIT");
}
{
AppLogDebug("ENTER");
AppLogDebug("OnUserEventReceivedN %d", requestId);
- if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
+ if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP || requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
{
- if (__pPlayListPickerPopup != null)
- {
- delete __pPlayListPickerPopup;
- __pPlayListPickerPopup = null;
- }
- }
-
- if (requestId == ID_DESTORY_SHARE_POPUP)
- {
- if (__pSharePopup != null)
- {
- delete __pSharePopup;
- __pSharePopup = null;
- }
+ RemovePlayListPicker();
+ RemoveSharePicker();
}
if (pArgs != null)
__pPlayStateSlider->SetEnabled(false);
SetMoreContentMenuStatus(false);
}
- /*else
+ else
{
- __pPlayStateSlider->SetEnabled(true);
- SetMoreContentMenuStatus(true);
- }*/
+// __pPlayStateSlider->SetEnabled(true);
+// SetMoreContentMenuStatus(true);
+ __pPlayStateSlider->SetValue(__pPlayerPresentationModel->GetPlayPosition());
+ }
+
TogglePlayPauseImage(playerState);
AppLogDebug("EXIT");
}
if (shuffleEnable == false)
{
- pOptionShuffleBitmap = ResourceManager::GetBitmapN(L"T02_option_shuffle_off.png");
+ pOptionShuffleBitmap = ResourceManager::GetBitmapN(L"T02_option_shuffle_on_press.png");
}
else
{
__pMoreContextButton->Invalidate(true);
}
-//void
-//PlayerForm::SetControlButtonImage(void)
-//{
-// AppLogDebug("ENTER");
-// Bitmap* pVolumeNormalBitmap = ResourceManager::GetBitmapN(L"T02_controller_icon_volume.png");
-// Bitmap* pVolumePressBitmap = ResourceManager::GetBitmapN(L"T02_controller_icon_volume_press.png");
-
-// Bitmap* pRewindNormalBitmap = ResourceManager::GetBitmapN(L"T02_Play_btn_previous.png");
-// Bitmap* pRewindPressBitmap = ResourceManager::GetBitmapN(L"T02_Play_btn_previous_press.png");
-
-// Bitmap* pForwardNormalBitmap = ResourceManager::GetBitmapN(L"T02_Play_btn_next.png");
-// Bitmap* pForwardPressBitmap = ResourceManager::GetBitmapN(L"T02_Play_btn_next_press.png");
-
-// Bitmap* pBackNormalBitmap = ResourceManager::GetBitmapN(L"T02_controller_icon_back.png");
-// Bitmap* pBackPressBitmap = ResourceManager::GetBitmapN(L"T02_controller_icon_back_press.png");
-
-// __pVolumeButton->SetNormalBitmap(Point(POINT_X_CONTROLLER_BUTTON_BITMAP, POINT_Y_CONTROLLER_BUTTON_BITMAP), *pVolumeNormalBitmap);
-// __pVolumeButton->SetPressedBitmap(Point(POINT_X_CONTROLLER_BUTTON_BITMAP, POINT_Y_CONTROLLER_BUTTON_BITMAP), *pVolumePressBitmap);
-
-// __pRewindButton->SetNormalBitmap(Point(POINT_X_PLAY_BUTTON_BITMAP, POINT_Y_PLAY_BUTTON_BITMAP), *pRewindNormalBitmap);
-// __pRewindButton->SetPressedBitmap(Point(POINT_X_PLAY_BUTTON_BITMAP, POINT_Y_PLAY_BUTTON_BITMAP), *pRewindPressBitmap);
-
-// __pForwardButton->SetNormalBitmap(Point(POINT_X_PLAY_BUTTON_BITMAP, POINT_Y_PLAY_BUTTON_BITMAP), *pForwardNormalBitmap);
-// __pForwardButton->SetPressedBitmap(Point(POINT_X_PLAY_BUTTON_BITMAP, POINT_Y_PLAY_BUTTON_BITMAP), *pForwardPressBitmap);
-
-// __pBackButton->SetNormalBitmap(Point(POINT_X_CONTROLLER_BUTTON_BITMAP, POINT_Y_CONTROLLER_BUTTON_BITMAP), *pBackNormalBitmap);
-// __pBackButton->SetPressedBitmap(Point(POINT_X_CONTROLLER_BUTTON_BITMAP, POINT_Y_CONTROLLER_BUTTON_BITMAP), *pBackPressBitmap);
-
-// delete pVolumeNormalBitmap;
-// pVolumeNormalBitmap = null;
-// delete pVolumePressBitmap;
-// pVolumePressBitmap = null;
-
-// delete pRewindNormalBitmap;
-// pRewindNormalBitmap = null;
-// delete pRewindPressBitmap;
-// pRewindPressBitmap = null;
-
-// delete pForwardNormalBitmap;
-// pForwardNormalBitmap = null;
-// delete pForwardPressBitmap;
-// pForwardPressBitmap = null;
-
-// delete pBackNormalBitmap;
-// pBackNormalBitmap = null;
-// delete pBackPressBitmap;
-// pBackPressBitmap = null;
-// AppLogDebug("EXIT");
-//}
-
void
PlayerForm::TogglePlayPauseImage(PlayerState playerState)
{
pAlbumTurnTable->SetShowState(false);
SetPlayButtonImage();
}
+
if (__pContentsAlbumViewPanel->GetShowState() == true)
{
__pContentsAlbumViewPanel->Invalidate(true);
pBitmap = ResourceManager::GetBitmapN(IDB_PLAY_BUTTON_ICON_DISABLED);
__pPlayPauseButton->SetDisabledBitmap(point, *pBitmap);
delete pBitmap;
- __pPlayPauseButton->SetActionId(IDA_BUTTON_PLAY);
+ __pPlayPauseButton->SetActionId(IDA_PLAYER_CONTROLLER_PLAY);
__pPlayPauseButton->Invalidate(true);
AppLogDebug("EXIT");
}
pBitmap = ResourceManager::GetBitmapN(IDB_PAUSE_BUTTON_ICON_DISABLED);
__pPlayPauseButton->SetDisabledBitmap(point, *pBitmap);
delete pBitmap;
- __pPlayPauseButton->SetActionId(IDA_BUTTON_PAUSE);
+ __pPlayPauseButton->SetActionId(IDA_PLAYER_CONTROLLER_PAUSE);
__pPlayPauseButton->Invalidate(true);
AppLogDebug("EXIT");
}
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
+}
+
+void
+PlayerForm::SetPlayerScreenState(unsigned int playerScreenState)
+{
+ AppLogDebug("ENTER");
+ switch (playerScreenState)
+ {
+ case PLAYER_SCREEN_STATE_NO_CONTENT_LIST:
+ {
+ __pVolumeButton->SetEnabled(false);
+ __pContentsViewToggleButton->SetEnabled(false);
+ __pShuffleButton->SetEnabled(false);
+ __pRepeatButton->SetEnabled(false);
+ __pRewindButton->SetEnabled(false);
+ __pPlayPauseButton->SetEnabled(false);
+ __pForwardButton->SetEnabled(false);
+ __pPlayStateSlider->SetEnabled(false);
+ __pMoreContextButton->SetEnabled(false);
+
+ Bitmap* pThumb = ResourceManager::GetBitmapN(L"music_play_grid_thumb_loading.png");
+ static_cast<Label*>(__pContentsAlbumViewPanel->GetControl(IDC_CONTENTS_THUMBNAIL))->SetBackgroundBitmap(*pThumb);
+ delete pThumb;
+ static_cast<Label*>(__pContentsAlbumViewPanel->GetControl(IDC_CONTENTS_THUMBNAIL))->RemoveTouchEventListener(*this);
+ }
+ break;
+
+ case PLAYER_SCREEN_STATE_APP_CONTROL:
+ {
+ __pContentsViewToggleButton->SetEnabled(false);
+ __pShuffleButton->SetEnabled(false);
+ __pRepeatButton->SetEnabled(false);
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ __playerScreenState = playerScreenState;
+ Invalidate(true);
+ AppLogDebug("EXIT");
+}
+
+unsigned int
+PlayerForm::GetPlayerScreenState(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __playerScreenState;
+}
+
+result
+PlayerForm::SetContextMenuItem(unsigned int contextMenuItemStyle, Tizen::Graphics::Point anchorPosition)
+{
+ AppLogDebug("ENTER");
+ if (__pContextMenu == null)
+ {
+ AppLogDebug("EXIT");
+ return E_FAILURE;
+ }
+
+ CommonUtil::AddContextMenuItem(*__pContextMenu, contextMenuItemStyle);
+ CommonUtil::ShowContextMenu(*__pContextMenu, true);
+
+ if (anchorPosition.x != -1 && anchorPosition.y != -1)
+ {
+ __pContextMenu->SetAnchorPosition(anchorPosition);
+ }
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+result
+PlayerForm::CreateContextMenuN(const Tizen::Ui::Control& source)
+{
+ AppLogDebug("ENTER");
+ RemoveContextMenu();
+ __pContextMenu = CommonUtil::CreateContextMenuN(source, *this);
+ if (__pContextMenu != null)
+ {
+ return E_SUCCESS;
+ }
+ AppLogDebug("EXIT");
+ return E_FAILURE;
+}
+
+void
+PlayerForm::RemoveContextMenu(void)
+{
+ AppLogDebug("ENTER");
+ if (__pContextMenu != null)
+ {
+ delete __pContextMenu;
+ __pContextMenu = null;
+ }
+ AppLogDebug("EXIT");
+}
+
+result
+PlayerForm::TryRemoveContextMenu(int actionId)
+{
+ AppLogDebug("ENTER");
+ result r = E_FAILURE;
+ if (CommonUtil::IsVaildContextMenuItemActionId(actionId) == true)
+ {
+ RemoveContextMenu();
+ r = E_SUCCESS;
+ }
+ AppLogDebug("EXIT");
+ return r;
+}
+
+result
+PlayerForm::ShowSharePicker(Tizen::Base::Collection::IList* pIList)
+{
+ AppLogDebug("ENTER");
+ RemoveSharePicker();
+
+ __pSharePicker = new (std::nothrow) SharePopup();
+ if (IsFailed(__pSharePicker->Initialize(this)))
+ {
+ AppLogDebug("__pSharePicker->Initialize failed(%s)", GetErrorMessage(E_FAILURE));
+ RemoveSharePicker();
+ return E_FAILURE;
+ }
+
+ __pSharePicker->SetArguments(pIList);
+ __pSharePicker->SetShowState(true);
+ __pSharePicker->Show();
+
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+void
+PlayerForm::RemoveSharePicker(void)
+{
+ AppLogDebug("ENTER");
+ if (__pSharePicker != null)
+ {
+ delete __pSharePicker;
+ __pSharePicker = null;
+ }
+ AppLogDebug("EXIT");
+}
+
+result
+PlayerForm::ShowPlayListPicker(Tizen::Base::Collection::IList* pIList)
+{
+ AppLogDebug("ENTER");
+ RemovePlayListPicker();
+
+ __pPlayListPicker = new (std::nothrow) PlayListPickerPopup();
+ if (IsFailed(__pPlayListPicker->Initialize(this, pIList)))
+ {
+ AppLogDebug("__pSharePicker->Initialize failed(%s)", GetErrorMessage(E_FAILURE));
+ RemovePlayListPicker();
+ return E_FAILURE;
+ }
+
+ __pPlayListPicker->SetShowState(true);
+ __pPlayListPicker->Show();
+
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+void
+PlayerForm::RemovePlayListPicker(void)
+{
+ AppLogDebug("ENTER");
+ if (__pPlayListPicker != null )
+ {
+ delete __pPlayListPicker;
+ __pPlayListPicker = null;
+ }
+ AppLogDebug("EXIT");
+}
+
+result
+PlayerForm::ShowSetAsPicker(Tizen::Base::Collection::IList* pIList)
+{
+ AppLogDebug("ENTER");
+ RemoveSetAsPicker();
+
+ __pSetAsPicker = new (std::nothrow) SetAsPopup();
+ if (IsFailed(__pSetAsPicker->Initialize(this)))
+ {
+ AppLogDebug("__pSharePicker->Initialize failed(%s)", GetErrorMessage(E_FAILURE));
+ RemoveSetAsPicker();
+ return E_FAILURE;
+ }
+
+ __pSetAsPicker->SetCurrentContentPath(new (std::nothrow) String(*static_cast<String*>(pIList->GetAt(0))));
+ __pSetAsPicker->SetShowState(true);
+ __pSetAsPicker->Show();
+
+ pIList->RemoveAll(true);
+ delete pIList;
+
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+void
+PlayerForm::RemoveSetAsPicker(void)
+{
+ AppLogDebug("ENTER");
+ if (__pSetAsPicker != null)
+ {
+ delete __pSetAsPicker;
+ __pSetAsPicker = null;
+ }
+ AppLogDebug("EXIT");
+}
+
+result
+PlayerForm::LanucherPicker(PickerType pickerType)
+{
+ AppLogDebug("ENTER");
+ IList* pArgumentList = GetPickerArgumentListN(pickerType);
+ if (pArgumentList == null)
+ {
+ AppLogDebug("GetPickerArgumentListN is null");
+ return E_FAILURE;
+ }
+
+ result r = E_FAILURE;
+ if (pickerType == PICKER_TYPE_PLAY_LIST_PICKER)
+ {
+ r = ShowPlayListPicker(pArgumentList);
+ }
+ else if (pickerType == PICKER_TYPE_SHARE_PICKER)
+ {
+ r = ShowSharePicker(pArgumentList);
+ }
+ else if (pickerType == PICKER_TYPE_SET_AS_PICKER)
+ {
+ r = ShowSetAsPicker(pArgumentList);
+ }
+
+ if (IsFailed(r))
+ {
+ AppLogDebug("ShowPlayListPicker failed(%s)", GetErrorMessage(r));
+ delete pArgumentList;
+ }
+ AppLogDebug("EXIT");
+ return r;
+}
+
+Tizen::Base::Collection::IList*
+PlayerForm::GetPickerArgumentListN(PickerType pickerType)
+{
+ AppLogDebug("ENTER");
+ String contentPath;
+ switch (pickerType)
+ {
+ case PICKER_TYPE_SET_AS_PICKER:
+ // fall through
+ case PICKER_TYPE_PLAY_LIST_PICKER:
+ // fall through
+ case PICKER_TYPE_SHARE_PICKER:
+ {
+ contentPath.Append(*__pPlayerPresentationModel->GetContentPath(__pPlayerPresentationModel->GetCurrentContentIndex()));
+ }
+ break;
+
+ default:
+ {
+ AppLogDebug("EXIT");
+ return null;
+ }
+ break;
+ }
+
+ Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList(SingleObjectDeleter);
+ if (IsFailed(pDataList->Construct()))
+ {
+ AppLogDebug("Construct failed(%s)", GetErrorMessage(GetLastResult()));
+ delete pDataList;
+ return null;
+ }
+
+ pDataList->Add(*(new (std::nothrow) String(contentPath)));
+ AppLogDebug("EXIT");
+ return pDataList;
}
\ No newline at end of file
}
CommonUtil::SetItemCheckedAll(isChecked, *__pContentListTableView);
CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
}
__checkedItemCount = INIT_VALUE;
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
AppLogDebug("EXIT");
}
__checkedItemCount++;
}
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
{
__checkedItemCount = INIT_VALUE;
CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
break;
}
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
SetDisableIconAllCheckButton();
}
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
CommonUtil::SetFooterItemEnabled(*pFooter, false);
UpdateContentList();
- SetCheckedCountBalloonPopup(INIT_VALUE);
+ SetCheckedCountBallonTooltip(INIT_VALUE);
SetNoContentSongs(false);
if (pArgs != null)
pFooter->RemoveActionEventListener(*this);
__checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
int totalCount = __pPresentationModel->GetAllPlayListCount();
for (int iCount = 0; iCount < totalCount; iCount++)
CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
- SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedCountBallonTooltip(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
SetTabHeaderStyle();
pSceneManager->GoBackward(BackwardSceneTransition());
AppLogDebug("EXIT");
+}
+
+int
+PlaylistListEditorPanel::GetCheckedItemCount(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __checkedItemCount;
}
\ No newline at end of file
pSceneManager->GoForward(ForwardSceneTransition(__pSceneId->GetPointer(), SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY));
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
AppLogDebug("EXIT");
return StrMakeQuery;
-}
+}
\ No newline at end of file
SetAsPopup::SetAsPopup(void)
: __pSetAsItemTableView(null)
, __pCancelButton(null)
+ , __pControl(null)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
}
result
-SetAsPopup::Initialize(void)
+SetAsPopup::Initialize(Tizen::Ui::Control* pControl)
{
AppLogDebug("ENTER");
result r = E_SUCCESS;
__pCancelButton->SetActionId(IDA_BUTTON_CANCEL);
__pCancelButton->AddActionEventListener(*this);
+ __pControl = pControl;
+
AddControl(*__pSetAsItemTableView);
AddControl(*__pCancelButton);
-
AppLogDebug("EXIT");
return r;
}
CommonUtil::SetItemCheckedAll(isChecked, *__pContentListTableView);
CommonUtil::SetFooterItemEnabled(*GetFooter(), isChecked);
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}
}
__checkedItemCount = INIT_VALUE;
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
AppLogDebug("EXIT");
}
__checkedItemCount++;
}
- SetTextBallonTooltip(CommonUtil::GetStringItemSelectd(GetCheckedItemCount()));
+ SetCheckedCountBallonTooltip(GetCheckedItemCount());
AppLogDebug("EXIT");
}