const Tizen::Ui::Scenes::SceneId& nextSceneId);
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
virtual int GetItemCount(void);
-
virtual Tizen::Ui::Controls::TableViewItem* CreateItem(const int itemIndex, int itemWidth);
virtual void OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableView,
int itemIndex,
virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId,
const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult,
const Tizen::Base::Collection::IMap* pExtraData);
-
virtual void OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo);
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
- result CreateAlbumInfoPanel(const ContentInformation& contentInfo, const int Songs);
+ virtual result CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo);
Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
-
- void ToggleViewMode(bool editMode);
+ virtual bool IsEmptyContentList(void);
+ virtual ContentInformation* GetContentInformation(int index);
+ virtual result SetContentListHeader(void);
+ virtual result SetContentListFooter(void);
+ virtual void RefreshAdditionalInformationRegisterBar(void);
private:
- Tizen::Ui::Controls::Panel* __pContentInfoPanel;
+ Tizen::Graphics::Bitmap* __pThumbnail;
AlbumListPresentationModel* __pPresentationModel;
};
-#endif // _MP_ALBUM_CONTENT_LIST_FORM_H_
\ No newline at end of file
+#endif // _MP_ALBUM_CONTENT_LIST_FORM_H_
static void SetLayoutFitToContainer(const Tizen::Ui::Container& container, Tizen::Ui::Control& childControl);
static void SetHorizontalLayoutFitToContainer(const Tizen::Ui::Container& container, Tizen::Ui::Control& childControl);
static void SetFooterItemEnabled(Tizen::Ui::Controls::Footer& pFooter, bool enable);
+
+ //<-- fixed
static void SetTabHeaderStyle(Tizen::Ui::Controls::Header& pHeader);
static void SetEditHeaderStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText, int actionId, bool isChecked = false);
static void SetSimpleTitleStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText);
- static void SetTitleWithSearchIconStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText,
- const Tizen::Base::String& descriptionText, int actionId);
+ static void SetTitleWithSearchIconStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText, const Tizen::Base::String& descriptionText, int actionId);
+ static void SetTitleDescriptionStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText, const Tizen::Base::String& descriptionText);
static void SetTitleDescriptionWithIconStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText,
Tizen::Base::String& descriptionText, int actionId, Tizen::Graphics::Bitmap* icon);
- static void SetTitleDescriptionStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText,
- const Tizen::Base::String& descriptionText);
+ //--> fixed
+
static void SetIconButtonItem(Tizen::Ui::Controls::ButtonItem& buttonItem, Tizen::Graphics::Bitmap* normalButtonIcon,
Tizen::Graphics::Bitmap* pressedButtonIcon, Tizen::Graphics::Bitmap* disableButtonIcon);
static void SetBackgroundBitmapButtonItem(Tizen::Ui::Controls::ButtonItem& buttonItem, Tizen::Graphics::Bitmap* normalButtonIcon,
Tizen::Graphics::Bitmap* pressedButtonIcon, Tizen::Graphics::Bitmap* disableButtonIcon);
- static void SetBackgroundBitmapHeaderItem(Tizen::Ui::Controls::HeaderItem& headerItem, Tizen::Graphics::Bitmap* normal,
- Tizen::Graphics::Bitmap* pressed, Tizen::Graphics::Bitmap* selected, Tizen::Graphics::Bitmap* disable);
+
+ //<--fixed
+ static void SetButtonItemUnCheckedIcon(Tizen::Ui::Controls::Header& header);
+ static void SetButtonItemCheckedIcon(Tizen::Ui::Controls::Header& header);
+ static void SetItemCheckedAll(bool isChecked, Tizen::Ui::Controls::TableView& tableView);
+
+ //<--fixed
+ static Tizen::Ui::Controls::ContextMenu* CreateContextMenuN(const Tizen::Ui::Control& source, Tizen::Ui::IActionEventListener& listener);
+ static void AddContextMenuItem(Tizen::Ui::Controls::ContextMenu& contextMenu, unsigned int contextMenuItemStyle);
+ static void ShowContextMenu(Tizen::Ui::Controls::ContextMenu& contextMenu, bool isShow);
+ static bool IsVaildContextMenuItemActionId(int actionId);
+ static bool IsVaildCommonPopupActionId(int actionId);
+ static void SetVariableHeightSizeControl(Tizen::Ui::Control& control, int controlHeight);
+ static result SetShowStateVariableHeightSizeControl(Tizen::Ui::Control& control, int controlHeight = 0, bool isShow = false);
+ static result SetShowStateControl(Tizen::Ui::Control& control, bool isShow);
+ static Tizen::Base::String SetHighDepthToEllipsisPath(const Tizen::Base::String& fullFilePath);
+ //-->fixed
+
+
+// static void SetButtonItemIcon(Tizen::Ui::Controls::ButtonItem& buttonItem, Tizen::Base::String normalIDB, Tizen::Base::String pressedIDB, Tizen::Base::String disableIDB);
+// static void SetButtonItemBackgroundBitmap(Tizen::Ui::Controls::ButtonItem& buttonItem, Tizen::Base::String normalIDB, Tizen::Base::String pressedIDB, Tizen::Base::String disableIDB);
+// static void SetHeaderItemBackgroundBitmap(Tizen::Ui::Controls::HeaderItem& headerItem, Tizen::Base::String normalIDB
+// , Tizen::Base::String pressedIDB, Tizen::Base::String disableIDB, Tizen::Base::String selectedIDB);
+ //-->fixed
static Tizen::Ui::Controls::Popup* CreateContentDeletePopup(Tizen::Ui::IActionEventListener& listener, int deleteActionId, int cancelActionId);
+ static Tizen::Ui::Controls::Panel* CreateFlickMenuN(Tizen::Ui::IActionEventListener& listener, FlickMenuStyle menuStyle);
+ static Tizen::Ui::Controls::TableViewContextItem* CreateTableViewContextItemN(Tizen::Ui::IActionEventListener& listener, int itemWidth, FlickMenuStyle menuStyle);
+ static void SetTextItemSelectedBalloonPopup(Tizen::Ui::Controls::Label& itemSelectedBalloonPopup, int itemCount);
+// static result SetShowStateItemSelectedBalloonPopup(Tizen::Ui::Controls::Label& itemSelectedBalloonPopup, bool isShow);
+
static Tizen::Ui::Controls::Footer* CreateContentListFooter(const Tizen::Ui::Controls::Form& form);
static Tizen::Ui::Controls::Footer* CreatePlaylistEditFooter(const Tizen::Ui::Controls::Form& form);
static Tizen::Graphics::Bitmap* GetColorizedBitmapN(const Tizen::Graphics::Bitmap& bitmap, const Tizen::Graphics::Color& color);
};
-#endif // _MP_COMMON_UTIL_H_
\ No newline at end of file
+#endif // _MP_COMMON_UTIL_H_
class ContentDetailForm
: public Tizen::Ui::Controls::Form
, public Tizen::Ui::Controls::IFormBackEventListener
- , public Tizen::Ui::Controls::ITableViewItemProvider
- , public Tizen::Ui::Controls::ITableViewItemEventListener
, public Tizen::Ui::IActionEventListener
, public Tizen::Ui::Scenes::ISceneEventListener
{
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
- virtual int GetItemCount(void);
- virtual Tizen::Ui::Controls::TableViewItem* CreateItem(const int itemIndex, int itemWidth);
- virtual bool DeleteItem(const int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
- virtual void UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
- virtual int GetDefaultItemHeight(void);
-
- virtual void OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableView,
- int itemIndex,
- Tizen::Ui::Controls::TableViewItem* pItem,
- Tizen::Ui::Controls::TableViewItemStatus status);
- virtual void OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView,
- int itemIndex,
- Tizen::Ui::Controls::TableViewContextItem* pContextItem,
- bool activated);
- virtual void OnTableViewItemReordered(Tizen::Ui::Controls::TableView& tableView,
- int itemIndexFrom,
- int itemIndexTo);
-
private:
PlayerPresentationModel* __pPlayerPresentationModel;
- Tizen::Ui::Controls::TableView* __pContentTableView;
- Tizen::Ui::Controls::Label* __pThumbnailLabel;
- Tizen::Base::String *__pItemTitle;
- Tizen::Base::String *__pItemDescription;
};
#endif // _MP_CONTENT_DETAIL_FORM_H_
\ No newline at end of file
result RemoveParentHeaderActionEventListener(void);\r
\r
result SetShowStateBalloonPopup(bool isShow);\r
- void SetCheckedCountBalloonPopup(int itemCount);\r
+ result SetCheckedCountBalloonPopup(int itemCount);\r
void SetNoContentSongs(bool isNoContents);\r
-\r
- void ReSizingItemCheckedBalloonPopup(void); //ReSizingMiniPlayerBar\r
+ void SetContentEditHeader(void);\r
\r
private:\r
result Construct(void);\r
\r
class ContentLibaryPanel\r
: public ContentPanel\r
-// , public Tizen::Ui::Scenes::ISceneEventListener\r
-// , public Tizen::Ui::IActionEventListener\r
{\r
public:\r
ContentLibaryPanel(void);\r
, public Tizen::Ui::Controls::IScrollEventListener
, public Tizen::Ui::Controls::IFormBackEventListener
, public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
, public Tizen::Ui::Scenes::ISceneEventListener
{
public:
ContentListForm(void);
virtual ~ContentListForm(void);
- bool Initialize(void);
+ result Initialize(void);
virtual result OnInitializing(void) = 0;
- virtual result OnTerminating(void) = 0;
+ virtual result OnTerminating(void);
virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
- const Tizen::Ui::Scenes::SceneId& currentSceneId,
- Tizen::Base::Collection::IList* pArgs){}
- virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
- const Tizen::Ui::Scenes::SceneId& nextSceneId){}
- virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId){}
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
virtual int GetItemCount(void);
virtual Tizen::Ui::Controls::TableViewItem* CreateItem(const int itemIndex, int itemWidth);
virtual bool DeleteItem(const int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
virtual void OnScrollStopped (Tizen::Ui::Control &source);
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
protected:
- void CreateNoContentImage(Tizen::Base::String noContentText = L"");
- void CreateSelectAllCheckedButton(void);
- void CreateCheckedCountLabel(void);
- void CreateContextMenu(const Tizen::Ui::Control& source);
- void CreateDeletePopup(void);
+ result SetAdditionalInforamtion(Tizen::Ui::Control& control);
+ Tizen::Ui::Control* GetRegisteredAdditionalInforamtionControl(void);
+ Tizen::Ui::Controls::TableViewContextItem* CreateTableViewContextItem(FlickMenuStyle menuStyle);
+ result CreateContextMenuN(const Tizen::Ui::Control& source);
+ 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 UpdateContentListScreenState(void);
+
+ result SetCheckedTableviewItemToPlayList(void);
+ result SetCheckedTableviewItemToShareVia(void);
+ void RefreshAdditionalInformationRegisterBar(void);
+ result SetActivatedContextItemToPlaylist(void);
+ void RemoveCheckedTableviewItem(void);
+ void RemoveAdditionalInforamtion(void);
+
+ ContentListScreenMode GetContentListScreenMode(void);
+ int GetActivatedContextItem(void);
+ result RemoveContentAt(const Tizen::Content::ContentId& contentId);
+
+ virtual result CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo) = 0;
+ virtual ContentInformation* GetContentInformation(int index) = 0;
+ virtual result SetContentListHeader(void) = 0;
+ virtual result SetContentListFooter(void) = 0;
+
+private:
+ result Construct(void);
+ result SetShowStateNoContent(bool isShow);
+ result SetShowStateContentTableview(bool isShow);
+ result SetShowStateItemSelectedBalloonPopup(bool isShow);
+ result SetShowStateAdditionalInformationRegisterBar(bool isShow);
+ result SetShowStateCommonPopup(bool isShow);
+ result SetTextItemSelectedBalloonPopup(int itemCount);
+
result CreatePlayListPickerPopup(Tizen::Base::Collection::IList* pDataList);
+ result CreateSharePopup(void);
+
+ result SetContentListScreenMode(ContentListScreenMode screenMode);
+ void RemovCommonPopup(void);
+ void RemoveContextMenu(void);
void DestroyPlayListPickerPopup(void);
+ void DestroySharePopup(void);
+ void TableviewSelectedItemStateChanged(Tizen::Ui::Controls::TableView& tableView, Tizen::Ui::Controls::TableViewItemStatus status);
+ bool IsExistAdditionalInforamtion(void);
- result InitializeHeader(const ContentInformation& contentInfoStruct);
- void SetTitleText(const Tizen::Base::String& title);
- result CreateTableViewContextItem(Tizen::Ui::Controls::TableViewContextItem& parent);
- virtual void CreateTableview(void);
- virtual result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct) = 0;
- virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+ virtual bool IsEmptyContentList(void) = 0;
+ virtual Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex) = 0;
protected:
- int __itemIndex;
- int __currentContentIndex;
- int __scrolledDistance;
- int __checkedItemCount;
- bool __checkEdit;
- Tizen::Base::String* __pStrSceneId;
- Tizen::Base::String* __pStrContentName;
- Tizen::Base::String __strHeaderName;
Tizen::Ui::Controls::TableView* __pContentTableView;
- Tizen::Ui::Controls::CheckButton* __pSelectAllCheckedButton;
- Tizen::Ui::Controls::Label* __pCheckedCountLabel;
- SharePopup* __pSharePopup;
- PlayListPickerPopup* __pPlayListPickerPopup;
- Tizen::Ui::Controls::Label* __pNoContentImageLabel;
- Tizen::Ui::Controls::Label* __pNoContentTextLabel;
Tizen::Ui::Controls::TableViewContextItem* __pContextItem;
- Tizen::Ui::Controls::Popup* __pDeletePopup;
- Tizen::Ui::Controls::ContextMenu* __pShareContextMenu;
- Tizen::Ui::Controls::ContextMenu* __pSetContextMenu;
+
+ Tizen::Base::String __headerTitle;
+ Tizen::Base::String __prevSceneId;
+
+ int __currentContentIndex;
+
+private:
+ Tizen::Ui::Controls::ContextMenu* __pContextMenu;
+ Tizen::Ui::Controls::Popup* __pCommonUtilPopupHandler;
+ Tizen::Ui::Controls::Label* __pNoContentLabel;
+ Tizen::Ui::Controls::Panel* __pAdditionalInformationRegisterBar;
+ Tizen::Ui::Controls::Label* __pItemSelectedBalloonPopup;
+
+ PlayListPickerPopup* __pPlayListPickerPopup;
+ SharePopup* __pSharePopup;
+
+ ContentListScreenMode __contentListScreenMode;
+ int __itemIndex;
+ int __checkedItemCount;
+ int __additionlInformationRegisterBarHeight;
};
-#endif // _MP_CONTENT_LIST_FORM_H_
\ No newline at end of file
+#endif // _MP_CONTENT_LIST_FORM_H_
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
+ result CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo);
Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
- void ToggleViewMode(bool editMode);
+ virtual bool IsEmptyContentList(void);
+ virtual ContentInformation* GetContentInformation(int index);
+ virtual result SetContentListHeader(void);
+ virtual result SetContentListFooter(void);
private:
Tizen::Graphics::Bitmap* __pThumbnail;
FolderListPresentationModel* __pPresentationModel;
};
-#endif // _MP_FOLDER_CONTENT_LIST_FORM_H_
\ No newline at end of file
+#endif // _MP_FOLDER_CONTENT_LIST_FORM_H_
#include <FSystem.h>
#include <FUi.h>
#include "MpBasePanel.h"
+#include "MpContentEditPanel.h"
#include "MpFolderListPresentationModel.h"
#include "MpSceneRegister.h"
#include "MpTypes.h"
class PlayListPickerPopup;
class FolderListEditorPanel
- : public BasePanel
- , public Tizen::Ui::Controls::ITableViewItemProvider
- , public Tizen::Ui::Controls::ITableViewItemEventListener
- , public Tizen::Ui::IActionEventListener
- , public Tizen::Ui::Scenes::ISceneEventListener
+ : public ContentEditPanel
{
public:
FolderListEditorPanel(void);
virtual ~FolderListEditorPanel(void);
- bool Initialize(void);
virtual result OnInitializing(void);
virtual result OnTerminating(void);
virtual void OnTableViewItemReordered(Tizen::Ui::Controls::TableView& tableView,
int itemIndexFrom,
int itemIndexTo);
-
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
virtual void OnUpdateContentList(void);
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
private:
+ result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
+
void UpdateContentList(void);
+ void SetEditHeaderStyle(void);
+ void SetTabHeaderStyle(void);
+ void SetDisableIconAllCheckButton(void);
+ void SetCheckedIconAllCheckButton(void);
+ void SetUnCheckedIconAllCheckButton(void);
protected:
- Tizen::Ui::Controls::TableView* __pContentTableView;
- Tizen::Ui::Controls::CheckButton* __pSelectAllCheckedButton;
- Tizen::Ui::Controls::Label* __pCheckedCountLabel;
int __checkedItemCount;
PlayListPickerPopup* __pPlayListPickerPopup;
FolderListPresentationModel* __pPresentationModel;
ContentInformation* GetContentInfoN(int contentIndex);
Tizen::Base::String* GetFolderName(int folderIndex);
Tizen::Base::String* GetFolderPath(int folderIndex);
+ void RemoveFolderList(int folderIndex);
void RefreshContentList(int folderIndex);
int GetCurrentFolderIndex(void);
void AddContent(Tizen::Base::String path, int playlistIndex);
virtual void OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo);
+protected:
+ virtual result CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo);
+ virtual ContentInformation* GetContentInformation(int index);
+ virtual result SetContentListHeader(void);
+ virtual result SetContentListFooter(void);
+
private:
- result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfo);
- void ToggleViewMode(bool editMode);
+ virtual bool IsEmptyContentList(void);
+ virtual Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
Tizen::Base::Collection::ArrayList* GetSearchResultContentList(int itemIndex);
Tizen::Base::Collection::ArrayList* GetAudioContentInfoContentList(int itemIndex);
private:
Tizen::Graphics::Bitmap* __pThumbnail;
- int __ContentType;
PlaylistListPresentationModel* __pPresentationModel;
};
Tizen::Base::String* __pQueryName;
};
-#endif // _MP_PLAYLIST_LIST_PRESENTATION_MODEL_H_
+#endif // _MP_PLAYLIST_LIST_PRESENTATION_MODEL_H_
\ No newline at end of file
#include <FGraphics.h>
#include <FSystem.h>
+//<--__FLICK_MENU_ITEM__
+enum FlickMenuItem
+{
+ FLICK_MENU_ITEM_NONE = 0x00000000,
+ FLICK_MENU_ITEM_PLAYALL = 0x00000001,
+ FLICK_MENU_ITEM_ADDTO = 0x00000002,
+ FLICK_MENU_ITEM_SHARE = 0x00000004,
+ FLICK_MENU_ITEM_SET_AS = 0x00000008,
+ FLICK_MENU_ITEM_DELETE = 0x00000010,
+ FLICK_MENU_ITEM_MAX = 0x00000020
+};
+//__FLICK_MENU_ITEM__-->
+
+//<--__FLICK_MENU_STYLE_
+enum FlickMenuStyle
+{
+ FLICK_MENU_STYLE_TYPE_BASE = FLICK_MENU_ITEM_NONE,
+ FLICK_MENU_STYLE_TYPE_01 = FLICK_MENU_ITEM_SHARE | FLICK_MENU_ITEM_SET_AS | FLICK_MENU_ITEM_ADDTO | FLICK_MENU_ITEM_DELETE,
+ FLICK_MENU_STYLE_TYPE_02 = FLICK_MENU_ITEM_PLAYALL,
+ FLICK_MENU_STYLE_TYPE_MAX
+};
+//__FLICK_MENU_STYLE__-->
+
+//<--__IDA_FLIC_MENU_ITEM_ACTION_ID
+enum IDAFlickMenuItemActionId
+{
+ IDA_FLICK_MENU_ITEM_BASE = 4000,
+ IDA_FLICK_MENU_ITEM_PLAYALL = IDA_FLICK_MENU_ITEM_BASE,
+ IDA_FLICK_MENU_ITEM_ADDTO,
+ IDA_FLICK_MENU_ITEM_SHARE,
+ IDA_FLICK_MENU_ITEM_SET_AS,
+ IDA_FLICK_MENU_ITEM_DELETE,
+ IDA_FLICK_MENU_ITEM_MAX
+};
+//__IDA_FLIC_MENU_ITEM_ACTION_ID_-->
+
+//<--__CONTEXT_MENU_ITEM_STYLE
+enum ContextMenuItemStyle
+{
+ CONTEXT_MENU_ITEM_STYLE_NONE = 0x00000000,
+ CONTEXT_MENU_ITEM_STYLE_CALL = 0x00000001,
+ CONTEXT_MENU_ITEM_STYLE_CALLER = 0x00000002,
+ CONTEXT_MENU_ITEM_STYLE_FOLDER_VIEW = 0x00000004,
+ CONTEXT_MENU_ITEM_STYLE_SETTINGS = 0x00000008,
+ CONTEXT_MENU_ITEM_STYLE_EMAIL = 0x00000010,
+ CONTEXT_MENU_ITEM_STYLE_ALARM = 0x00000020, //RES
+ CONTEXT_MENU_ITEM_STYLE_MESSAGE = 0x00000040,
+ CONTEXT_MENU_ITEM_STYLE_GO_TO_LIBARY = 0x00000080,
+ CONTEXT_MENU_ITEM_STYLE_BLUETOOTH = 0x00000100,
+ CONTEXT_MENU_ITEM_STYLE_SEARCH = 0x00000200,
+ CONTEXT_MENU_ITEM_STYLE_CREATE_PLAYLIST= 0x00000200,
+ CONTEXT_MENU_ITEM_STYLE_SHARE_VIA = 0x00001000,
+ CONTEXT_MENU_ITEM_STYLE_EDIT = 0x00002000
+};
+//__CONTEXT_MENU_ITEM_STYLE-->
+
+//<--__CONTENT_LIST_SCREEN_MODE
+enum ContentListScreenMode
+{
+ CONTENT_LIST_SCREEN_MODE_BASE = 0,
+ CONTENT_LIST_SCREEN_MODE_NORMAL = CONTENT_LIST_SCREEN_MODE_BASE,
+ CONTENT_LIST_SCREEN_MODE_EDITOR,
+ CONTENT_LIST_SCREEN_MODE_SHARE_VIA,
+ CONTENT_LIST_SCREEN_MODE_MAX
+};
+//__CONTENT_LIST_SCREEN_MODE-->
+
+//<--__CONTEXT_MENU_ITEM_ACTION_ID
+enum IDAContextMenuitemActionId
+{
+ IDA_CONTEXT_MENU_ITEM_BASE = 4100,
+ IDA_CONTEXT_MENU_ITEM_CALL = IDA_CONTEXT_MENU_ITEM_BASE,
+ IDA_CONTEXT_MENU_ITEM_CALLER,
+ IDA_CONTEXT_MENU_ITEM_FOLDER_VIEW,
+ IDA_CONTEXT_MENU_ITEM_SETTINGS,
+ IDA_CONTEXT_MENU_ITEM_EMAIL,
+ IDA_CONTEXT_MENU_ITEM_ALARM,
+ IDA_CONTEXT_MENU_ITEM_MESSAGE,
+ IDA_CONTEXT_MENU_ITEM_BLUETOOTH,
+ IDA_CONTEXT_MENU_ITEM_SEARCH,
+ IDA_CONTEXT_MENU_ITEM_CREATE_PLAYLIST,
+ IDA_CONTEXT_MENU_ITEM_SHARE_VIA,
+ IDA_CONTEXT_MENU_ITEM_EDIT,
+ IDA_CONTEXT_MENU_ITEM_GO_TO_LIBARY,
+ IDA_CONTEXT_MENU_ITEM_MAX
+};
+//__CONTEXT_MENU_ITEM_ACTION_ID-->
+
+//<-- _IDA_COMMON_POPUP_ACTION_ID_
+enum IDACommonPopupActionId
+{
+ IDA_COMMON_POPUP_BASE = 4200,
+ IDA_COMMON_POPUP_DELETE = IDA_COMMON_POPUP_BASE,
+ IDA_COMMON_POPUP_CANCEL,
+ IDA_COMMON_POPUP_MAX
+};
+//_IDA_COMMON_POPUP_ACTION_ID_-->
+
enum IDAHeaderButtonId
{
IDA_HEADER_BUTTON_SONG = 100,
IDA_HEADER_BUTTON_COMPOSERS,
IDA_HEADER_BUTTON_YEARS,
IDA_HEADER_BUTTON_FOLDER,
+ IDA_HEADER_BUTTION_SEARCH_ICON,
+ IDA_HEADER_BUTTION_CHECK_BOX_CHECKED_ICON,
+ IDA_HEADER_BUTTION_CHECK_BOX_UNCHECKED_ICON,
+ IDA_HEADER_BUTTION_THUMBNAIL_ICON
};
enum IDAFooterButtonId
static const int Y_GAP_THUMBNAIL = 8;
static const int W_TABLE_VIEW_MARK = 118;
static const int ICON_TOTAL_CONUT = 16;
-static const int HEAD_ITEM_COUNT = 4; //8;
+static const int HEAD_ITEM_COUNT = 3;//4; //8;
static const int FONT_SIZE = 30;
static const int INIT_VALUE = 0;
static const int MAIN_TEXT_SIZE = 36;
static const Tizen::Base::String STRING_SORT_GAP = L"";
static const Tizen::Base::String STRING_ITEM_DELETE = L"itemDelete";
-static const Tizen::Base::String STORAGE_SDCARD_BITMAP = L"T02_folder_storage_icon_memory.png";
-static const Tizen::Base::String STORAGE_PHONE_BITMAP = L"T02_folder_storage_icon_inner_memory.png";
-static const Tizen::Base::String STORAGE_EXTERNAL_BITMAP = L"T02_folder_storage_icon_memory.png";
-static const Tizen::Base::String NO_CONTENT_BITMAP = L"T02_nocomposers.png";
-
static const Tizen::Base::String IDS_BLANK = L"";
static const Tizen::Base::String IDS_COLON = L":";
static const Tizen::Base::String IDS_PERIOD = L".";
//XML
extern const wchar_t* IDL_CONTENT_LIST_PANEL;
-extern const wchar_t* IDC_CONTENT_LIST_TABLEVIEW;
extern const wchar_t* IDC_MINI_PLAYER_REGISTER_BAR;
extern const wchar_t* IDL_CONTENT_EDITOR_PANEL;
extern const wchar_t* IDL_SWEEP_QUICK_ITEM2_PANEL;
extern const wchar_t* IDL_SWEEP_QUICK_PLAYALL_ITEM_PANEL;
extern const wchar_t* IDL_CONTENT_LIBARY_FOLDER_ITEM_PANEL;
+extern const wchar_t* IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL;
extern const wchar_t* IDL_CONTENTS_PLAYLIST_EDITOR_ITEM_PANEL;
extern const wchar_t* IDL_CONTEXT_ITEM_PLAYALL_ADDTO;
extern const wchar_t* IDL_PLAYLIST_RENAME_FORM;
extern const wchar_t* IDL_SWEEP_QUICK_ALBUM_PANEL;
extern const wchar_t* IDL_CONTENTS_LIBARY_ALBUM_ITEM_PANEL;
extern const wchar_t* IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL;
+extern const wchar_t* IDL_CONTENTS_DETAIL_FORM;
+extern const wchar_t* IDL_CONTENT_LIST_FOLDER_ITEM_PANEL;
+extern const wchar_t* IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL;
+extern const wchar_t* IDL_CONTENT_LIST_FORM;
+extern const wchar_t* IDL_ALBUM_INFO_PANEL;
+extern const wchar_t* IDL_ALBUM_CONTENT_ITEM_PANEL;
+extern const wchar_t* IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL;
//_XML IDL_
//_XML IDC_
extern const wchar_t* IDC_BACK_BUTTON;
extern const wchar_t* IDC_MORE_CONTEXT_MENU_BUTTON;
extern const wchar_t* IDC_CONTENTS_THUMBNAIL;
+extern const wchar_t* IDC_CONTENT_THUMBNAIL;
extern const wchar_t* IDC_CONTENTS_ARTIST_NAME;
extern const wchar_t* IDC_CONTENTS_TITLE_NAME;
extern const wchar_t* IDC_MINI_PLAYER_REGISTER_BAR;
extern const wchar_t* IDC_BUTTON_EDIT;
extern const wchar_t* IDC_PLAY_ALL;
extern const wchar_t* IDC_ADD_TO_PLAYLIST;
+extern const wchar_t* IDC_CONTENT_LIST_TABLEVIEW;
extern const wchar_t* IDC_PLAY_CONTENT_COUNT;
+extern const wchar_t* IDC_CONTENT_DURATION;
+extern const wchar_t* IDC_CONTENT_FOLDER_STORAGE_ICON;
+extern const wchar_t* IDC_CONTENT_TITLE_NAME;
+extern const wchar_t* IDC_CONTENT_ADDITIONAL_REGISTER_BAR;
+extern const wchar_t* IDC_ARTIST_NAME_LABEL;
+extern const wchar_t* IDC_NAME_DATA_LABEL;
+extern const wchar_t* IDC_FORMAT_DATA_LABEL;
+extern const wchar_t* IDC_SIZE_DATA_LABEL;
+extern const wchar_t* IDC_FORWARDING_DATA_LABEL;
+extern const wchar_t* IDC_DATE_DATA_LABEL;
+extern const wchar_t* IDC_LOCATION_DATA_LABEL;
+extern const wchar_t* IDC_TITLE_LABEL;
//_XML IDC_
+//IMAGE
+extern const wchar_t* IDB_STORAGE_SDCARD;
+extern const wchar_t* IDB_STORAGE_PHONE;
+extern const wchar_t* IDB_STORAGE_EXTERNAL;
+extern const wchar_t* IDB_NO_CONTENTS;
+extern const wchar_t* IDB_MUSIC_LINE_CONTENT_FORM; //REMOVE
+//IMAGE
+
//HEADER
extern const unsigned int COLOR_HEADER_TITLE_TEXT;
extern const unsigned int COLOR_HEADER_DESCRIPTION_TEXT;
+extern const unsigned int COLOR_ITEM_SUB_TEXT;
-extern const wchar_t* IDB_MUSIC_LINE_CONTENT_FORM;
+extern const Tizen::Base::String IDS_SEPARATOR_SLASH;
+extern const Tizen::Base::String IDS_STORAGE_PHONE_PATH;
+extern const Tizen::Base::String IDS_STORAGE_SDCARD_PATH;
+extern const Tizen::Base::String IDS_STORAGE_EXTERNAL_PATH;
static const Tizen::Base::String CheckedName[HEAD_ITEM_COUNT] =
{
L"SONGS_TAB",
L"PLAYERLISTS_TAB",
L"ALBUMS_TAB",
- L"ARTISTS_TAB",
+// L"ARTISTS_TAB",
// L"GENRES_TAB",
// L"COMPOSERS_TAB",
// L"YEARS_TAB",
L"IDS_MUSIC_ITAB4_ALL",
L"IDS_MUSIC_TAB4_PLAYLISTS",
L"IDS_MUSIC_TAB4_ALBUMS",
- L"IDS_MUSIC_TAB4_ARTISTS",
+// L"IDS_MUSIC_TAB4_ARTISTS",
// L"IDS_MUSIC_TAB4_GENRES",
// L"IDS_MUSIC_BODY_COMPOSERS",
// L"IDS_MUSIC_TAB4_YEARS",
static const Tizen::Base::String CONTENT_FORM_REQUSEST_ID = L"ContentFormRequestId";
-#endif // _MP_TYPES_H_
\ No newline at end of file
+#endif // _MP_TYPES_H_
{
public:
UserPlaylistContentListForm(void);
- ~UserPlaylistContentListForm(void);
+ virtual ~UserPlaylistContentListForm(void);
virtual result OnInitializing(void);
virtual result OnTerminating(void);
int itemIndex,
Tizen::Ui::Controls::TableViewItem* pItem,
Tizen::Ui::Controls::TableViewItemStatus status);
- virtual void OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView,
- int itemIndex,
- Tizen::Ui::Controls::TableViewContextItem* pContextItem,
- bool activated);
- virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
virtual void OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo);
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+protected:
+ virtual result CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo);
+ virtual ContentInformation* GetContentInformation(int index);
+ virtual result SetContentListHeader(void);
+ virtual result SetContentListFooter(void);
+
private:
- void SetFooterStyle(void);
result CreateTableViewItem(Tizen::Ui::Container& parent, const ContentInformation& contentInfoStruct);
- void ToggleViewMode(bool editMode);
+
+ virtual bool IsEmptyContentList(void);
+ virtual Tizen::Base::Collection::ArrayList* MakePlayerSceneParam(int startIndex);
private:
Tizen::Graphics::Bitmap* __pThumbnail;
- bool __deletedItem;
PlaylistListPresentationModel* __pPresentationModel;
};
-#endif // _MP_USER_PLAYLIST_CONTENT_LIST_FORM_H_
\ No newline at end of file
+#endif // _MP_USER_PLAYLIST_CONTENT_LIST_FORM_H_
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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.201303041025" Dversion="20120315">\r
+ <Panel id="IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="140" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="140" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Button id="IDC_CONTENT_CHECK_BOX_BUTTON" parent="IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL">\r
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="00_check_bg_dim.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="00_check_bg.png" normalBitmapPath="00_check_bg.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="00_check_bg_press.png" pressedBitmapPath="00_check_bg_press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="26" y="38"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="26" y="38"/>\r
+ </Button>\r
+ <Label id="IDC_CONTENTS_TITLE_NAME" parent="IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="64" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="22" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="440" x="109" y="38"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="64" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="920" x="115" y="38"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_TOTAL_COUNT" parent="IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" text="" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="42" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENTS_TITLE_NAME" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="145" x="549" y="49"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="42" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENTS_TITLE_NAME" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="308" x="1035" y="49"/>\r
+ </Label>\r
+</ScenePanel>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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.201303041025" Dversion="20120315">\r
+ <Panel id="IDL_ALBUM_CONTENT_ITEM_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="140" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="140" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Label id="IDC_CONTENTS_TITLE_NAME" parent="IDL_ALBUM_CONTENT_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="64" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="22" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="470" x="20" y="38"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="64" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALBUM_CONTENT_ITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="920" x="26" y="38"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_TOTAL_COUNT" parent="IDL_ALBUM_CONTENT_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" text="" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="42" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENTS_TITLE_NAME" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="204" x="490" y="49"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="42" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENTS_TITLE_NAME" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_ALBUM_CONTENT_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="308" x="946" y="49"/>\r
+ </Label>\r
+</ScenePanel>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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.201303041025" Dversion="20120315">\r
+ <Panel id="IDL_ALBUM_INFO_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="158" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="158" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Label id="IDC_THUMB_INNER_STROKE_LABEL" parent="IDL_ALBUM_INFO_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_ALBUM_INFO_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="20" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_ALBUM_INFO_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="20"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALBUM_INFO_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="20" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_ALBUM_INFO_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="20"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_THUMBNAIL" parent="IDL_ALBUM_INFO_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_THUMB_INNER_STROKE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="2" marginRight="0" marginTop="2" mode="Portrait" rightRelation="None" rightRelationType="" topRelation="IDC_THUMB_INNER_STROKE_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="22"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMB_INNER_STROKE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="2" marginRight="0" marginTop="2" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_THUMB_INNER_STROKE_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="22"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENTS_TITLE_NAME" parent="IDL_ALBUM_INFO_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMB_INNER_STROKE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="20" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_ALBUM_INFO_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="334" x="154" y="20"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMB_INNER_STROKE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="20" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_ALBUM_INFO_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="894" x="154" y="20"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENTS_ARTIST_NAME" parent="IDL_ALBUM_INFO_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="" centerHorizontal="false" centerVertical="false" height="42" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMB_INNER_STROKE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_ALBUM_INFO_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="540" x="154" y="72"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMB_INNER_STROKE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_ALBUM_INFO_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_CONTENTS_TITLE_NAME" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1100" x="154" y="74"/>\r
+ </Label>\r
+ <Label id="IDC_PLAY_CONTENT_COUNT" parent="IDL_ALBUM_INFO_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" text="" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL3" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="20" mode="Portrait" rightRelation="IDL_ALBUM_INFO_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALBUM_INFO_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="206" x="488" y="20"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENTS_TITLE_NAME" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="20" mode="Landscape" rightRelation="IDL_ALBUM_INFO_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALBUM_INFO_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="206" x="1048" y="20"/>\r
+ </Label>\r
+</ScenePanel>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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.201303041025" Dversion="20120315">\r
+ <Panel id="IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="140" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="140" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Button id="IDC_BUTTON1" parent="IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL">\r
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="00_check_bg_dim.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="00_check_bg_press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="26" y="38"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="26" y="38"/>\r
+ </Button>\r
+ <Label id="IDC_THUMBNAIL_INNER_STROKE" parent="IDL_CONTENTS_ARTIST_EDITOR_ITEM_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="true" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="105" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="105" y="16"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="105" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="105" y="16"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENTS_THUMBNAIL" parent="IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="34_thumb_07.png" 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="true" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="107" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="107" y="18"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="107" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="107" y="18"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENTS_ARTIST_NAME" parent="IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="64" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="22" mode="Portrait" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="455" x="239" y="38"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="64" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="22" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1015" x="239" y="38"/>\r
+ </Label>\r
+</ScenePanel>\r
<Popup id="IDL_CONTENTS_DELETE_POPUP">\r
<property color="" titleText="" titleTextColor=""/>\r
<layout height="220" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688"/>\r
- <layout height="220" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="1280"/>\r
+ <layout height="220" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688"/>\r
</Popup>\r
<Button id="IDC_DELETE_BUTTON" parent="IDL_CONTENTS_DELETE_POPUP">\r
<property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="#F8F6EF" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="#D05252" disabledColorOpacity="40" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#D05252" normalColorOpacity="100" normalTextColor="#F8F6EF" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="#C24747" pressedColorOpacity="100" pressedTextColor="" text="Delete" textSize="36" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="None" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="334" y="126"/>\r
- <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="None" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="610" x="630" y="126"/>\r
+ <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="334" y="126"/>\r
+ <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="334" y="126"/>\r
</Button>\r
<Button id="IDC_CANCEL_BUTTON" parent="IDL_CONTENTS_DELETE_POPUP">\r
<property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Cancel" textSize="36" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="None" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="0" y="126"/>\r
- <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="None" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="610" x="0" y="126"/>\r
+ <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="0" y="126"/>\r
+ <layout bottomRelation="IDL_CONTENTS_DELETE_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="0" y="126"/>\r
</Button>\r
<Label id="IDC_LABEL_DELETE_Q" parent="IDL_CONTENTS_DELETE_POPUP">\r
<property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" text="Delete?" textColor="" textSize="42" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="40" marginLeft="0" marginRight="0" marginTop="32" mode="Portrait" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_DELETE_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="32"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="32" mode="Landscape" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_DELETE_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1240" x="0" y="32"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_DELETE_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="32" mode="Landscape" rightRelation="IDL_CONTENTS_DELETE_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_DELETE_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="32"/>\r
</Label>\r
</ScenePopup>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\r
+ This XML file was automatically generated by UiBuilder - do not modify by hand.\r
+-->\r
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">\r
+<Scene Bversion="2.0.0.201303041025" Dversion="20120315">\r
+ <LogicalCoordinate>720</LogicalCoordinate>\r
+ <Form id="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundColor="" backgroundColorOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>\r
+ <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>\r
+ <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>\r
+ </Form>\r
+ <Footer>\r
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/>\r
+ <itemSet/>\r
+ </Footer>\r
+ <Label id="IDC_TITLE_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="CONTENT NAME" textColor="#3B73B6" textSize="56" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="16" marginRight="0" marginTop="32" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="678" x="16" y="32"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="68" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="16" marginRight="28" marginTop="32" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1236" x="16" y="32"/>\r
+ </Label>\r
+ <Label id="IDC_ARTIST_NAME_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Artist name" textColor="#4A4947" textSize="37" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="16" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="678" x="16" y="100"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="40" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="16" marginRight="28" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1236" x="16" y="100"/>\r
+ </Label>\r
+ <Label id="IDC_MEDIA_INFO_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Media Info" textColor="#3B73B6" textSize="52" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="62" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="20" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="668" x="26" y="160"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="62" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="28" marginRight="28" marginTop="20" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1224" x="28" y="160"/>\r
+ </Label>\r
+ <Label id="IDC_NAME_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Name" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="28" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="134" x="26" y="250"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="28" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="135" x="26" y="250"/>\r
+ </Label>\r
+ <Label id="IDC_FORMAT_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Format" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="155" x="26" y="300"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="155" x="26" y="300"/>\r
+ </Label>\r
+ <Label id="IDC_SIZE_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Size" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="105" x="26" y="350"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="105" x="26" y="350"/>\r
+ </Label>\r
+ <Label id="IDC_FORWARDING_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Forwarding" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="225" x="26" y="400"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="225" x="26" y="400"/>\r
+ </Label>\r
+ <Label id="IDC_DATE_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Date created" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="250" x="26" y="450"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="250" x="26" y="450"/>\r
+ </Label>\r
+ <Label id="IDC_LOCATION_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Location" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="180" x="26" y="500"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="180" x="26" y="500"/>\r
+ </Label>\r
+ <Label id="IDC_NAME_DATA_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_NAME_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="28" mode="Portrait" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_MEDIA_INFO_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="534" x="160" y="250"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_NAME_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="28" mode="Landscape" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_MEDIA_INFO_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1093" x="161" y="250"/>\r
+ </Label>\r
+ <Label id="IDC_FORMAT_DATA_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FORMAT_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_NAME_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="513" x="181" y="300"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FORMAT_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_NAME_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1073" x="181" y="300"/>\r
+ </Label>\r
+ <Label id="IDC_SIZE_DATA_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SIZE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL2" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="563" x="131" y="350"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SIZE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_FORMAT_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1123" x="131" y="350"/>\r
+ </Label>\r
+ <Label id="IDC_FORWARDING_DATA_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FORWARDING_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SIZE_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="443" x="251" y="400"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_FORWARDING_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SIZE_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1003" x="251" y="400"/>\r
+ </Label>\r
+ <Label id="IDC_LOCATION_DATA_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LOCATION_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_DATE_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="488" x="206" y="500"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_DATE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_FORWARDING_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="978" x="276" y="450"/>\r
+ </Label>\r
+ <Label id="IDC_DATE_DATA_LABEL" parent="IDL_CONTENTS_DETAIL_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="#000000" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_DATE_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_FORWARDING_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="418" x="276" y="450"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LOCATION_LABEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="0" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LOCATION_DATA_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1048" x="206" y="500"/>\r
+ </Label>\r
+</Scene>\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.201303041025" Dversion="20120315">\r
+<ScenePanel Bversion="2.0.0.201302250944" Dversion="20120315">\r
<Panel id="IDL_CONTENTS_LIBARY_EDITOR_PANEL">\r
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
<layout height="888" mode="Portrait" type="LAYOUT_RELATIVE" width="600" x="0" y="0"/>\r
<layout bottomRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="800" x="0" y="552"/>\r
</Label>\r
<TableView id="IDC_CONTENTS_EDIT_TABLEVIEW" parent="IDL_CONTENTS_LIBARY_EDITOR_PANEL">\r
- <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
+ <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="false" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
<layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="840" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="600" x="0" y="0"/>\r
<layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="552" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="800" x="0" y="0"/>\r
</TableView>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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
+ <Panel id="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="140" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="140" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Label id="IDC_STORAGE_TYPE_ICON" parent="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="00_slider_button_brightness_02_web.png" 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="true" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="105" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="74" x="105" y="33"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="105" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="74" x="105" y="33"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENTS_ITEM_COUNT" parent="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" text="Label1" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="26" marginRight="26" marginTop="22" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="206" x="488" y="22"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="26" marginTop="22" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="206" x="1048" y="22"/>\r
+ </Label>\r
+ <Label id="IDC_FOLDER_NAME" parent="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Main text 1" textColor="" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STORAGE_TYPE_ICON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="22" mode="Portrait" rightRelation="IDC_CONTENTS_ITEM_COUNT" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="283" x="205" y="22"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STORAGE_TYPE_ICON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="22" mode="Landscape" rightRelation="IDC_CONTENTS_ITEM_COUNT" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="843" x="205" y="22"/>\r
+ </Label>\r
+ <Label id="IDC_FOLDER_PATH" parent="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Sub text2" textColor="#808080" textSize="32" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="42" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STORAGE_TYPE_ICON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="489" x="205" y="75"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_STORAGE_TYPE_ICON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_FOLDER_NAME" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1049" x="205" y="76"/>\r
+ </Label>\r
+</ScenePanel>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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
+ <Panel id="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="140" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="140" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Button id="IDC_CONTENT_CHECK_BOX_BUTTON" parent="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="00_check_bg_dim.png" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="00_check_bg.png" normalBitmapPath="00_check_bg.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="00_check_bg_press.png" pressedBitmapPath="00_check_bg_press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="26" y="38"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="26" y="38"/>\r
+ </Button>\r
+ <Label id="IDC_THUMBNAIL_INNER_STROKE" parent="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_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="true" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENT_CHECK_BOX_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="16" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="105" y="16"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CONTENT_CHECK_BOX_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="16" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="105" y="16"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_THUMBNAIL" parent="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="34_thumb_07.png" 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="true" 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="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="107" y="18"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" 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="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="107" y="18"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_TITLE_NAME" parent="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Title Name" textColor="#000000" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="IDC_THUMBNAIL_INNER_STROKE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="true" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="22" mode="Portrait" rightRelation="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="455" x="239" y="43"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="22" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1015" x="239" y="43"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_FOLDER_STORAGE_ICON" parent="IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL">\r
+ <property backgroundBitmapPath="T02_folder_storage_icon_inner_memory.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="IDC_THUMBNAIL_INNER_STROKE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="4" marginLeft="20" marginRight="4" marginTop="0" mode="Portrait" rightRelation="IDC_THUMBNAIL_INNER_STROKE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="50" x="159" y="70"/>\r
+ <layout bottomRelation="IDC_THUMBNAIL_INNER_STROKE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="4" marginLeft="26" marginRight="4" marginTop="0" mode="Landscape" rightRelation="IDC_THUMBNAIL_INNER_STROKE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="50" x="159" y="70"/>\r
+ </Label>\r
+</ScenePanel>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\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
+ <Panel id="IDL_CONTENT_LIST_FOLDER_ITEM_PANEL">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout height="140" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
+ <layout height="140" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Label id="IDC_THUMBNAIL_INNER_STROKE" parent="IDL_CONTENT_LIST_FOLDER_ITEM_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="true" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="16"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="108" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="20" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="108" x="20" y="16"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_TITLE_NAME" parent="IDL_CONTENT_LIST_FOLDER_ITEM_PANEL">\r
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Title Name" textColor="#000000" textSize="44" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="26" marginTop="22" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="540" x="154" y="43"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="54" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_THUMBNAIL_INNER_STROKE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0" marginLeft="26" marginRight="0" marginTop="22" mode="Landscape" rightRelation="IDL_CONTENT_FOLDER_LIST_ITEM_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1126" x="154" y="43"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_THUMBNAIL" parent="IDL_CONTENT_LIST_FOLDER_ITEM_PANEL">\r
+ <property backgroundBitmapPath="34_thumb_07.png" 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="true" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="22" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="18"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="104" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="22" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="104" x="22" y="18"/>\r
+ </Label>\r
+ <Label id="IDC_CONTENT_FOLDER_STORAGE_ICON" parent="IDL_CONTENT_LIST_FOLDER_ITEM_PANEL">\r
+ <property backgroundBitmapPath="T02_folder_storage_icon_inner_memory.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_TOP"/>\r
+ <layout bottomRelation="IDC_THUMBNAIL_INNER_STROKE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="4" marginLeft="0" marginRight="4" marginTop="0" mode="Portrait" rightRelation="IDC_THUMBNAIL_INNER_STROKE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="50" x="74" y="70"/>\r
+ <layout bottomRelation="IDC_THUMBNAIL_INNER_STROKE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="4" marginLeft="0" marginRight="4" marginTop="0" mode="Landscape" rightRelation="IDC_THUMBNAIL_INNER_STROKE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="50" x="74" y="70"/>\r
+ </Label>\r
+</ScenePanel>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\r
+<!--\r
+ This XML file was automatically generated by UiBuilder - do not modify by hand.\r
+-->\r
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">\r
+<Scene Bversion="2.0.0.201302250944" Dversion="20120315">\r
+ <LogicalCoordinate>720</LogicalCoordinate>\r
+ <Form id="IDL_CONTENT_LIST_FORM">\r
+ <property backgroundColor="" backgroundColorOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>\r
+ <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>\r
+ <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>\r
+ </Form>\r
+ <Footer>\r
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/>\r
+ <itemSet/>\r
+ </Footer>\r
+ <Header>\r
+ <property backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" titleIconPath="" titleText="Title Text" titleTextColor="#3B73B6"/>\r
+ <itemSet/>\r
+ </Header>\r
+ <Panel id="IDC_CONTENT_ADDITIONAL_REGISTER_BAR" parent="IDL_CONTENT_LIST_FORM">\r
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="50" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENT_LIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="0"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENT_LIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="0"/>\r
+ </Panel>\r
+ <Label id="IDC_ITEM_SELECTED_COUNT_LABEL" parent="IDL_CONTENT_LIST_FORM">\r
+ <property backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" text="%d items are selected." textColor="#FFFFFF" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="IDL_CONTENT_LIST_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="963"/>\r
+ <layout bottomRelation="IDL_CONTENT_LIST_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="436"/>\r
+ </Label>\r
+ <TableView id="IDC_CONTENT_LIST_TABLEVIEW" parent="IDL_CONTENT_LIST_FORM">\r
+ <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="false" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
+ <layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="913" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENT_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_CONTENT_ADDITIONAL_REGISTER_BAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720" x="0" y="50"/>\r
+ <layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="384" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENT_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENT_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_CONTENT_ADDITIONAL_REGISTER_BAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="52"/>\r
+ </TableView>\r
+ <Label id="IDC_NO_CONTENTS_LABEL" parent="IDL_CONTENT_LIST_FORM">\r
+ <property backgroundBitmapPath="T02_nocomposers.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" text="No Songs" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_BOTTOM"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="280" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280" x="220" y="365"/>\r
+ <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
+</Scene>\r
<Popup id="IDL_CREATE_PLAYLIST_POPUP">\r
<property color="" titleText="Title" titleTextColor=""/>\r
<layout height="630" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688"/>\r
- <layout height="576" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="1280"/>\r
+ <layout height="630" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688"/>\r
</Popup>\r
- <Button id="IDC_CANCEL_BUTTON" parent="IDL_CREATE_PLAYLIST_POPUP">\r
- <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Cancel" textSize="36" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="334" y="456"/>\r
- <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="610" x="630" y="402"/>\r
- </Button>\r
<Button id="IDC_CREATE_BUTTON" parent="IDL_CREATE_PLAYLIST_POPUP">\r
<property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Create" textSize="32" verticalAlign="ALIGN_MIDDLE"/>\r
<layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="0" y="456"/>\r
- <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="610" x="0" y="402"/>\r
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="0" y="402"/>\r
+ </Button>\r
+ <Button id="IDC_CANCEL_BUTTON" parent="IDL_CREATE_PLAYLIST_POPUP">\r
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Cancel" textSize="36" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="334" y="456"/>\r
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_CREATE_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="20" marginLeft="20" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CREATE_PLAYLIST_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="314" x="334" y="402"/>\r
</Button>\r
<TableView id="IDC_TABLEVIEW" parent="IDL_CREATE_PLAYLIST_POPUP">\r
<property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_NONE" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="436" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="0"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="385" 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="1240" x="0" y="0"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="385" 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="648" x="0" y="0"/>\r
</TableView>\r
</ScenePopup>\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_MINI_PLYAER_PANEL">\r
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
<layout height="236" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>\r
</Button>\r
<Button id="IDC_MORE_CONTEXT_MENU_BUTTON" parent="IDL_MINI_PLYAER_PANEL">\r
<property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="00_icon_more_ef.png" normalBitmapPath="00_icon_more_ef.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="00_icon_more_ef.png" pressedBitmapPath="00_icon_more_ef.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="IDL_MINI_PLYAER_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_MINI_PLYAER_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="23" marginLeft="25" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="25" y="150"/>\r
+ <layout bottomRelation="IDL_MINI_PLYAER_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="63" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_MINI_PLYAER_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="25" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="63" x="25" y="153"/>\r
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="63" 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="63" x="15" y="44"/>\r
</Button>\r
</ScenePanel>\r
<Popup id="IDL_SHARE_VIA_POPUP">\r
<property color="" titleText="Share via" titleTextColor=""/>\r
<layout height="532" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688"/>\r
- <layout height="576" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="430"/>\r
+ <layout height="532" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688"/>\r
</Popup>\r
<Button id="IDC_CANCEL_BUTTON" parent="IDL_SHARE_VIA_POPUP">\r
<property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Cancel" textSize="36" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="IDL_POPUP_LIST3" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394" x="127" y="358"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="154" 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="180" x="123" y="342"/>\r
+ <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394" x="127" y="358"/>\r
+ <layout bottomRelation="IDL_SHARE_VIA_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394" x="127" y="358"/>\r
</Button>\r
<TableView id="IDC_TABLEVIEW" parent="IDL_SHARE_VIA_POPUP">\r
<property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_NONE" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
<layout bottomRelation="IDC_CANCEL_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="338" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SHARE_VIA_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_SHARE_VIA_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="0"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="252" 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="337" x="53" y="244"/>\r
+ <layout bottomRelation="IDC_CANCEL_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="338" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SHARE_VIA_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_SHARE_VIA_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="0"/>\r
</TableView>\r
</ScenePopup>\r
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const Tizen::Graphics::Rectangle RECT_PAENL (0, 0, 720, 128);
-static const Tizen::Graphics::Rectangle RECT_ALBUM_NAME (16, 16, 500, 88);
-static const Tizen::Graphics::Rectangle RECT_ALBUM_TIME (516, 16, 188, 88);
-
-static const Tizen::Graphics::Rectangle RECT_HEADER_THUMBNAIL (16, 16, 76, 76);
-static const Tizen::Graphics::Rectangle RECT_HEADER_ALBUM_NAME (108, 9, 450, 48);
-static const Tizen::Graphics::Rectangle RECT_HEADER_ARTIST_NAME (108, 57, 450, 42);
-static const Tizen::Graphics::Rectangle RECT_HEADER_COUNT (560, 9, 144, 90);
-
-static const int X_OFFSET_EDIT_STYLE_TABLE_VIEW = 96;
static const int COUNT_MESSAGE_BOX_TIMEOUT = 3000;
AlbumContentListForm::AlbumContentListForm(void)
: ContentListForm::ContentListForm()
, ThumbnailBase::ThumbnailBase()
- , __pContentInfoPanel(null)
+ , __pThumbnail(null)
, __pPresentationModel(null)
{
AppLogDebug("ENTER");
AlbumContentListForm::OnInitializing(void)
{
AppLogDebug("ENTER");
- CreateTableview();
- CreateSelectAllCheckedButton();
- CreateCheckedCountLabel();
- CreateNoContentImage(L"IDS_MUSIC_HEADER_NO_SONGS");
-
+ SetContentListFooter();
AppLogDebug("EXIT");
return ThumbnailBase::Construct();
}
AlbumContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- result r = E_SUCCESS;
- __checkedItemCount = 0;
- DestroyPlayListPickerPopup();
- if (__pContentInfoPanel != null)
- {
- __pContentInfoPanel->RemoveAllControls();
- RemoveControl(*__pContentInfoPanel);
- __pContentInfoPanel = null;
- }
+ delete __pContextItem;
+ __pContextItem = null;
AppLogDebug("EXIT");
- return r;
+ return ContentListForm::OnTerminating();
}
void
switch (actionId)
{
- case IDA_FOOTER_BUTTON_EDIT:
+ case IDA_FOOTER_BUTTON_MORE:
{
- ToggleViewMode(true);
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_EDIT | CONTEXT_MENU_ITEM_STYLE_SEARCH, Point(X_MORE_POPUP, Y_MORE_POPUP));
}
break;
- case IDA_FOOTER_BUTTON_CANCEL:
+ case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
{
- __checkedItemCount = INIT_VALUE;
- __pSelectAllCheckedButton->SetSelected(false);
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount(__currentContentIndex));
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- ToggleViewMode(false);
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_SHARE_VIA);
}
break;
- case IDA_FOOTER_BUTTON_SEARCH:
+ case IDA_CONTEXT_MENU_ITEM_EDIT:
{
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_EDITOR);
}
break;
- case IDA_CHECK_BUTTON:
+ case IDA_CONTEXT_MENU_ITEM_SEARCH:
{
- __checkedItemCount = __pPresentationModel->GetContentCount(__currentContentIndex);
- if (__checkedItemCount > INIT_VALUE)
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- }
- CommonUtil::SetAllCheckState(true, *__pContentTableView, __pPresentationModel->GetContentCount(__currentContentIndex));
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
}
break;
- case IDA_UNCHECK_BUTTON:
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
- pFooter->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount(__currentContentIndex));
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
case IDA_FOOTER_BUTTON_DELETE:
{
- ContentManager contentManager;
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
- int iCount = 0;
-
- if (__checkedItemCount <= INIT_VALUE)
- {
- return;
- }
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
- pFooter->Invalidate(true);
-
- contentManager.Construct();
- for (iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- __pContentTableView->SetItemChecked(iCount,false);
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- contentManager.DeleteContent(pContentInfoStruct->contentId);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- AppLogDebug("__pStrContentName = %ls", __pStrContentName->GetPointer());
+ RemoveCheckedTableviewItem();
__pPresentationModel->RefreshContentList(__currentContentIndex);
+ UpdateContentListScreenState();
__pContentTableView->UpdateTableView();
- __pContentTableView->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
-
- if (__pPresentationModel->GetContentCount(__currentContentIndex) > 0)
- {
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- }
- else
- {
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- }
}
break;
case IDA_FOOTER_BUTTON_SHARE:
{
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
-
- pDataList->Construct();
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
- pDataList->Add(*(new (std::nothrow) String(L"attachment:" + pContentInfoStruct->ContentFilePath)));
-
- // __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- // pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- // pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- // pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- // __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
-
- Invalidate(true);
-
- if (__pSharePopup == null)
- {
- __pSharePopup = new (std::nothrow) SharePopup();
- __pSharePopup->Initialize();
- }
- __pSharePopup->SetShowState(true);
- __pSharePopup->Show();
- __pSharePopup->SetArguments(pDataList);
+// Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
+// Footer* pFooter = GetFooter();
+// int totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
+//
+// pDataList->Construct();
+//
+// for (int iCount = 0; iCount < totalCount; iCount++)
+// {
+// if (__pContentTableView->IsItemChecked(iCount) == true)
+// {
+// ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
+// if (pContentInfoStruct == null)
+// {
+// pDataList->RemoveAll(true);
+// delete pDataList;
+// pDataList = null;
+// return;
+// }
+// pDataList->Add(*(new (std::nothrow) String(L"attachment:" + pContentInfoStruct->ContentFilePath)));
+//
+// __pContentTableView->SetItemChecked(iCount, false);
+//
+// delete pContentInfoStruct;
+// pContentInfoStruct = null;
+// }
+// }
+// pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
+// pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
+// pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
+//
+// __checkedItemCount = INIT_VALUE;
+// CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+// CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
+//
+// Invalidate(true);
+//
+// if (__pSharePopup == null)
+// {
+// __pSharePopup = new (std::nothrow) SharePopup();
+// __pSharePopup->Initialize();
+// }
+// __pSharePopup->SetShowState(true);
+// __pSharePopup->Show();
+// __pSharePopup->SetArguments(pDataList);
}
break;
- case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
- {
- ContentManager contentManager;
- Footer* pFooter = GetFooter();
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- int totalCount = 0;
-
- if (__checkedItemCount <= 0)
- {
- return;
- }
-
- pDataList->Construct();
- contentManager.Construct();
- totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
-
- pDataList->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
-
- // __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
-
- if (IsFailed(CreatePlayListPickerPopup(pDataList)))
- {
- AppLogDebug("CreatePlayListPickerPopup failed(%s)", GetLastResult());
- return;
- }
- __pPlayListPickerPopup->SetShowState(true);
- __pPlayListPickerPopup->Show();
- //__pPlayListPickerPopup->SetCollectedContent(pDataList);
-
- // pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- // pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- // pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- // __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
-
- Invalidate(true);
- }
- break;
+// case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
+// {
+// SetCheckedTableviewItemToPlayList();
+// }
+// break;
default:
break;
}
+
+ ContentListForm::OnActionPerformed(source, actionId);
AppLogDebug("EXIT");
}
AppLogDebug("ENTER");
if (pArgs != null)
{
- __pStrSceneId = static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME));
- __pStrContentName = static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME));
+ __prevSceneId.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME)));
+// String* pStrContentName = static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME));
__currentContentIndex = static_cast<Integer*>(pArgs->GetAt(DATA_ITEM_CONTENT_TYPE))->ToInt();
__pPresentationModel = AlbumListPresentationModel::GetInstance();
__pPresentationModel->UpdateAlbumList();
__pPresentationModel->InitializeContentList(__currentContentIndex);
- }
- else
- {
- // Empty statement
- }
- ContentInformation* pContentInfoStruct = null;
- pContentInfoStruct = __pPresentationModel->GetContentInfoN(0);
+ __headerTitle.Format(255, __pPresentationModel->GetAlbumName(__currentContentIndex)->GetPointer());
- if (pContentInfoStruct == null)
- {
- return;
- }
+ ContentInformation* pContentInfoStruct = null;
+ pContentInfoStruct = __pPresentationModel->GetAlbumInfoN(__currentContentIndex);
+ if (pContentInfoStruct != null)
+ {
+ Panel* pContentInfoPanel = new (std::nothrow) Panel();
+ pContentInfoPanel->Construct(IDL_ALBUM_INFO_PANEL);
- InitializeHeader(*pContentInfoStruct);
- CreateAlbumInfoPanel(*pContentInfoStruct, __pPresentationModel->GetContentCount(__currentContentIndex));
+ Label* pHeaderThumbnailLabel = static_cast<Label*>(pContentInfoPanel->GetControl(IDC_CONTENT_THUMBNAIL));
+ pHeaderThumbnailLabel->SetBackgroundBitmap(*GetDefaultThumbnail());
- if ( __checkEdit == true)
- {
- Footer* pFooter = CommonUtil::CreateDeleteFooter(*this);
- pFooter->AddActionEventListener(*this);
+ Label* pAlbumName = static_cast<Label*>(pContentInfoPanel->GetControl(IDC_CONTENTS_TITLE_NAME));
+ pAlbumName->SetText(pContentInfoStruct->AlbumName);
+
+ Label* pArtistName = static_cast<Label*>(pContentInfoPanel->GetControl(IDC_CONTENTS_ARTIST_NAME));
+ pArtistName->SetText(pContentInfoStruct->ArtistName);
- __pContentInfoPanel->SetEnabled(false);
- __pContentInfoPanel->SetShowState(false);
+ String albumCount = null;
+ albumCount.Format(255,L"%d songs",__pPresentationModel->GetContentCount(__currentContentIndex));
+ Label* pAlbumCount = static_cast<Label*>(pContentInfoPanel->GetControl(IDC_PLAY_CONTENT_COUNT));
+ pAlbumCount->SetText(albumCount);
- __pSelectAllCheckedButton->SetEnabled(true);
- __pSelectAllCheckedButton->SetShowState(true);
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) String(IDC_CONTENT_THUMBNAIL)));
+ SetAdditionalInforamtion(*pContentInfoPanel);
- __pContentTableView->SetBounds(Rectangle(0, __pSelectAllCheckedButton->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pSelectAllCheckedButton->GetHeight())));
+ delete pContentInfoStruct;
+ pContentInfoStruct = null;
+ }
+ pArgs->RemoveAll(true);
+ delete pArgs;
}
else
{
- Footer* pFooter = CommonUtil::CreateEditFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
-
- __pContentInfoPanel->SetEnabled(true);
- __pContentInfoPanel->SetShowState(true);
-
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
-
- __pContentTableView->SetBounds(Rectangle(0, __pContentInfoPanel->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pContentInfoPanel->GetHeight())));
+ // Empty statement
}
- __pContentTableView->Invalidate(true);
+ SetContentListHeader();
+ ContentListForm::OnSceneActivatedN(previousSceneId, currentSceneId, null);
__pContentTableView->UpdateTableView();
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
AppLogDebug("EXIT");
}
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
-
- __pContentInfoPanel->RemoveAllControls();
- RemoveControl(*__pContentInfoPanel);
- __pContentInfoPanel = null;
-
CancelAllThumbnailRequest();
AppLogDebug("EXIT");
}
AlbumContentListForm::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = null;
-
+ RelativeLayout layout;
+ layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (__checkEdit)
- {
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
- }
- else
+
+ TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+ tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
}
-// pItem->SetBackgroundColor(COLOR_WHITE);
- pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
- if (pContentInfoStruct == null)
+ if (IsFailed(pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), tableViewAnnexStyle)))
{
- delete pItem;
- pItem = null;
+ AppLogDebug("Construct(Dimension(itemWidth, ITEM_HEIGHT) failed(%s)", GetErrorMessage(GetLastResult()));
return null;
}
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) String(pContentInfoStruct->contentId.ToString())));
- CreateTableViewItem(*pItem, *pContentInfoStruct);
+ ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfoStruct != null)
+ {
+ CreateTableViewItem(*pItem, *pContentInfoStruct);
+ }
delete pContentInfoStruct;
pContentInfoStruct = null;
Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
- switch (status)
- {
- case TABLE_VIEW_ITEM_STATUS_CHECKED:
- {
- Footer* pFooter = GetFooter();
- __checkedItemCount++;
- tableView.SetItemChecked(itemIndex, true);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- if (__checkedItemCount == __pPresentationModel->GetContentCount(__currentContentIndex))
- {
- __pSelectAllCheckedButton->SetSelected(true);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case TABLE_VIEW_ITEM_STATUS_UNCHECKED:
- {
- Footer* pFooter = GetFooter();
-
- __checkedItemCount--;
- tableView.SetItemChecked(itemIndex, false);
-
- if (__checkedItemCount == INIT_VALUE)
- {
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- pFooter->Invalidate(true);
- }
-
- if (__checkedItemCount != __pPresentationModel->GetContentCount(__currentContentIndex))
- {
- __pSelectAllCheckedButton->SetSelected(false);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case TABLE_VIEW_ITEM_STATUS_SELECTED:
- {
- SceneManager* pSceneManager = SceneManager::GetInstance();
- ArrayList* tempArg;
- AppAssert(pSceneManager);
- tempArg = MakePlayerSceneParam(itemIndex);
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), tempArg);
-
- if (tempArg != null)
- {
- tempArg->RemoveAll();
- delete tempArg;
- tempArg = null;
- }
- }
- break;
-
- default:
- break;
- }
- AppLogDebug("EXIT");
-}
-
-result
-AlbumContentListForm::CreateAlbumInfoPanel(const ContentInformation& contentInfo,
- const int Songs)
-{
- AppLogDebug("ENTER");
- result r = E_SUCCESS;
-
- if (__pContentInfoPanel == null)
- {
- __pContentInfoPanel = new (std::nothrow) Panel();
- __pContentInfoPanel->Construct(RECT_PAENL);
- __pContentInfoPanel->SetBackgroundColor(COLOR_PANEL_BACKGROUND_GRAY_BLUE);
- }
-
- Label* pHeaderThumbnailLabel = new (std::nothrow) Label();
- pHeaderThumbnailLabel->Construct(RECT_HEADER_THUMBNAIL, L"");
- pHeaderThumbnailLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pHeaderThumbnailLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pHeaderThumbnailLabel->SetBackgroundBitmap(*GetDefaultThumbnail());
- pHeaderThumbnailLabel->SetName(contentInfo.contentId.ToString());
-
- Label* pHeaderAlbumNameLabel = new (std::nothrow) Label();
- pHeaderAlbumNameLabel->Construct(RECT_HEADER_ALBUM_NAME, L"");
- pHeaderAlbumNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pHeaderAlbumNameLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pHeaderAlbumNameLabel->SetText(contentInfo.AlbumName);
-
- Label* pHeaderArtistNameLabel = new (std::nothrow) Label();
- pHeaderArtistNameLabel->Construct(RECT_HEADER_ARTIST_NAME, L"");
- pHeaderArtistNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pHeaderArtistNameLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pHeaderArtistNameLabel->SetText(contentInfo.ArtistName);
-
- Label* pHeaderAblumCountLabel = new (std::nothrow) Label();
- pHeaderAblumCountLabel->Construct(RECT_HEADER_COUNT, L"");
- pHeaderAblumCountLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pHeaderAblumCountLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pHeaderAblumCountLabel->SetText(CommonUtil::SetSongsString(Songs));
- pHeaderAblumCountLabel->SetName(IDS_ALBUM_CONTENT_COUNT);
-
- __pContentInfoPanel->AddControl(*pHeaderThumbnailLabel);
- __pContentInfoPanel->AddControl(*pHeaderAlbumNameLabel);
- __pContentInfoPanel->AddControl(*pHeaderArtistNameLabel);
- __pContentInfoPanel->AddControl(*pHeaderAblumCountLabel);
-
- AddControl(*__pContentInfoPanel);
+ ContentListForm::OnTableViewItemStateChanged(tableView, itemIndex, pItem, status);
AppLogDebug("EXIT");
- return r;
}
Tizen::Base::Collection::ArrayList*
return pTempList;
}
-result
-AlbumContentListForm::CreateTableViewItem(Tizen::Ui::Container& parent,
- const ContentInformation& contentInfo)
+bool
+AlbumContentListForm::IsEmptyContentList(void)
{
AppLogDebug("ENTER");
- result r = E_SUCCESS;
- Rectangle rectAlbumName = RECT_ALBUM_NAME;
- Rectangle rectAlbumTime = RECT_ALBUM_TIME;
- Label* pAlbumName = new (std::nothrow) Label();
- Label* pAlbumTime = new (std::nothrow) Label();
-
- if (__checkEdit)
+ if (__pPresentationModel->GetContentCount(__currentContentIndex) != INIT_VALUE)
{
- rectAlbumName.width = rectAlbumName.width - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
- rectAlbumTime.x = rectAlbumTime.x - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
+ return false;
}
-
- pAlbumName->Construct(rectAlbumName, L"");
- pAlbumName->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pAlbumName->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pAlbumName->SetText(contentInfo.TitleName);
-
- pAlbumTime->Construct(rectAlbumTime, L"");
- pAlbumTime->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pAlbumTime->SetTextHorizontalAlignment(ALIGNMENT_RIGHT);
- pAlbumTime->SetText(CommonUtil::GetFormatDate(contentInfo.Duration));
-
- parent.AddControl(*pAlbumName);
- parent.AddControl(*pAlbumTime);
AppLogDebug("EXIT");
- return r;
+ return true;
}
-void
-AlbumContentListForm::ToggleViewMode(bool editMode)
+ContentInformation*
+AlbumContentListForm::GetContentInformation(int index)
{
AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
+ AppLogDebug("EXIT");
+ return __pPresentationModel->GetContentInfoN(index);
+}
- if (editMode == false)
- {
- int currentAlbumContentCount = 0;
- ContentInformation* pContentInfoStruct = null;
- String pAlbumName;
- currentAlbumContentCount = __pPresentationModel->GetContentCount(__currentContentIndex);
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
- pFooter = CommonUtil::CreateEditFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
-
- if (currentAlbumContentCount > INIT_VALUE)
- {
- pContentInfoStruct = __pPresentationModel->GetContentInfoN(0);
- pAlbumName = CommonUtil::GetContentInfo(*pContentInfoStruct, *__pStrSceneId);
- SetTitleText(pAlbumName);
- }
- else
- {
- SetTitleText("No songs");
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- pFooter->SetItemEnabled(INDEX_FOOTER_EDIT, false);
- }
+result
+AlbumContentListForm::SetContentListHeader(void)
+{
+ AppLogDebug("ENTER");
- if (pContentInfoStruct != null)
- {
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
+result
+AlbumContentListForm::SetContentListFooter(void)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_MORE_ADD);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
- if ( currentAlbumContentCount > INIT_VALUE)
- {
- Label* pLabelAlbumCount = null;
- pLabelAlbumCount = static_cast<Label*>(__pContentInfoPanel->GetControl(IDS_ALBUM_CONTENT_COUNT));
- pLabelAlbumCount->SetText(CommonUtil::SetSongsString(currentAlbumContentCount));
+result
+AlbumContentListForm::CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo)
+{
+ AppLogDebug("ENTER");
+ Panel* pTableViewItem = new (std::nothrow) Panel();
- __pContentInfoPanel->SetEnabled(true);
- __pContentInfoPanel->SetShowState(true);
- }
- else
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ if (IsFailed(pTableViewItem->Construct(IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL)))
{
- __pContentInfoPanel->SetShowState(false);
- __pContentInfoPanel->Invalidate(true);
+ AppLogDebug("Construct(IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
}
-
- __checkEdit = false;
- __pContentTableView->SetBounds(Rectangle(0, __pContentInfoPanel->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pContentInfoPanel->GetHeight())));
- __pContentTableView->Invalidate(true);
- __pContentTableView->UpdateTableView();
}
else
{
- SetTitleText(ResourceManager::GetString("IDS_COM_BODY_EDIT"));
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
+ if (IsFailed(pTableViewItem->Construct(IDL_ALBUM_CONTENT_ITEM_PANEL)))
+ {
+ AppLogDebug("Construct(IDL_ALBUM_CONTENT_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
+ }
+ }
- pFooter = CommonUtil::CreateDeleteFooter(*this);
- pFooter->AddActionEventListener(*this);
+ Label* pTitleName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME));
+ pTitleName->SetText(contentInfo.TitleName);
- __pContentInfoPanel->SetEnabled(false);
- __pContentInfoPanel->SetShowState(false);
+ Label* pArtistName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENT_TOTAL_COUNT));
+ pArtistName->SetText(CommonUtil::GetFormatDate(contentInfo.Duration));
- __pSelectAllCheckedButton->SetEnabled(true);
- __pSelectAllCheckedButton->SetShowState(true);
+ parent.AddControl(*pTableViewItem);
+ CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
- __checkEdit = true;
- __pContentTableView->SetBounds(Rectangle(0, __pSelectAllCheckedButton->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pSelectAllCheckedButton->GetHeight())));
- __pContentTableView->Invalidate(true);
- __pContentTableView->UpdateTableView();
- }
- Invalidate(true);
AppLogDebug("EXIT");
+ return E_SUCCESS;
}
void
AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
Addressbook* pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
- ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
+ ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(GetActivatedContextItem());
if (pCcontentInfo == null)
{
delete pAddressbook;
AlbumContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- String contentId;
- void* pParam = null;
- Bitmap* pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+
+ Panel* pItemPanel = static_cast<Panel*>(GetRegisteredAdditionalInforamtionControl());
+
+ if (pItemPanel == null)
{
- contentId = *(static_cast<String*>(pParam));
+ AppLogDebug("pItemPanel is null");
+ return;
}
- Label* pThumbnailLabel = static_cast<Label*>(__pContentInfoPanel->GetControl(contentId));
- if (pThumbnail == null || pThumbnailLabel == null)
+ Label* pThumbnailLabel = static_cast<Label*>(pItemPanel->GetControl(IDC_CONTENT_THUMBNAIL));
+ __pThumbnail = pThumbnailInfo->GetBitmapN();
+
+ if (__pThumbnail == null || pThumbnailLabel == null)
{
- delete pThumbnail;
- delete pThumbnailInfo;
- delete static_cast<String*>(pParam);
- AppLogDebug("__pThumbnail or pThumbnailLabel is null");
+ if ( __pThumbnail != null)
+ {
+ AppLogDebug("pThumbnailLabel is null");
+ }
+ else
+ {
+ AppLogDebug("__pThumbnail or pThumbnailLabel is null");
+ }
+
+ delete __pThumbnail;
+ __pThumbnail = null;
return;
}
+ pThumbnailLabel->SetBackgroundBitmap(*__pThumbnail);
+ delete __pThumbnail;
+ __pThumbnail = null;
- pThumbnailLabel->SetBackgroundBitmap(*pThumbnail);
- pThumbnailLabel->Invalidate(false);
+ pThumbnailLabel->Invalidate(true);
+ AppLogDebug("EXIT");
+}
- delete pThumbnail;
- delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
+void
+AlbumContentListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+ AppLogDebug("ENTER");
+ ContentListForm::OnUserEventReceivedN(requestId, null);
AppLogDebug("EXIT");
}
+
+void
+AlbumContentListForm::RefreshAdditionalInformationRegisterBar(void)
+{
+ AppLogDebug("ENTER");
+ Panel* pItemPanel = static_cast<Panel*>(GetRegisteredAdditionalInforamtionControl());
+
+ if (pItemPanel == null)
+ {
+ AppLogDebug("pItemPanel is null");
+ return;
+ }
+
+ String albumCount = null;
+ albumCount.Format(255,L"%d songs",__pPresentationModel->GetContentCount(__currentContentIndex));
+ Label* pAlbumCount = static_cast<Label*>(pItemPanel->GetControl(IDC_PLAY_CONTENT_COUNT));
+ pAlbumCount->SetText(albumCount);
+
+ pAlbumCount->Invalidate(true);
+ AppLogDebug("EXIT");
+}
\ No newline at end of file
if (__pContentTableView->IsItemChecked(iCount) == true)
{
pDataList->AddItems(*(__pPresentationModel->GetContentPathListN(iCount)));
+ __pContentTableView->SetItemChecked(iCount, false);
}
}
__pPlayListPickerPopup->Initialize(this, pDataList);
__pPlayListPickerPopup->SetShowState(true);
__pPlayListPickerPopup->Show();
+
+ __checkedItemCount = INIT_VALUE;
+ SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetUnCheckedIconAllCheckButton();
+
+ CommonUtil::SetFooterItemEnabled(*pFooter, false);
+ __pContentTableView->Invalidate(true);
}
break;
delete __pPlayListPickerPopup;
__pPlayListPickerPopup = null;
}
-
- if (pArgs == null)
- {
- AppLogDebug("EXIT_1");
- return;
- }
-
- Boolean* pIsInitialize = static_cast<Boolean*>(pArgs->GetAt(0));
- if (pIsInitialize->Equals(true))
- {
- __checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
-
- int totalCount = __pPresentationModel->GetAllAlbumCount();
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- __pContentTableView->SetItemChecked(iCount, false);
- }
-
- Form* pForm = dynamic_cast<Form*>(GetParent());
- Footer* pFooter = pForm->GetFooter();
- CommonUtil::SetFooterItemEnabled(*pFooter, false);
- Invalidate(true);
- }
- pArgs->RemoveAll(true);
- delete pArgs;
}
AppLogDebug("EXIT");
}
#include "MpAlbumListPanel.h"
#include "MpPlaylistPickerPopup.h"
+#include "MpSettingPresentationModel.h"
#include "MpThumbnailInfo.h"
using namespace Tizen::Base;
case IDA_MORE_CONTEXT_MENU_SETTINGS:
{
- // NEED
+ SettingPresentationModel::GetInstance()->InitializeSettingValue();
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_MUSIC_SETTING));
}
break;
}
Label* pTitleName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME));
- pTitleName->SetText(contentInfoStruct.TitleName);
+ pTitleName->SetText(contentInfoStruct.AlbumName);
Label* pArtistName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ARTIST_NAME));
pArtistName->SetText(contentInfoStruct.ArtistName);
{
__pNoContentImageLabel = new (std::nothrow) Label();
__pNoContentImageLabel->Construct(Rectangle((pForm->GetWidth() - W_NO_CONTENT) / 2, Y_GAP_NO_CONTENT, W_NO_CONTENT, H_NO_CONTENT), L"");
- __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(NO_CONTENT_BITMAP)));
+ __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(IDB_NO_CONTENTS)));
__pNoContentTextLabel = new (std::nothrow) Label();
__pNoContentTextLabel->Construct(Rectangle(0,
pFooter->RemoveAllItems();
pFooter->RemoveActionEventListener(*this);
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
if (__pContentTableView->IsItemChecked(iCount) == true)
{
pDataList->Add(__pPresentationModel->GetCheckedContent(iCount));
- // __pContentTableView->SetItemChecked(iCount, false);
+ __pContentTableView->SetItemChecked(iCount, false);
}
}
__pPlayListPickerPopup->SetShowState(true);
__pPlayListPickerPopup->Show();
- // __checkedItemCount = INIT_VALUE;
+ __checkedItemCount = INIT_VALUE;
SetCheckedCountBalloonPopup(__checkedItemCount);
SetUnCheckedIconAllCheckButton();
- // CommonUtil::SetFooterItemEnabled(*pFooter, false);
+ CommonUtil::SetFooterItemEnabled(*pFooter, false);
__pContentTableView->Invalidate(true);
}
break;
delete __pPlayListPickerPopup;
__pPlayListPickerPopup = null;
}
-
- if (pArgs == null)
- {
- AppLogDebug("EXIT_1");
- return;
- }
-
- Boolean* pIsInitialize = static_cast<Boolean*>(pArgs->GetAt(0));
- if (pIsInitialize->Equals(true))
- {
- __checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
-
- int totalCount = __pPresentationModel->GetTotalCount();
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- __pContentTableView->SetItemChecked(iCount, false);
- }
-
- Form* pForm = dynamic_cast<Form*>(GetParent());
- Footer* pFooter = pForm->GetFooter();
- CommonUtil::SetFooterItemEnabled(*pFooter, false);
- Invalidate(true);
- }
- pArgs->RemoveAll(true);
- delete pArgs;
}
- AppLogDebug("EXIT_2");
+ AppLogDebug("EXIT");
}
void
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
#include "MpMiniPlayer.h"
#include "MpPlaylistPickerPopup.h"
#include "MpSetAsPopup.h"
+#include "MpSettingPresentationModel.h"
#include "MpSharePopup.h"
#include "MpThumbnailInfo.h"
}
break;
+ case IDA_MORE_CONTEXT_MENU_SETTINGS:
+ {
+ SettingPresentationModel::GetInstance()->InitializeSettingValue();
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_MUSIC_SETTING));
+ }
+ break;
+
default:
break;
}
__pNoContentImageLabel = new (std::nothrow) Label();
__pNoContentImageLabel->Construct(Rectangle((GetWidth() - W_NO_CONTENT) / 2, Y_GAP_NO_CONTENT, W_NO_CONTENT, H_NO_CONTENT), L"");
- __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(NO_CONTENT_BITMAP)));
+ __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(IDB_NO_CONTENTS)));
__pNoContentTextLabel = new (std::nothrow) Label();
__pNoContentTextLabel->Construct(Rectangle(0,
#include "MpArtistListPresentationModel.h"
#include "MpPlaylistPickerPopup.h"
#include "MpSharePopup.h"
+#include "MpThumbnailInfo.h"
using namespace Tizen::App;
using namespace Tizen::Base;
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");
-}
\ No newline at end of file
+}
+#endif
delete __pPlayListPickerPopup;
__pPlayListPickerPopup = null;
}
-
- if (pArgs == null)
- {
- AppLogDebug("EXIT_1");
- return;
- }
-
- Boolean* pIsInitialize = static_cast<Boolean*>(pArgs->GetAt(0));
- if (pIsInitialize->Equals(true))
- {
- __checkedItemCount = INIT_VALUE;
- SetCheckedCountBalloonPopup(__checkedItemCount);
-
- int totalCount = __pPresentationModel->GetArtistListCount();
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- __pContentTableView->SetItemChecked(iCount, false);
- }
-
- Form* pForm = dynamic_cast<Form*>(GetParent());
- Footer* pFooter = pForm->GetFooter();
- CommonUtil::SetFooterItemEnabled(*pFooter, false);
- Invalidate(true);
- }
- pArgs->RemoveAll(true);
- delete pArgs;
}
AppLogDebug("EXIT");
}
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
{
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetArtistnIfoN(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetArtistnIfoN(itemIndex);
+ if (pContentInfo == null)
{
return;
}
- ArrayList* pData = new (std::nothrow) ArrayList();
- pData->Construct();
- pData->Add(*(new (std::nothrow) String(pContentInfoStruct->ArtistName)));
+ ArrayList* pArgs = new (std::nothrow) ArrayList();
+ pArgs->Construct();
+ pArgs->Add(*(new (std::nothrow) String(IDSCN_ARTIST_LIST)));
+ pArgs->Add(*(new (std::nothrow) String(pContentInfo->ArtistName)));
+ delete pContentInfo;
- delete pContentInfoStruct;
- pContentInfoStruct = null;
-
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ARTIST_ALBUM_LIST), pData);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ARTIST_CONTENT_LIST), pArgs);
}
AppLogDebug("EXIT");
}
using namespace Tizen::App;
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
using namespace Tizen::Content;
using namespace Tizen::Graphics;
using namespace Tizen::Io;
static const int H_CREATE_TABLE_VIEW_ITEM = 70;
static const int Y_CREATE_TABLE_VIEW_ITEM = 29;
static const int W_CREATE_TABLE_VIEW_ITEM_COUNT_LABEL_ITEM = 170;
+static const int DEPTH = 3;
const wchar_t* SECTION_MUSIC_SETTING = L"MUSIC_SETTING";
const wchar_t* INITIAL_TAB = L"INITIAL_TAB"; // 0 - 7
pTabHeaderItem.Construct(IDA_HEADER_BUTTON_SONG + iCount);
pTabHeaderItem.SetText(ResourceManager::GetString(TabNameId[iCount]));
- CommonUtil::SetBackgroundBitmapHeaderItem(pTabHeaderItem, null, null, null, null);
+// 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);
+// CommonUtil::SetBackgroundBitmapHeaderItem(pTabHeaderItem, null, null, null, null);
pHeader.AddItem(pTabHeaderItem);
headItemChecked++;
}
}
void
-CommonUtil::SetBackgroundBitmapHeaderItem(Tizen::Ui::Controls::HeaderItem& headerItem, Tizen::Graphics::Bitmap* normal,
- Tizen::Graphics::Bitmap* pressed, Tizen::Graphics::Bitmap* selected, Tizen::Graphics::Bitmap* disable)
+CommonUtil::SetButtonItemUnCheckedIcon(Tizen::Ui::Controls::Header& header)
{
AppLogDebug("ENTER");
- headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_NORMAL, normal);
- headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_PRESSED, pressed);
- headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_SELECTED, selected);
- headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_DISABLED, disable);
+ header.RemoveAllButtons();
+ ButtonItem buttonItem;
+ buttonItem.Construct(BUTTON_ITEM_STYLE_ICON, IDA_HEADER_BUTTION_CHECK_BOX_CHECKED_ICON);
+
+ Bitmap* pBgNormal = ResourceManager::GetBitmapN(L"00_check_bg.png");
+ buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_NORMAL, pBgNormal);
+
+ Bitmap* pBgPressed = ResourceManager::GetBitmapN(L"00_check_bg_press.png");
+ buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_PRESSED, pBgPressed);
+
+ Bitmap* pBgDisabled = ResourceManager::GetBitmapN(L"00_check_bg_press.png");
+ buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_DISABLED, pBgDisabled);
+
+ header.SetButton(BUTTON_POSITION_RIGHT, buttonItem);
+ header.Invalidate(true);
+
+ delete pBgNormal;
+ delete pBgPressed;
+ delete pBgDisabled;
+ AppLogDebug("EXIT");
+}
+
+void
+CommonUtil::SetItemCheckedAll(bool isChecked, Tizen::Ui::Controls::TableView& tableView)
+{
+ AppLogDebug("ENTER");
+ int totalCount = tableView.GetItemCount();
+ for (int iCount = INIT_VALUE; iCount < totalCount; iCount++)
+ {
+ tableView.SetItemChecked(iCount, isChecked);
+ }
+ tableView.Invalidate(true);
+ AppLogDebug("EXIT");
+}
+
+void
+CommonUtil::SetButtonItemCheckedIcon(Tizen::Ui::Controls::Header& header)
+{
+ AppLogDebug("ENTER");
+ header.RemoveAllButtons();
+ ButtonItem buttonItem;
+ buttonItem.Construct(BUTTON_ITEM_STYLE_ICON, IDA_HEADER_BUTTION_CHECK_BOX_UNCHECKED_ICON);
+
+ Bitmap* pBgNormal = ResourceManager::GetBitmapN(L"00_check_bg.png");
+ buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_NORMAL, pBgNormal);
+
+ Bitmap* pBgPressed = ResourceManager::GetBitmapN(L"00_check_bg_press.png");
+ buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_PRESSED, pBgPressed);
+
+ Bitmap* pBgDisabled = ResourceManager::GetBitmapN(L"00_check_bg_press.png");
+ buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_DISABLED, pBgDisabled);
+
+ Bitmap* pIconChecked = ResourceManager::GetBitmapN(L"00_check_checking.png");
+ buttonItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pIconChecked);
+ buttonItem.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pIconChecked);
+ buttonItem.SetIcon(BUTTON_ITEM_STATUS_DISABLED, pIconChecked);
+
+ header.SetButton(BUTTON_POSITION_RIGHT, buttonItem);
+ header.Invalidate(true);
+
+ delete pBgNormal;
+ delete pBgPressed;
+ 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)
+//{
+// AppLogDebug("ENTER");
+// buttonItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pIconNormal);
+// buttonItem.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pIconPressed);
+// 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)
+//{
+// AppLogDebug("ENTER");
+// buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_NORMAL, pIconNormal);
+// buttonItem.SetBackgroundBitmap(BUTTON_ITEM_STATUS_PRESSED, pIconPressed);
+// 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)
+//{
+// AppLogDebug("ENTER");
+// headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_NORMAL, pIconNormal);
+// headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_PRESSED, pIconPressed);
+// headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_SELECTED, pIconDisabled);
+// headerItem.SetBackgroundBitmap(HEADER_ITEM_STATUS_DISABLED, pIconSelected);
+// AppLogDebug("EXIT");
+//}
Tizen::Ui::Controls::Popup*
CommonUtil::CreateContentDeletePopup(Tizen::Ui::IActionEventListener& listener, int deleteActionId, int cancelActionId)
return pDeletePopup;
}
+Tizen::Ui::Controls::TableViewContextItem*
+CommonUtil::CreateTableViewContextItemN(Tizen::Ui::IActionEventListener& listener, int itemWidth, FlickMenuStyle menuStyle)
+{
+ AppLogDebug("ENTER");
+ Panel* pItem = CommonUtil::CreateFlickMenuN(listener, menuStyle);
+ if (pItem == null)
+ {
+ AppLogDebug("CommonUtil::CreateSweepMenuItemN failed");
+ return null;
+ }
+
+ TableViewContextItem* pTableViewContextItem = new (std::nothrow) TableViewContextItem();
+ if (IsFailed(pTableViewContextItem->Construct(Dimension(itemWidth, ITEM_HEIGHT))))
+ {
+ AppLogDebug("Construct(Dimension(GetWidth(), ITEM_HEIGHT) failed(%s)", GetErrorMessage(GetLastResult()));
+ delete pItem;
+ delete pTableViewContextItem;
+ return null;
+ }
+
+ pTableViewContextItem->AddControl(*pItem);
+ pTableViewContextItem->SetIndividualSelectionEnabled(pItem, true);
+
+ AppLogDebug("EXIT");
+ return pTableViewContextItem;
+}
+
+Tizen::Ui::Controls::Panel*
+CommonUtil::CreateFlickMenuN(Tizen::Ui::IActionEventListener& listener, FlickMenuStyle menuStyle)
+{
+ AppLogDebug("ENTER");
+ Panel* pFlickMenuPanel = new (std::nothrow) Panel();
+ if (menuStyle ==FLICK_MENU_STYLE_TYPE_01)
+ {
+ if (IsFailed(pFlickMenuPanel->Construct(IDL_SWEEP_QUICK_MENU_ITEM_PANEL)))
+ {
+ AppLogDebug("Construct(IDL_SWEEP_QUICK_MENU_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return null;
+ }
+ }
+ else if (menuStyle == FLICK_MENU_STYLE_TYPE_02)
+ {
+ return null;
+ }
+ else
+ {
+ return null;
+ }
+
+ if (menuStyle & FLICK_MENU_ITEM_SHARE)
+ {
+ Button* pShareButton = static_cast<Button*>(pFlickMenuPanel->GetControl(IDC_SHARE_BUTTON));
+ pShareButton->SetText(ResourceManager::GetString(L"IDS_MUSIC_BUTTON_SHARE"));
+ pShareButton->SetActionId(IDA_FLICK_MENU_ITEM_SHARE);
+ pShareButton->AddActionEventListener(listener);
+ }
+
+ if (menuStyle & FLICK_MENU_ITEM_SET_AS)
+ {
+ Button* pSetButton = static_cast<Button*>(pFlickMenuPanel->GetControl(IDC_SET_AS_BUTTON));
+ pSetButton->SetText(ResourceManager::GetString(L"IDS_COM_SK_SET_AS"));
+ pSetButton->SetActionId(IDA_FLICK_MENU_ITEM_SET_AS);
+ pSetButton->AddActionEventListener(listener);
+ }
+
+ if (menuStyle & FLICK_MENU_ITEM_ADDTO)
+ {
+ Button* pAddToPlaylistButton = static_cast<Button*>(pFlickMenuPanel->GetControl(IDC_ADD_TO_BUTTON));
+ pAddToPlaylistButton->SetText(L"Add to"); //NEED STRING
+ pAddToPlaylistButton->SetActionId(IDA_FLICK_MENU_ITEM_ADDTO);
+ pAddToPlaylistButton->AddActionEventListener(listener);
+ }
+
+ if (menuStyle & FLICK_MENU_ITEM_DELETE)
+ {
+ Button* pDeleteButton = static_cast<Button*>(pFlickMenuPanel->GetControl(IDC_BUTTON_DELETE));
+ pDeleteButton->SetText(ResourceManager::GetString("IDS_MUSIC_SK3_DELETE"));
+ pDeleteButton->SetActionId(IDA_FLICK_MENU_ITEM_DELETE);
+ pDeleteButton->AddActionEventListener(listener);
+ }
+
+ AppLogDebug("EXIT");
+ return pFlickMenuPanel;
+}
+
+void
+CommonUtil::SetTextItemSelectedBalloonPopup(Tizen::Ui::Controls::Label& itemSelectedBalloonPopup, int itemCount)
+{
+ AppLogDebug("ENTER");
+ String StrSelectStr = null;
+
+ if (itemCount > INIT_VALUE)
+ {
+ String ResSelect = ResourceManager::GetString("IDS_COM_BODY_SELECTED");
+ ResSelect.Append(L"(%d)");
+
+ StrSelectStr.Format(STRING_LENGTH, ResSelect.GetPointer(), itemCount);
+ }
+ else
+ {
+ StrSelectStr.Format(STRING_LENGTH,L"Select <Noun>s");//NEED STRING
+ }
+
+ itemSelectedBalloonPopup.SetText(StrSelectStr);
+ itemSelectedBalloonPopup.SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ itemSelectedBalloonPopup.Invalidate(true);
+ AppLogDebug("EXIT");
+}
+
+result
+CommonUtil::SetShowStateVariableHeightSizeControl(Tizen::Ui::Control& control, int controlHeight, bool isShow)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetShowStateControl(control, isShow);
+ CommonUtil::SetVariableHeightSizeControl(control, controlHeight);
+ control.Invalidate(true);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+void
+CommonUtil::SetVariableHeightSizeControl(Tizen::Ui::Control& control, int controlHeight)
+{
+ AppLogDebug("ENTER");
+ if (control.GetHeight() != controlHeight)
+ {
+ control.SetSize(control.GetWidth(), controlHeight);
+ }
+ AppLogDebug("EXIT");
+}
+
+Tizen::Ui::Controls::ContextMenu*
+CommonUtil::CreateContextMenuN(const Tizen::Ui::Control& source, Tizen::Ui::IActionEventListener& listener)
+{
+ AppLogDebug("ENTER");
+ int screenHeight = CoordinateSystem::GetLogicalResolution().height;
+ Point convertPosition = source.ConvertToScreenPosition(Point(source.GetWidth() / 2, 0));
+ Point itemPoint(convertPosition.x, convertPosition.y + source.GetHeight());
+
+ ContextMenuAnchorDirection direction = CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD;
+ if (itemPoint.y > screenHeight / 2)
+ {
+ itemPoint.y = itemPoint.y - source.GetHeight();
+ direction = CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD;
+ }
+
+ ContextMenu* pContextMenu = new (std::nothrow) ContextMenu();
+ pContextMenu->Construct(Point(INIT_VALUE, INIT_VALUE), CONTEXT_MENU_STYLE_LIST, direction);
+ pContextMenu->SetName(L"IDC_CONTEXT_MENU");
+ pContextMenu->AddActionEventListener(listener);
+ pContextMenu->SetAnchorPosition(itemPoint);
+ pContextMenu->SetShowState(true);
+ AppLogDebug("EXIT");
+
+ return pContextMenu;
+}
+
+void
+CommonUtil::AddContextMenuItem(Tizen::Ui::Controls::ContextMenu& contextMenu, unsigned int contextMenuItemStyle)
+{
+ AppLogDebug("ENTER");
+ if (CONTEXT_MENU_ITEM_STYLE_CALL & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_CALL
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_MUSIC_OPT_CALL_RINGTONE"), IDA_CONTEXT_MENU_ITEM_CALL);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_SEARCH & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_SEARCH
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_COM_BODY_SEARCH"), IDA_CONTEXT_MENU_ITEM_SEARCH);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_BLUETOOTH & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_BLUETOOTH
+ contextMenu.AddItem(L"Bluetooth", IDA_CONTEXT_MENU_ITEM_BLUETOOTH);//NEED STRING
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_MESSAGE & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_MESSAGE
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"), IDA_CONTEXT_MENU_ITEM_MESSAGE);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_ALARM & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_ALARM
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_MUSIC_OPT_SETAS_ALARM_TONE"), IDA_CONTEXT_MENU_ITEM_ALARM);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_EMAIL & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_EMAIL
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), IDA_CONTEXT_MENU_ITEM_EMAIL);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_SETTINGS & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_SETTINGS
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_COM_BODY_SETTINGS"), IDA_CONTEXT_MENU_ITEM_SETTINGS);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_FOLDER_VIEW & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_FOLDER_VIEW
+ contextMenu.AddItem(L"Folder view", IDA_CONTEXT_MENU_ITEM_FOLDER_VIEW);//NEED STRING
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_CREATE_PLAYLIST & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_CREATE_PLAYLIST
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_SHARE_VIA & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_SHARE_VIA
+ contextMenu.AddItem(L"Share via", IDA_CONTEXT_MENU_ITEM_SHARE_VIA);//NEED STRING
+
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_EDIT & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_EDIT
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EDIT"), IDA_CONTEXT_MENU_ITEM_EDIT);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_CALLER & contextMenuItemStyle)
+ {
+// IDA_CONTEXT_MENU_ITEM_CALLER
+ contextMenu.AddItem(ResourceManager::GetString(L"IDS_MUSIC_OPT_SETAS_CALLER_RINGTONE"), IDA_CONTEXT_MENU_ITEM_CALLER);
+ }
+
+ if (CONTEXT_MENU_ITEM_STYLE_GO_TO_LIBARY & contextMenuItemStyle)
+ {
+// 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("ENTER");
+ if (actionId >= IDA_CONTEXT_MENU_ITEM_BASE && actionId < IDA_CONTEXT_MENU_ITEM_MAX)
+ {
+ return true;
+ }
+ AppLogDebug("EXIT");
+ return false;
+}
+
+bool
+CommonUtil::IsVaildCommonPopupActionId(int actionId)
+{
+ AppLogDebug("ENTER");
+ if (actionId >= IDA_COMMON_POPUP_BASE && actionId < IDA_COMMON_POPUP_MAX)
+ {
+ return true;
+ }
+ AppLogDebug("EXIT");
+ return false;
+}
+
+void
+CommonUtil::ShowContextMenu(Tizen::Ui::Controls::ContextMenu& contextMenu, bool isShow)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetShowStateControl(contextMenu, isShow);
+ if (isShow)
+ {
+ contextMenu.Show();
+ }
+ AppLogDebug("EXIT");
+}
+
+result
+CommonUtil::SetShowStateControl(Tizen::Ui::Control& control, bool isShow)
+{
+ AppLogDebug("ENTER");
+ if (control.GetShowState() != isShow)
+ {
+ control.SetShowState(isShow);
+ control.Invalidate(true);
+ return E_SUCCESS;
+ }
+
+ AppLogDebug("EXIT");
+ return E_FAILURE;
+}
+
void
CommonUtil::SetSimpleTitleStyle(Tizen::Ui::Controls::Header& pHeader, const Tizen::Base::String& titleText)
{
pHeader.SetStyle(HEADER_STYLE_TITLE);
pHeader.SetTitleText(titleText);
pHeader.SetTitleTextColor(COLOR_HEADER_TITLE_TEXT);
+ pHeader.Invalidate(true);
AppLogDebug("EXIT");
}
ButtonItem buttonItem;
buttonItem.Construct(BUTTON_ITEM_STYLE_ICON, actionId);
- Bitmap* iconSearch = ResourceManager::GetBitmapN(L"T02_icon_search.png");
- CommonUtil::SetIconButtonItem(buttonItem, iconSearch, iconSearch, null);
+// CommonUtil::SetButtonItemIcon(buttonItem, L"T02_icon_search.png", L"T02_icon_search.png", L"T02_icon_search.png");
pHeader.SetButton(BUTTON_POSITION_RIGHT, buttonItem);
- delete iconSearch;
-
pHeader.SetTitleTextColor(COLOR_HEADER_TITLE_TEXT);
AppLogDebug("EXIT");
}
ButtonItem buttonItem;
buttonItem.Construct(BUTTON_ITEM_STYLE_ICON, actionId);
- CommonUtil::SetIconButtonItem(buttonItem, icon, icon, null);
+// CommonUtil::SetIconButtonItem(buttonItem, icon, icon, null);
+// CommonUtil::SetButtonItemIcon(buttonItem, L"T02_icon_search.png", L"T02_icon_search.png", L"T02_icon_search.png");
pHeader.SetButton(BUTTON_POSITION_RIGHT, buttonItem);
pHeader.SetTitleTextColor(COLOR_HEADER_TITLE_TEXT);
{
case STYLE_MORE_ADD:
{
- Bitmap* bitmapMore = ResourceManager::GetBitmapN(L"00_icon_more_ef.png");
- Bitmap* bitmapMorePress = ResourceManager::GetBitmapN(L"00_icon_more.png");
+ Bitmap* bitmapMore = ResourceManager::GetBitmapN(L"00_icon_more_web.png");
+ Bitmap* bitmapMorePress = ResourceManager::GetBitmapN(L"00_icon_more_press_web.png");
ButtonItem buttonItemMore;
buttonItemMore.Construct(BUTTON_ITEM_STYLE_ICON, IDA_FOOTER_BUTTON_MORE);
buttonItemMore.SetIcon(BUTTON_ITEM_STATUS_NORMAL, bitmapMore);
}
break;
+ case STYLE_MORE_EDIT_ADD:
+ {
+ footer.SetStyle(FOOTER_STYLE_BUTTON_ICON_TEXT);
+
+ Bitmap* bitmapMore = ResourceManager::GetBitmapN(L"00_icon_more_web.png");
+ Bitmap* bitmapMorePress = ResourceManager::GetBitmapN(L"00_icon_more_press_web.png");
+
+ ButtonItem buttonItemMore;
+ buttonItemMore.Construct(BUTTON_ITEM_STYLE_ICON, IDA_FOOTER_BUTTON_MORE);
+ buttonItemMore.SetIcon(BUTTON_ITEM_STATUS_NORMAL, bitmapMore);
+ buttonItemMore.SetIcon(BUTTON_ITEM_STATUS_PRESSED, bitmapMorePress);
+ footer.SetButton(BUTTON_POSITION_LEFT,buttonItemMore);
+
+ delete bitmapMore;
+ delete bitmapMorePress;
+
+ FooterItem editButtonItem;
+ editButtonItem.Construct(IDA_FOOTER_BUTTON_EDIT);
+ editButtonItem.SetText(ResourceManager::GetString(L"IDS_COM_BODY_EDIT"));
+ footer.AddItem(editButtonItem);
+ }
+ break;
+
default:
break;
}
pRet->Unlock();
AppLogDebug("EXIT");
return pRet.release();
-}
\ No newline at end of file
+}
+
+Tizen::Base::String
+CommonUtil::SetHighDepthToEllipsisPath(const Tizen::Base::String& fullFilePath)
+{
+ AppLogDebug("ENTER");
+ StringTokenizer stringTokenizer(fullFilePath, IDS_SEPARATOR_SLASH);
+ int depthCount = stringTokenizer.GetTokenCount() - DEPTH;
+ if (depthCount <= INIT_VALUE)
+ {
+ AppLogDebug("EXIT");
+ return fullFilePath;
+ }
+
+ String folderPath(L".");
+ int iLoopCount = 0;
+ while (stringTokenizer.HasMoreTokens())
+ {
+ String token;
+ stringTokenizer.GetNextToken(token);
+ if (iLoopCount >= depthCount)
+ {
+ folderPath.Append(IDS_SEPARATOR_SLASH);
+ folderPath.Append(token);
+ }
+ iLoopCount++;
+ }
+
+ AppLogDebug("EXIT");
+ return folderPath;
+}
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()
, ThumbnailBase::ThumbnailBase()
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
+#endif
__pNoContentImageLabel = new (std::nothrow) Label();
__pNoContentImageLabel->Construct(Rectangle((pForm->GetWidth() - W_NO_CONTENT) / 2, Y_GAP_NO_CONTENT, W_NO_CONTENT, H_NO_CONTENT), L"");
- __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(NO_CONTENT_BITMAP)));
+ __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(IDB_NO_CONTENTS)));
__pNoContentTextLabel = new (std::nothrow) Label();
__pNoContentTextLabel->Construct(Rectangle(0,
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-//#define CONTENT_SIZE_BYTE(size) ((size < 1000))
-//#define CONTENT_SIZE_KBYTE(size) ((size < 1000) && (size < 999999))
-//#define CASTING_LONG_TO_DOUBLE(value) (static_cast<double>(value + 0.0))
-
-static const int TOTAL_ITEM_COUNT = 7;
-static const int DETAIL_ITEM_HEIGHT = 112;
-//static const double DEVISION_VALUE = 1024.0;
-static const Tizen::Graphics::Rectangle RECT_ITEM (16, 36, 468, 50);
-static const Tizen::Graphics::Rectangle RECT_TITLE_LABEL (16, 13, 468, 48);
-static const Tizen::Graphics::Rectangle RECT_DESCRIPTION_LABEL (16, 61, 468, 38);
-
-enum DetailItemId
-{
- CONTENT_INFO = 0,
- CONTENT_NAME,
- CONTENT_FORMAT,
- CONTENT_SIZE,
- CONTENT_FORWARDING,
- CONTENT_DATE_CREATED,
- CONTENT_LOCATION,
- CONTENT_END
-};
-
-static const Tizen::Graphics::Rectangle RECT_THUMBNAIL_LABEL (16, 16, 122, 122);
-static const Tizen::Graphics::Rectangle RECT_TABLE_VIEW (164, 0, 556, 1280 - (108 + 114 + 50));
+static const int SCALE_MBYTE = (1024 * 1024);
+static const int SCALE_KBYTE = (1024);
+static const int DECIMAL_ROUNDING = 10;
ContentDetailForm::ContentDetailForm(void)
- : __pContentTableView(null)
- , __pThumbnailLabel(null)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
ContentDetailForm::~ContentDetailForm(void)
{
AppLogDebug("ENTER");
- delete [] __pItemTitle;
- delete [] __pItemDescription;
AppLogDebug("EXIT");
}
ContentDetailForm::Initialize(void)
{
AppLogDebug("ENTER");
- Construct(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+ Construct(IDL_CONTENTS_DETAIL_FORM);
AppLogDebug("EXIT");
return true;
}
AppLogDebug("ENTER");
result r = E_SUCCESS;
- __pPlayerPresentationModel = PlayerPresentationModel::GetInstance();
-
- Header* pHeader = null;
Footer* pFooter = null;
-
- __pItemTitle = new (std::nothrow) String[CONTENT_END];
- __pItemDescription = new (std::nothrow) String[CONTENT_END];
-
- pHeader = GetHeader();
- pHeader->AddActionEventListener(*this);
-
pFooter = GetFooter();
- pFooter->SetBackButton();
pFooter->AddActionEventListener(*this);
SetFormBackEventListener(this);
- __pThumbnailLabel = new (std::nothrow) Label();
- __pThumbnailLabel->Construct(RECT_THUMBNAIL_LABEL, IDS_BLANK);
+ __pPlayerPresentationModel = PlayerPresentationModel::GetInstance();
+ int currentContentIndex = __pPlayerPresentationModel->GetCurrentContentIndex();
- AddControl(*__pThumbnailLabel);
+ String* tempPath = __pPlayerPresentationModel->GetContentPath(currentContentIndex);
+ AudioContentInfo* pAudioInfo = CommonUtil::GetAudioContentInfoN(*(tempPath));
- __pContentTableView = new (std::nothrow) TableView();
- __pContentTableView->Construct(RECT_TABLE_VIEW,
- true,
- TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT);
+ Label* pTitletName = static_cast<Label*>(GetControl(IDC_TITLE_LABEL));
+ pTitletName->SetText(pAudioInfo->GetTitle());
- __pContentTableView->AddTableViewItemEventListener(*this);
- __pContentTableView->SetItemProvider(this);
- AddControl(*__pContentTableView);
+ Label* pArtistName = static_cast<Label*>(GetControl(IDC_ARTIST_NAME_LABEL));
+ pArtistName->SetText(pAudioInfo->GetArtist());
- int currentContentIndex = __pPlayerPresentationModel->GetCurrentContentIndex();
- String* tempPath = __pPlayerPresentationModel->GetContentPath(currentContentIndex);
+ Label* pTitletNameInMediaInfo = static_cast<Label*>(GetControl(IDC_NAME_DATA_LABEL));
+ pTitletNameInMediaInfo->SetText(pAudioInfo->GetTitle());
- AudioContentInfo* pAudioInfo = CommonUtil::GetAudioContentInfoN(*(tempPath));
+ Label* pFormat = static_cast<Label*>(GetControl(IDC_FORMAT_DATA_LABEL));
+ pFormat->SetText(pAudioInfo->GetMediaFormat());
- Tizen::Base::String title = null;
- Tizen::Base::String artist = null;
- Tizen::Graphics::Bitmap* pThumbnail = null;
- Tizen::Base::String mediaFormat = null;
- Tizen::Base::String contentPath = null;
unsigned long contentSize = 0;
- bool isDrmProtected = false;
- int day = 0;
- int month = 0;
- int year = 0;
- int hour = 0;
- int minute = 0;
-
- Tizen::Base::String recordingDate = null;
- bool isMetaData = false;
+ String stringContentSize = null;
+ Label* pSize = static_cast<Label*>(GetControl(IDC_SIZE_DATA_LABEL));
+ contentSize = pAudioInfo->GetContentSize();
- if (pAudioInfo != null)
+ if ( contentSize >= SCALE_MBYTE)
{
- AppLogDebug("is not null");
- title = pAudioInfo->GetTitle();
- artist = pAudioInfo->GetArtist();
- pThumbnail = pAudioInfo->GetThumbnailN();
- mediaFormat = pAudioInfo->GetMediaFormat();
- contentPath = pAudioInfo->GetContentPath();
- contentSize = pAudioInfo->GetContentSize();
- isDrmProtected = pAudioInfo->IsDrmProtected();
- day = pAudioInfo->GetDateTime().GetDay();
- month = pAudioInfo->GetDateTime().GetMonth();
- year = pAudioInfo->GetDateTime().GetYear();
- hour = pAudioInfo->GetDateTime().GetHour();
- minute = pAudioInfo->GetDateTime().GetMinute();
- delete pAudioInfo;
+ int megaByte = ( contentSize / SCALE_MBYTE);
+ int killoByte = (((( contentSize % SCALE_MBYTE) / SCALE_KBYTE ) * DECIMAL_ROUNDING) / SCALE_KBYTE);
+
+ stringContentSize.Format(256,L"%d.%dMB", megaByte, killoByte);
}
- else
+ else if ( contentSize >= SCALE_KBYTE)
{
- AppLogDebug("is null");
- Tizen::Content::AudioMetadata* pAudioMeta = Tizen::Content::ContentManagerUtil::GetAudioMetaN(*(tempPath));
- if (pAudioMeta == null)
- {
- return E_FAILURE;
- }
-
- title = pAudioMeta->GetTitle();
- artist = pAudioMeta->GetArtist();
- pThumbnail = pAudioMeta->GetThumbnailN();
- mediaFormat = ResourceManager::GetString(L"IDS_MUSIC_BODY_UNKNOWN");
- contentPath = *(tempPath);
- recordingDate = pAudioMeta->GetRecordingDate();
- isMetaData = true;
-
- if (pAudioMeta != null)
- {
- delete pAudioMeta;
- pAudioMeta = null;
- }
+ int killoByte = ( contentSize / SCALE_KBYTE);
+ int bytes = ((( contentSize % SCALE_KBYTE) * DECIMAL_ROUNDING) / SCALE_KBYTE);
+ stringContentSize.Format(256,L"%d.%dKB", killoByte, bytes);
}
-
- if (pThumbnail == null)
+ else
{
- pThumbnail = ResourceManager::GetBitmapN(L"34_thumb_07.png");
+ stringContentSize.Format(256,L"%dB", contentSize);
}
- pThumbnail->Scale(Dimension(W_THUMBNAIL, H_THUMBNAIL));
-
- __pItemTitle[CONTENT_INFO] = ResourceManager::GetString(L"IDS_MUSIC_BODY_DETAILS_MEADIA_INFO");
- __pItemTitle[CONTENT_NAME] = ResourceManager::GetString(L"IDS_COM_BODY_DETAILS_NAME");
- __pItemTitle[CONTENT_FORMAT] = ResourceManager::GetString(L"IDS_COM_BODY_FORMAT");
- __pItemTitle[CONTENT_SIZE] = ResourceManager::GetString(L"IDS_COM_BODY_SIZE");
- __pItemTitle[CONTENT_FORWARDING] = ResourceManager::GetString(L"IDS_MUSIC_BODY_FORWARDING");
- __pItemTitle[CONTENT_DATE_CREATED] = ResourceManager::GetString(L"IDS_IV_BODY_DATE_CREATED");
- __pItemTitle[CONTENT_LOCATION] = ResourceManager::GetString(L"IDS_MUSIC_BODY_MUSIC_LOCATION");
+ pSize->SetText(stringContentSize);
- __pItemDescription[CONTENT_INFO] = IDS_BLANK;
- __pItemDescription[CONTENT_NAME] = title;
- __pItemDescription[CONTENT_FORMAT] = mediaFormat;
-
- if (isMetaData != true)
+ bool isDrmProtected = false;
+ isDrmProtected = pAudioInfo->IsDrmProtected();
+ Label* pForwarding = static_cast<Label*>(GetControl(IDC_FORWARDING_DATA_LABEL));
+ if ( isDrmProtected == true)
{
- __pItemDescription[CONTENT_SIZE].Format(256, L"%d ", contentSize);
- __pItemDescription[CONTENT_SIZE].Append(ResourceManager::GetString(L"IDS_EMAIL_BODY_BYTE"));
-
-/* if (CONTENT_SIZE_BYTE(contentSize))
- {
- __pItemDescription[CONTENT_SIZE].Append(static_cast<double>(contentSize));
- hard coding hojun.cheong
- __pItemDescription[CONTENT_SIZE].Append(L"Byte");
- }
- else if (CONTENT_SIZE_KBYTE(contentSize))
- {
- __pItemDescription[CONTENT_SIZE].Append(CASTING_LONG_TO_DOUBLE(contentSize) / DEVISION_VALUE);
- hard coding hojun.cheong
- __pItemDescription[CONTENT_SIZE].Append(L"KByte");
- }
- else
- {
- __pItemDescription[CONTENT_SIZE].Append(CASTING_LONG_TO_DOUBLE(contentSize) / DEVISION_VALUE / DEVISION_VALUE);
- hard coding hojun.cheong
- __pItemDescription[CONTENT_SIZE].Append(L"MByte");
- }*/
-
- if (isDrmProtected == true)
- {
- __pItemDescription[CONTENT_FORWARDING] = ResourceManager::GetString(L"IDS_MUSIC_BODY_IMPOSSIBLE");
- }
- else if (isDrmProtected == false)
- {
- __pItemDescription[CONTENT_FORWARDING] = ResourceManager::GetString(L"IDS_MUSIC_BODY_POSSIBLE");
- }
- else
- {
- __pItemDescription[CONTENT_FORWARDING] = ResourceManager::GetString(L"IDS_MUSIC_BODY_UNKNOWN");
- }
-
- __pItemDescription[CONTENT_DATE_CREATED].Format(20, L"%02d/%02d/%04d %02d:%02d",
- month,
- day,
- year,
- hour,
- minute);
+ pForwarding->SetText(ResourceManager::GetString(L"IDS_MUSIC_BODY_IMPOSSIBLE"));
}
else
{
- __pItemDescription[CONTENT_SIZE].Append(ResourceManager::GetString(L"IDS_MUSIC_BODY_UNKNOWN"));
- __pItemDescription[CONTENT_FORWARDING] = ResourceManager::GetString(L"IDS_MUSIC_BODY_UNKNOWN");
- if (recordingDate != null)
- {
- __pItemDescription[CONTENT_DATE_CREATED] = recordingDate;
- }
- __pItemDescription[CONTENT_DATE_CREATED] = ResourceManager::GetString(L"IDS_MUSIC_BODY_UNKNOWN");
+ pForwarding->SetText(ResourceManager::GetString(L"IDS_MUSIC_BODY_POSSIBLE"));
}
- __pItemDescription[CONTENT_LOCATION] = contentPath;
-
- pHeader->SetTitleText(title);
- pHeader->SetDescriptionText(artist);
-
- __pThumbnailLabel->SetBackgroundBitmap(*(pThumbnail));
-
- delete pThumbnail;
- pThumbnail = null;
+ String stringDate = null;
+ int day = 0;
+ int month = 0;
+ int year = 0;
+ int hour = 0;
+ int minute = 0;
- AppLogDebug("EXIT");
+ day = pAudioInfo->GetDateTime().GetDay();
+ month = pAudioInfo->GetDateTime().GetMonth();
+ year = pAudioInfo->GetDateTime().GetYear();
+ hour = pAudioInfo->GetDateTime().GetHour();
+ minute = pAudioInfo->GetDateTime().GetMinute();
+ stringDate.Format(20, L"%04d.%02d.%02d %02d:%02d",
+ year,
+ month,
+ day,
+ hour,
+ minute);
+
+ Label* pDate = static_cast<Label*>(GetControl(IDC_DATE_DATA_LABEL));
+ pDate->SetText(stringDate);
+
+ String stringContentPath = null;
+ int indexOf = 0;
+ pAudioInfo->GetContentPath().LastIndexOf(L"/", (pAudioInfo->GetContentPath().GetLength() - 1), indexOf);
+ pAudioInfo->GetContentPath().SubString(0, indexOf, stringContentPath);
+
+ Label* pLocation = static_cast<Label*>(GetControl(IDC_LOCATION_DATA_LABEL));
+ pLocation->SetText(stringContentPath);
+ Invalidate(true);
return r;
}
pSceneManager->GoBackward(BackwardSceneTransition());
AppLogDebug("EXIT");
}
-
-int
-ContentDetailForm::GetItemCount(void)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
- return TOTAL_ITEM_COUNT;
-}
-
-Tizen::Ui::Controls::TableViewItem*
-ContentDetailForm::CreateItem(const int itemIndex, int itemWidth)
-{
- AppLogDebug("ENTER");
- TableViewItem* pTableItem = new (std::nothrow) TableViewItem();
-
- pTableItem->Construct(Dimension(itemWidth, DETAIL_ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
-// pTableItem->SetBackgroundColor(COLOR_ITEM);
-
- if (itemIndex == CONTENT_INFO)
- {
- Label* pItemLabel = new (std::nothrow) Label();
- pItemLabel->Construct(RECT_ITEM, L"");
-
- pItemLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pItemLabel->SetTextConfig(38, LABEL_TEXT_STYLE_NORMAL);
- pItemLabel->SetText(__pItemTitle[itemIndex]);
- pTableItem->AddControl(*pItemLabel);
- }
- else
- {
- Label* pTitleItemLabel = new (std::nothrow) Label();
- Label* pDescriptionItemLabel = new (std::nothrow) Label();
-
- pTitleItemLabel->Construct(RECT_TITLE_LABEL, L"");
- pTitleItemLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pTitleItemLabel->SetTextConfig(35, LABEL_TEXT_STYLE_NORMAL);
-
- pDescriptionItemLabel->Construct(RECT_DESCRIPTION_LABEL, L"");
- pDescriptionItemLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pDescriptionItemLabel->SetTextConfig(32, LABEL_TEXT_STYLE_NORMAL);
-
- pTitleItemLabel->SetText(__pItemTitle[itemIndex]);
- pDescriptionItemLabel->SetText(__pItemDescription[itemIndex]);
-
- pTableItem->AddControl(*pTitleItemLabel);
- pTableItem->AddControl(*pDescriptionItemLabel);
- }
-
- AppLogDebug("EXIT");
- return pTableItem;
-}
-
-bool
-ContentDetailForm::DeleteItem(const int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
- return null;
-}
-
-void
-ContentDetailForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
-}
-
-int
-ContentDetailForm::GetDefaultItemHeight(void)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
- return ITEM_HEIGHT;
-}
-
-void
-ContentDetailForm::OnTableViewItemStateChanged(Tizen::Ui::Controls::TableView& tableView,
- int itemIndex,
- Tizen::Ui::Controls::TableViewItem* pItem,
- Tizen::Ui::Controls::TableViewItemStatus status)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
-}
-
-void
-ContentDetailForm::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView,
- int itemIndex,
- Tizen::Ui::Controls::TableViewContextItem* pContextItem,
- bool activated)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
-}
-
-void
-ContentDetailForm::OnTableViewItemReordered(Tizen::Ui::Controls::TableView& tableView,
- int itemIndexFrom,
- int itemIndexTo)
-{
- AppLogDebug("ENTER");
- AppLogDebug("EXIT");
-}
\ No newline at end of file
using namespace Tizen::Ui::Controls;\r
\r
static const int H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP = 48;\r
-static const int H_HIDE_CHECKED_COUNT_BALLOON_TOOL_TIP = 0;\r
\r
ContentEditPanel::ContentEditPanel(void)\r
: ContentPanel::ContentPanel()\r
__pContentTableView = static_cast<TableView*>(GetControl(IDC_CONTENTS_EDIT_TABLEVIEW));\r
__pContentTableView->SetItemProvider(this);\r
__pContentTableView->AddTableViewItemEventListener(*this);\r
-\r
__pItemCheckedCountBallooPopup = static_cast<Label*>(GetControl(IDC_ITEM_SELECTED_COUNT_LABEL));\r
__pNoContentLabel = static_cast<Label*>(GetControl(IDC_NO_CONTENTS_LABEL));\r
\r
-// SetShowStateNoContent(false);\r
-\r
AppLogDebug("EXIT");\r
return E_SUCCESS;\r
}\r
ContentEditPanel::SetShowStateBalloonPopup(bool isShow)\r
{\r
AppLogDebug("ENTER");\r
+ int balloonTooltipHeight = INIT_VALUE;\r
if (isShow == true)\r
{\r
- __pItemCheckedCountBallooPopup->SetSize(__pItemCheckedCountBallooPopup->GetWidth(), H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP);\r
-\r
- __pItemCheckedCountBallooPopup->SetShowState(true);\r
- }\r
- else\r
- {\r
- __pItemCheckedCountBallooPopup->SetSize(__pItemCheckedCountBallooPopup->GetWidth(), H_HIDE_CHECKED_COUNT_BALLOON_TOOL_TIP);\r
- __pItemCheckedCountBallooPopup->SetShowState(false);\r
+ balloonTooltipHeight = H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP;\r
}\r
-\r
- __pItemCheckedCountBallooPopup->Invalidate(true);\r
AppLogDebug("EXIT");\r
- return E_SUCCESS;\r
+ return CommonUtil::SetShowStateVariableHeightSizeControl(*__pItemCheckedCountBallooPopup, balloonTooltipHeight, isShow);\r
}\r
\r
-void\r
-ContentEditPanel::ReSizingItemCheckedBalloonPopup(void)\r
-{\r
- AppLogDebug("ENTER");\r
- if (__pItemCheckedCountBallooPopup->IsEnabled() == true)\r
- {\r
- __pItemCheckedCountBallooPopup->SetSize(__pItemCheckedCountBallooPopup->GetWidth(), H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP);\r
- }\r
- else\r
- {\r
- __pItemCheckedCountBallooPopup->SetSize(__pItemCheckedCountBallooPopup->GetWidth(), H_HIDE_CHECKED_COUNT_BALLOON_TOOL_TIP);\r
- }\r
-\r
- __pItemCheckedCountBallooPopup->Invalidate(true);\r
- AppLogDebug("EXIT");\r
-}\r
-\r
-void\r
+result\r
ContentEditPanel::SetCheckedCountBalloonPopup(int itemCount)\r
{\r
AppLogDebug("ENTER");\r
- String StrSelectStr = null;\r
-\r
- if (itemCount > INIT_VALUE)\r
- {\r
- String ResSelect = ResourceManager::GetString("IDS_COM_BODY_SELECTED");\r
- ResSelect.Append(L"(%d)");\r
-\r
- StrSelectStr.Format(STRING_LENGTH, ResSelect.GetPointer(), itemCount);\r
- }\r
- else\r
- {\r
- StrSelectStr.Format(STRING_LENGTH, L"Select <Noun>s");//NEED STRING\r
- }\r
- __pItemCheckedCountBallooPopup->SetText(StrSelectStr);\r
- __pItemCheckedCountBallooPopup->SetTextHorizontalAlignment(ALIGNMENT_LEFT);\r
- if (__pItemCheckedCountBallooPopup->GetShowState() == false)\r
- {\r
- SetShowStateBalloonPopup(true);\r
- AppLogDebug("EXIT");\r
- return;\r
- }\r
-\r
- __pItemCheckedCountBallooPopup->Invalidate(true);\r
+ CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemCheckedCountBallooPopup, itemCount);\r
AppLogDebug("EXIT");\r
+ return CommonUtil::SetShowStateVariableHeightSizeControl(*__pItemCheckedCountBallooPopup, H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP, true);\r
}\r
\r
void\r
SetShowStateNoContent(false);\r
SetShowStateContentTableview(true);\r
AppLogDebug("EXIT");\r
-}
\ No newline at end of file
+}\r
+\r
+void\r
+ContentEditPanel::SetContentEditHeader(void)\r
+{\r
+ AppLogDebug("ENTER");\r
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"EDIT"); //NEED String\r
+ CommonUtil::SetButtonItemUnCheckedIcon(*GetParentHeader());\r
+ AppLogDebug("EXIT");\r
+}\r
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const int Y_GAP_TABLE_VIEW_CONTENT_ITEM = 25;
-static const int X_GAP_TABLE_VIEW_CONTENT_ITEM = 10;
-
-static const int H_DELETE_POPUP = 100;
-static const int Y_DELETE_POPUP = 10;
-static const int DELETE_WIDTH_POPUP = 600;
-static const int DELETE_HEIGHT_POPUP = 500;
+static const int H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP = 48;
ContentListForm::ContentListForm(void)
- : __itemIndex(-1)
- , __currentContentIndex(0)
- , __scrolledDistance(0)
- , __checkedItemCount(0)
- , __checkEdit(false)
- , __pStrSceneId(null)
- , __pStrContentName(null)
- , __pContentTableView(null)
- , __pSelectAllCheckedButton(null)
- , __pCheckedCountLabel(null)
- , __pSharePopup(null)
- , __pPlayListPickerPopup(null)
- , __pNoContentImageLabel(null)
- , __pNoContentTextLabel(null)
+ : __pContentTableView(null)
, __pContextItem(null)
- , __pDeletePopup(null)
- , __pShareContextMenu(null)
- , __pSetContextMenu(null)
+ , __headerTitle(L"")
+ , __prevSceneId(L"")
+ , __currentContentIndex(-1)
+ , __pContextMenu(null)
+ , __pCommonUtilPopupHandler(null)
+ , __pNoContentLabel(null)
+ ,__pAdditionalInformationRegisterBar(null)
+ ,__pItemSelectedBalloonPopup(null)
+ , __pPlayListPickerPopup(null)
+ , __pSharePopup(null)
+ , __contentListScreenMode(CONTENT_LIST_SCREEN_MODE_NORMAL)
+ , __itemIndex(-1)
+ , __checkedItemCount(0)
+ , __additionlInformationRegisterBarHeight(0)
+
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
AppLogDebug("EXIT");
}
-void
-ContentListForm::CreateNoContentImage(Tizen::Base::String noContentText)
+result
+ContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- __pNoContentImageLabel = new (std::nothrow) Label();
- __pNoContentImageLabel->Construct(Rectangle((GetWidth() - W_NO_CONTENT) / 2, Y_GAP_NO_CONTENT, W_NO_CONTENT, H_NO_CONTENT), L"");
- __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(NO_CONTENT_BITMAP)));
- AddControl(*__pNoContentImageLabel);
-
- __pNoContentImageLabel->SetEnabled(false);
- __pNoContentImageLabel->SetShowState(false);
+ DestroyPlayListPickerPopup();
+ DestroySharePopup();
+ RemovCommonPopup();
+ RemoveContextMenu();
+
+ __pNoContentLabel = null;
+ __pAdditionalInformationRegisterBar = null;
+ __pItemSelectedBalloonPopup = null;
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
- __pNoContentTextLabel = new (std::nothrow) Label();
- __pNoContentTextLabel->Construct(Rectangle(0,
- __pNoContentImageLabel->GetHeight() + __pNoContentImageLabel->GetY(),
- GetWidth(),
- H_TEXT_NO_CONTENT),
- ResourceManager::GetString(noContentText));
- __pNoContentTextLabel->SetTextConfig(FONT_SIZE_NO_CONTENT, LABEL_TEXT_STYLE_BOLD);
- AddControl(*__pNoContentTextLabel);
+result
+ContentListForm::Initialize(void)
+{
+ AppLogDebug("ENTER");
+ if (IsFailed(Form::Construct(IDL_CONTENT_LIST_FORM)))
+ {
+ AppLogDebug("Construct(IDL_CONTENT_LIST_FORM) failed(%s)", GetErrorMessage(GetLastResult()));
+ return false;
+ }
- __pNoContentTextLabel->SetEnabled(false);
- __pNoContentTextLabel->SetShowState(false);
AppLogDebug("EXIT");
+ return Construct();
}
-void
-ContentListForm::CreateTableview(void)
+result
+ContentListForm::Construct(void)
{
AppLogDebug("ENTER");
- __pContentTableView = new (std::nothrow) TableView();
- __pContentTableView->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height),
- true,
- TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT);
+ __pContentTableView = static_cast<TableView*>(GetControl(IDC_CONTENT_LIST_TABLEVIEW));
__pContentTableView->AddTableViewItemEventListener(*this);
__pContentTableView->SetItemProvider(this);
- AddControl(*__pContentTableView);
+ __pNoContentLabel = static_cast<Label*>(GetControl(IDC_NO_CONTENTS_LABEL));
+ __pItemSelectedBalloonPopup = static_cast<Label*>(GetControl(IDC_ITEM_SELECTED_COUNT_LABEL));
+ __pAdditionalInformationRegisterBar = static_cast<Panel*>(GetControl(IDC_CONTENT_ADDITIONAL_REGISTER_BAR));
+ __pAdditionalInformationRegisterBar->SetSize(INIT_VALUE, INIT_VALUE);
+
+ AddOrientationEventListener(*this);
+ GetFooter()->AddActionEventListener(*this);
+ SetFormBackEventListener(this);
AppLogDebug("EXIT");
+ return E_SUCCESS;
}
-bool
-ContentListForm::Initialize(void)
+void
+ContentListForm::SetCommonPopup(Tizen::Ui::Controls::Popup* commonUtilPopup)
{
AppLogDebug("ENTER");
- if (IsFailed(Construct(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER)))
- {
- AppLogDebug("Unable to construct ContentForm");
- return false;
- }
-
+ __pCommonUtilPopupHandler = commonUtilPopup;
+ SetShowStateCommonPopup(true);
+ __pCommonUtilPopupHandler->Show();
AppLogDebug("EXIT");
- return true;
}
-void
-ContentListForm::CreateSelectAllCheckedButton(void)
+result
+ContentListForm::SetShowStateCommonPopup(bool isShow)
{
AppLogDebug("ENTER");
- __pSelectAllCheckedButton = CommonUtil::CreateSelectAllCheckedButton(GetClientAreaBounds().width);
- __pSelectAllCheckedButton->AddActionEventListener(*this);
- AddControl(*__pSelectAllCheckedButton);
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
AppLogDebug("EXIT");
+ return CommonUtil::SetShowStateControl(*__pCommonUtilPopupHandler, isShow);
}
void
-ContentListForm::CreateCheckedCountLabel(void)
+ContentListForm::RemovCommonPopup(void)
{
AppLogDebug("ENTER");
- __pCheckedCountLabel = CommonUtil::CreateCheckedCountLabel(GetClientAreaBounds().width, GetClientAreaBounds().height);
- AddControl(*__pCheckedCountLabel);
- __pCheckedCountLabel->SetEnabled(false);
- __pCheckedCountLabel->SetShowState(false);
+ if (__pCommonUtilPopupHandler != null)
+ {
+ delete __pCommonUtilPopupHandler;
+ __pCommonUtilPopupHandler = null;
+ }
AppLogDebug("EXIT");
}
-void
-ContentListForm::CreateContextMenu(const Tizen::Ui::Control& source)
+result
+ContentListForm::CreateSharePopup(void)
{
AppLogDebug("ENTER");
- Point itemPoint;
+ DestroySharePopup();
- int screenHeight = CoordinateSystem::GetLogicalResolution().height;
- Point convertPosition = source.ConvertToScreenPosition(Point(source.GetWidth() / 2, 0));
- itemPoint.x = convertPosition.x;
- itemPoint.y = convertPosition.y + source.GetHeight();
-
- ContextMenuAnchorDirection direction = CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD;
-
- if (itemPoint.y > screenHeight / 2)
+ __pSharePopup = new (std::nothrow) SharePopup();
+ result r = __pSharePopup->Initialize();
+ if (IsFailed(r))
{
- itemPoint.y = itemPoint.y - source.GetHeight();
- direction = CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD;
+ AppLogDebug("__pSharePopup->Initialize() failed(%s)", GetErrorMessage(r));
+ DestroySharePopup();
+ return r;
}
- if (source.GetName() == SHARE_BUTTON_NAME)
- {
- if (__pShareContextMenu != null)
- {
- delete __pShareContextMenu;
- __pShareContextMenu = null;
- }
- __pShareContextMenu = new (std::nothrow) ContextMenu();
- __pShareContextMenu->Construct(Point(0, 0), CONTEXT_MENU_STYLE_LIST, direction);
- __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), IDA_SHARE_CONTEXT_MENU_EMAIL);
- __pShareContextMenu->AddActionEventListener(*this);
- __pShareContextMenu->SetAnchorPosition(itemPoint);
- __pShareContextMenu->SetShowState(true);
- __pShareContextMenu->Show();
- }
- else if (source.GetName() == SET_BUTTON_NAME)
- {
- if (__pSetContextMenu != null)
- {
- delete __pSetContextMenu;
- __pSetContextMenu = null;
- }
- __pSetContextMenu = new (std::nothrow) ContextMenu();
- __pSetContextMenu->Construct(Point(0, 0), CONTEXT_MENU_STYLE_LIST, direction);
- __pSetContextMenu->AddItem(ResourceManager::GetString(L"IDS_MUSIC_OPT_CALL_RINGTONE"), IDA_SET_CONTEXT_MENU_CALL);
- __pSetContextMenu->AddItem(ResourceManager::GetString(L"IDS_MUSIC_OPT_SETAS_CALLER_RINGTONE"), IDA_SET_CONTEXT_MENU_CALLER);
- __pSetContextMenu->AddActionEventListener(*this);
- __pSetContextMenu->SetAnchorPosition(itemPoint);
- __pSetContextMenu->SetShowState(true);
- __pSetContextMenu->Show();
- }
AppLogDebug("EXIT");
+ return E_SUCCESS;
}
void
-ContentListForm::CreateDeletePopup(void)
+ContentListForm::DestroySharePopup(void)
{
AppLogDebug("ENTER");
- __pDeletePopup = new (std::nothrow) Popup();
- __pDeletePopup->Construct(true, Dimension(DELETE_WIDTH_POPUP, DELETE_HEIGHT_POPUP));
-
- Label* pDeleteTitleLabel = new (std::nothrow) Label();
- pDeleteTitleLabel->Construct(Rectangle(0,
- 0,
- __pDeletePopup->GetClientAreaBounds().width,
- __pDeletePopup->GetClientAreaBounds().height - H_DELETE_POPUP),
- ResourceManager::GetString(L"IDS_MUSIC_POP_DELETE_Q"));
-
- Button* pPopupDeleteButton = new (std::nothrow) Button();
- pPopupDeleteButton->Construct(Rectangle(0,
- pDeleteTitleLabel->GetHeight() - Y_DELETE_POPUP,
- __pDeletePopup->GetClientAreaBounds().width / 2,
- H_DELETE_POPUP),
- ResourceManager::GetString(L"IDS_MUSIC_OPT_DELETE"));
- pPopupDeleteButton->SetActionId(IDA_DELETE_POPUP_DELETE);
- pPopupDeleteButton->AddActionEventListener(*this);
-
- Button* pPopupCancelButton = new (std::nothrow) Button();
- pPopupCancelButton->Construct(Rectangle(pPopupDeleteButton->GetX() + pPopupDeleteButton->GetWidth(),
- pPopupDeleteButton->GetY(),
- pPopupDeleteButton->GetWidth(),
- pPopupDeleteButton->GetHeight()),
- ResourceManager::GetString(L"IDS_COM_BODY_EDIT_CANCEL"));
- pPopupCancelButton->SetActionId(IDA_DELETE_POPUP_CANCEL);
- pPopupCancelButton->AddActionEventListener(*this);
-
- __pDeletePopup->AddControl(*pDeleteTitleLabel);
- __pDeletePopup->AddControl(*pPopupDeleteButton);
- __pDeletePopup->AddControl(*pPopupCancelButton);
+ if (__pSharePopup != null)
+ {
+ delete __pSharePopup;
+ __pSharePopup = null;
+ }
AppLogDebug("EXIT");
}
ContentListForm::CreatePlayListPickerPopup(Tizen::Base::Collection::IList* pDataList)
{
AppLogDebug("ENTER");
- if (__pPlayListPickerPopup != null )
- {
- DestroyPlayListPickerPopup();
- }
-
+ DestroyPlayListPickerPopup();
__pPlayListPickerPopup = new (std::nothrow) PlayListPickerPopup();
AppLogDebug("EXIT");
return __pPlayListPickerPopup->Initialize(this, pDataList);
AppLogDebug("EXIT");
}
+void
+ContentListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+ AppLogDebug("ENTER");
+ GetHeader()->AddActionEventListener(*this);
+ UpdateContentListScreenState();
+ AppLogDebug("EXIT");
+}
+
+void
+ContentListForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ AppLogDebug("ENTER");
+ GetHeader()->RemoveActionEventListener(*this);
+ AppLogDebug("EXIT");
+}
+
+void
+ContentListForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ AppLogDebug("ENTER");
+ switch (actionId)
+ {
+ case IDA_HEADER_BUTTION_CHECK_BOX_UNCHECKED_ICON:
+ {
+ ToggleAllSelectedItemButton(false);
+ }
+ break;
+
+ case IDA_HEADER_BUTTION_CHECK_BOX_CHECKED_ICON:
+ {
+ ToggleAllSelectedItemButton(true);
+ }
+ break;
+
+ case IDA_FOOTER_BUTTON_SHARE:
+ {
+ SetCheckedTableviewItemToShareVia();
+ }
+ break;
+
+ case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
+ {
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_SHARE_VIA);
+ }
+ break;
+
+ case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
+ {
+ SetCheckedTableviewItemToPlayList();
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ if (CommonUtil::IsVaildContextMenuItemActionId(actionId) == true)
+ {
+ RemoveContextMenu();
+ }
+
+ if (CommonUtil::IsVaildCommonPopupActionId(actionId) == true)
+ {
+ SetShowStateCommonPopup(false);
+ RemovCommonPopup();
+ }
+ AppLogDebug("EXIT");
+}
+
int
ContentListForm::GetItemCount(void)
{
Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ TableviewSelectedItemStateChanged(tableView, status);
+ AppLogDebug("EXIT");
+ return;
+ }
+
+ if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
+ {
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+
+ ArrayList* pSceneArg = MakePlayerSceneParam(itemIndex);
+ if (pSceneArg != null)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pSceneArg);
+ }
+ }
AppLogDebug("EXIT");
}
-result
-ContentListForm::InitializeHeader(const ContentInformation& contentInfoStruct)
+Tizen::Ui::Controls::TableViewContextItem*
+ContentListForm::CreateTableViewContextItem(FlickMenuStyle menuStyle)
{
AppLogDebug("ENTER");
- Header* pHeader = GetHeader();
- pHeader->SetStyle(HEADER_STYLE_TITLE);
+ AppLogDebug("EXIT");
+ return CommonUtil::CreateTableViewContextItemN(*this, GetWidth(), menuStyle);
+}
- __strHeaderName = CommonUtil::GetContentInfo(contentInfoStruct, *__pStrSceneId);
- pHeader->SetTitleText(__strHeaderName);
- pHeader->Invalidate(true);
+void
+ContentListForm::OnScrollPositionChanged (Tizen::Ui::Control& source, int scrollPos)
+{
+ AppLogDebug("ENTER");
+// __scrolledDistance = scrollPos;
+ AppLogDebug("EXIT");
+}
+
+void
+ContentListForm::OnScrollEndReached (Tizen::Ui::Control& source, Tizen::Ui::Controls::ScrollEndEvent type)
+{
+ AppLogDebug("ENTER");
AppLogDebug("EXIT");
- return E_SUCCESS;
}
void
-ContentListForm::SetTitleText(const Tizen::Base::String& title)
+ContentListForm::OnScrollStopped (Tizen::Ui::Control& source)
{
AppLogDebug("ENTER");
- Header* pHeader = GetHeader();
+ AppLogDebug("EXIT");
+}
- pHeader->RemoveAllButtons();
- pHeader->RemoveAllItems();
+void
+ContentListForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ AppLogDebug("ENTER");
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_NORMAL);
+ AppLogDebug("EXIT");
+ return;
+ }
- pHeader->SetTitleText(title);
- pHeader->Invalidate(true);
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+ pSceneManager->GoBackward(BackwardSceneTransition(), null);
AppLogDebug("EXIT");
}
-result
-ContentListForm::CreateTableViewContextItem(Tizen::Ui::Controls::TableViewContextItem& parent)
+void
+ContentListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
- result r = E_SUCCESS;
+ AppLogDebug("OnUserEventReceivedN %d", requestId);
+ if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
+ {
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ ToggleAllSelectedItemButton(false);
+ }
+ DestroyPlayListPickerPopup();
+ }
+ AppLogDebug("EXIT");
+}
- AppResource* pAppResource = Application::GetInstance()->GetAppResource();
- AppAssert(pAppResource);
+void
+ContentListForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+ AppLogDebug("ENTER");
+ UpdateContentListScreenState();
+ AppLogDebug("EXIT");
+}
- String buttonName = null;
+result
+ContentListForm::SetShowStateNoContent(bool isShow)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return CommonUtil::SetShowStateControl(*__pNoContentLabel, isShow);
+}
- int ButtonWidth = (parent.GetWidth() - Y_GAP_TABLE_VIEW_CONTENT_ITEM ) / 4;
- int ButtonHeight = parent.GetHeight() - (Y_GAP_TABLE_VIEW_CONTENT_ITEM * 2);
+result
+ContentListForm::SetShowStateItemSelectedBalloonPopup(bool isShow)
+{
+ AppLogDebug("ENTER");
+ int balloonTooltipHeight = INIT_VALUE;
+ if (isShow == true)
+ {
+ balloonTooltipHeight = H_SHOW_CHECKED_COUNT_BALLOON_TOOL_TIP;
+ }
+ return CommonUtil::SetShowStateVariableHeightSizeControl(*__pItemSelectedBalloonPopup, balloonTooltipHeight, isShow);
+}
- Button* pShareButton = new (std::nothrow) Button();
- pShareButton->Construct(Rectangle(X_GAP_TABLE_VIEW_CONTENT_ITEM, Y_GAP_TABLE_VIEW_CONTENT_ITEM, ButtonWidth, ButtonHeight));
- pShareButton->SetText(ResourceManager::GetString(L"IDS_MUSIC_BUTTON_SHARE"));
- pShareButton->SetName(SHARE_BUTTON_NAME);
- pShareButton->SetTextSize(FONT_SIZE);
- pShareButton->SetActionId(IDA_FLICK_BUTTON_SHARE);
- pShareButton->AddActionEventListener(*this);
+result
+ContentListForm::SetShowStateAdditionalInformationRegisterBar(bool isShow)
+{
+ AppLogDebug("ENTER");
+ int additionalInformationHeight = INIT_VALUE;
+ if (isShow == true)
+ {
+ additionalInformationHeight = __additionlInformationRegisterBarHeight;
+ }
+ return CommonUtil::SetShowStateVariableHeightSizeControl(*__pAdditionalInformationRegisterBar, additionalInformationHeight, isShow);
+}
- Button* pSetButton = new (std::nothrow) Button();
- pSetButton->Construct(Rectangle(pShareButton->GetBounds().x + ButtonWidth, Y_GAP_TABLE_VIEW_CONTENT_ITEM, ButtonWidth, ButtonHeight));
- pSetButton->SetText(ResourceManager::GetString(L"IDS_COM_SK_SET"));
- pSetButton->SetName(SET_BUTTON_NAME);
- pSetButton->SetTextSize(FONT_SIZE);
- pSetButton->SetActionId(IDA_FLICK_BUTTON_SET);
- pSetButton->AddActionEventListener(*this);
+result
+ContentListForm::SetShowStateContentTableview(bool isShow)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return CommonUtil::SetShowStateControl(*__pContentTableView, isShow);
+}
- Button* pAddToPlaylistButton = new (std::nothrow) Button();
- pAddToPlaylistButton->Construct(Rectangle(pSetButton->GetBounds().x + ButtonWidth, Y_GAP_TABLE_VIEW_CONTENT_ITEM, ButtonWidth, ButtonHeight));
- pAddToPlaylistButton->SetText(ResourceManager::GetString(L"IDS_MUSIC_BUTTON2_ADD_TO_PLAYLIST"));
- pAddToPlaylistButton->SetTextSize(FONT_SIZE);
- pAddToPlaylistButton->SetActionId(IDA_FLICK_BUTTON_ADD_TO_PALYLIST);
- pAddToPlaylistButton->AddActionEventListener(*this);
+result
+ContentListForm::SetAdditionalInforamtion(Tizen::Ui::Control& control)
+{
+ AppLogDebug("ENTER");
+ if (IsExistAdditionalInforamtion() == false)
+ {
+ Dimension dimension = control.GetSize();
+ __additionlInformationRegisterBarHeight = dimension.height;
+ __pAdditionalInformationRegisterBar->AddControl(control);
+ CommonUtil::SetLayoutFitToContainer(*__pAdditionalInformationRegisterBar, control);
+ __pAdditionalInformationRegisterBar->SetSize(dimension);
+ __pAdditionalInformationRegisterBar->Invalidate(true);
+ return E_SUCCESS;
+ }
+ AppLogDebug("EXIT");
+ return E_FAILURE;
+}
- Button* pDeleteButton = new (std::nothrow) Button();
- pDeleteButton->Construct(Rectangle(pAddToPlaylistButton->GetBounds().x + ButtonWidth, Y_GAP_TABLE_VIEW_CONTENT_ITEM, ButtonWidth, ButtonHeight));
- pDeleteButton->SetText(ResourceManager::GetString("IDS_MUSIC_SK3_DELETE"));
- pDeleteButton->SetTextSize(FONT_SIZE);
- pDeleteButton->SetActionId(IDA_FLICK_BUTTON_DELETE);
- pDeleteButton->AddActionEventListener(*this);
+Tizen::Ui::Control*
+ContentListForm::GetRegisteredAdditionalInforamtionControl(void)
+{
+ AppLogDebug("ENTER");
+ if (IsExistAdditionalInforamtion() == false)
+ {
+ AppLogDebug("AdditionalInforamtion is not Registered");
+ return null;
+ }
- parent.SetIndividualSelectionEnabled(pShareButton, true);
- parent.SetIndividualSelectionEnabled(pSetButton, true);
- parent.SetIndividualSelectionEnabled(pAddToPlaylistButton, true);
- parent.SetIndividualSelectionEnabled(pDeleteButton, true);
+ AppLogDebug("EXIT");
+ return __pAdditionalInformationRegisterBar->GetControl(INIT_VALUE);
+}
- parent.AddControl(*pShareButton);
- parent.AddControl(*pSetButton);
- parent.AddControl(*pAddToPlaylistButton);
- parent.AddControl(*pDeleteButton);
+bool
+ContentListForm::IsExistAdditionalInforamtion(void)
+{
+ AppLogDebug("ENTER");
+ if (__pAdditionalInformationRegisterBar!= null && __pAdditionalInformationRegisterBar->GetControlCount() != INIT_VALUE)
+ {
+ AppLogDebug("EXIT");
+ return true;
+ }
+ AppLogDebug("EXIT");
+ return false;
+}
+void
+ContentListForm::RemoveAdditionalInforamtion(void)
+{
+ AppLogDebug("ENTER");
+ if (__pAdditionalInformationRegisterBar != null)
+ {
+ __additionlInformationRegisterBarHeight = INIT_VALUE;
+ __pAdditionalInformationRegisterBar->RemoveAllControls();
+ }
AppLogDebug("EXIT");
- return r;
}
void
-ContentListForm::OnScrollPositionChanged (Tizen::Ui::Control& source, int scrollPos)
+ContentListForm::UpdateContentListScreenState(void)
+{
+ AppLogDebug("ENTER");
+ if (IsEmptyContentList() == true)
+ {
+ SetShowStateContentTableview(false);
+ SetShowStateNoContent(true);
+ SetShowStateItemSelectedBalloonPopup(false);
+ SetShowStateAdditionalInformationRegisterBar(false);
+ AppLogDebug("EXIT");
+ return;
+ }
+
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ SetShowStateItemSelectedBalloonPopup(true);
+ SetShowStateAdditionalInformationRegisterBar(false);
+ }
+ else
+ {
+ SetShowStateItemSelectedBalloonPopup(false);
+ SetShowStateAdditionalInformationRegisterBar(true);
+ }
+
+ SetShowStateNoContent(false);
+ SetShowStateContentTableview(true);
+ AppLogDebug("EXIT");
+}
+
+result
+ContentListForm::CreateContextMenuN(const Tizen::Ui::Control& source)
{
AppLogDebug("ENTER");
- __scrolledDistance = scrollPos;
+ RemoveContextMenu();
+ __pContextMenu = CommonUtil::CreateContextMenuN(source, *this);
+ if (__pContextMenu != null)
+ {
+ return E_SUCCESS;
+ }
+
+ return E_FAILURE;
+}
+
+result
+ContentListForm::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;
}
void
-ContentListForm::OnScrollEndReached (Tizen::Ui::Control& source, Tizen::Ui::Controls::ScrollEndEvent type)
+ContentListForm::RemoveContextMenu(void)
+{
+ AppLogDebug("ENTER");
+ if (__pContextMenu != null)
+ {
+ delete __pContextMenu;
+ __pContextMenu = null;
+ }
+ AppLogDebug("EXIT");
+}
+
+ContentListScreenMode
+ContentListForm::GetContentListScreenMode(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __contentListScreenMode;
+}
+
+result
+ContentListForm::SetTextItemSelectedBalloonPopup(int itemCount)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemSelectedBalloonPopup, itemCount);
+ AppLogDebug("EXIT");
+ return CommonUtil::SetShowStateVariableHeightSizeControl(*__pItemSelectedBalloonPopup, 48, true);
+}
+
+result
+ContentListForm::ToggleContentListScreenMode(ContentListScreenMode screenMode)
+{
+ AppLogDebug("ENTER");
+ if (IsFailed(SetContentListScreenMode(screenMode)))
+ {
+ AppLogDebug("SetContentListScreenMode() failed(%s)", GetErrorMessage(E_FAILURE));
+ return E_FAILURE;
+ }
+
+ if (screenMode == CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ SetContentListHeader();
+ SetContentListFooter();
+ __checkedItemCount = INIT_VALUE;
+ }
+ else
+ {
+ if (screenMode == CONTENT_LIST_SCREEN_MODE_EDITOR)
+ {
+ GetHeader()->SetTitleText(L"EDIT"); //NEED String
+ CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_ADDTO_DELETE_ADD);
+ }
+ else if (screenMode == CONTENT_LIST_SCREEN_MODE_SHARE_VIA)
+ {
+ GetHeader()->SetTitleText(L"Share via"); //NEED String
+ 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;
+}
+
+result
+ContentListForm::SetContentListScreenMode(ContentListScreenMode screenMode)
+{
+ AppLogDebug("ENTER");
+ if (screenMode == CONTENT_LIST_SCREEN_MODE_MAX)
+ {
+ AppLogDebug("Wrong input ScreenMode(CONTENT_LIST_SCREEN_MODE_MAX)");
+ return E_FAILURE;
+ }
+ __contentListScreenMode = screenMode;
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+result
+ContentListForm::RemoveContentAt(const Tizen::Content::ContentId& contentId)
+{
+ AppLogDebug("ENTER");
+ ContentManager contentManager;
+ contentManager.Construct();
+
+ if (IsFailed(contentManager.DeleteContent(contentId)))
+ {
+ AppLogDebug("DeleteContent(%ls) failed", contentId.ToString().GetPointer());
+ return GetLastResult();
+ }
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+int
+ContentListForm::GetActivatedContextItem(void)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
+ return __itemIndex;
}
void
-ContentListForm::OnScrollStopped (Tizen::Ui::Control& source)
+ContentListForm::ToggleAllSelectedItemButton(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("EXIT");
}
void
-ContentListForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+ContentListForm::TableviewSelectedItemStateChanged(Tizen::Ui::Controls::TableView& tableView, Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
- SceneManager* pSceneManager = SceneManager::GetInstance();
- AppAssert(pSceneManager);
- pSceneManager->GoBackward(BackwardSceneTransition(), null);
+ if (status == TABLE_VIEW_ITEM_STATUS_UNCHECKED)
+ {
+ if (tableView.GetItemCount() == __checkedItemCount)
+ {
+ CommonUtil::SetButtonItemUnCheckedIcon(*GetHeader());
+ }
+
+ __checkedItemCount--;
+ if (__checkedItemCount == INIT_VALUE)
+ {
+ CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
+ }
+ }
+ else if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+ {
+ if (__checkedItemCount == INIT_VALUE)
+ {
+ CommonUtil::SetFooterItemEnabled(*GetFooter(), true);
+ }
+
+ __checkedItemCount++;
+ if (tableView.GetItemCount() == __checkedItemCount)
+ {
+ CommonUtil::SetButtonItemCheckedIcon(*GetHeader());
+ }
+ }
+
+ CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemSelectedBalloonPopup, __checkedItemCount);
AppLogDebug("EXIT");
}
void
-ContentListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+ContentListForm::RemoveCheckedTableviewItem(void)
{
AppLogDebug("ENTER");
- AppLogDebug("OnUserEventReceivedN %d", requestId);
- if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
+ int totalCount = __pContentTableView->GetItemCount();
+ for (int iCount = 0; iCount < totalCount; iCount++)
+ {
+ if (__pContentTableView->IsItemChecked(iCount) == true)
+ {
+ __pContentTableView->SetItemChecked(iCount, false);
+ ContentInformation* pContentInfo = GetContentInformation(iCount);
+ RemoveContentAt(pContentInfo->contentId);
+ delete pContentInfo;
+ }
+ }
+
+ __checkedItemCount = INIT_VALUE;
+ CommonUtil::SetButtonItemUnCheckedIcon(*GetHeader());
+ CommonUtil::SetTextItemSelectedBalloonPopup(*__pItemSelectedBalloonPopup, __checkedItemCount);
+ CommonUtil::SetFooterItemEnabled(*GetFooter(), false);
+ AppLogDebug("EXIT");
+}
+
+result
+ContentListForm::SetCheckedTableviewItemToPlayList(void)
+{
+ AppLogDebug("ENTER");
+ Tizen::Base::Collection::ArrayList* pContentList = new (std::nothrow) ArrayList();
+ if (IsFailed(pContentList->Construct()))
+ {
+ AppLogDebug("pContentList->Construct failed(%s)", GetErrorMessage(GetLastResult()));
+ delete pContentList;
+ return E_FAILURE;
+ }
+
+ int totalCount = __pContentTableView->GetItemCount();
+ for (int iCount = 0; iCount < totalCount; iCount++)
{
+ if (__pContentTableView->IsItemChecked(iCount) == true)
+ {
+ ContentInformation* pContentInfo = GetContentInformation(iCount);
+ if (pContentInfo == null)
+ {
+ AppLogDebug("GetContentInformation(%d) is null", iCount);
+ pContentList->RemoveAll();
+ delete pContentList;
+ return E_FAILURE;
+ }
+
+ pContentList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
+ delete pContentInfo;
+ }
+ }
+
+ if (IsFailed(CreatePlayListPickerPopup(pContentList)))
+ {
+ AppLogDebug("CreatePlayListPickerPopup failed(%s)", GetLastResult());
+ pContentList->RemoveAll();
+ delete pContentList;
DestroyPlayListPickerPopup();
+ return E_FAILURE;
+ }
+
+ __pPlayListPickerPopup->SetShowState(true);
+ __pPlayListPickerPopup->Show();
+
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+void
+ContentListForm::RefreshAdditionalInformationRegisterBar(void)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+}
+
+result
+ContentListForm::SetCheckedTableviewItemToShareVia(void)
+{
+ AppLogDebug("ENTER");
+ Tizen::Base::Collection::ArrayList* pContentList = new (std::nothrow) ArrayList();
+ if (IsFailed(pContentList->Construct()))
+ {
+ AppLogDebug("pContentList->Construct failed(%s)", GetErrorMessage(GetLastResult()));
+ delete pContentList;
+ return E_FAILURE;
+ }
+
+ int totalCount = __pContentTableView->GetItemCount();
+ for (int iCount = 0; iCount < totalCount; iCount++)
+ {
+ if (__pContentTableView->IsItemChecked(iCount) == true)
+ {
+ ContentInformation* pContentInfo = GetContentInformation(iCount);
+ if (pContentInfo == null)
+ {
+ AppLogDebug("GetContentInformation(%d) is null", iCount);
+ pContentList->RemoveAll();
+ delete pContentList;
+ return E_FAILURE;
+ }
+
+ pContentList->Add(*(new (std::nothrow) String(L"attachment:" + pContentInfo->ContentFilePath)));
+ delete pContentInfo;
+ }
+ }
+
+ if (IsFailed(CreateSharePopup()))
+ {
+ AppLogDebug("CreatePlayListPickerPopup failed(%s)", GetLastResult());
+ pContentList->RemoveAll();
+ delete pContentList;
+ DestroySharePopup();
+ return E_FAILURE;
}
+
+ __pSharePopup->SetArguments(pContentList);
+ __pSharePopup->SetShowState(true);
+ __pSharePopup->Show();
+
+ ToggleAllSelectedItemButton(false);
+
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+result
+ContentListForm::SetActivatedContextItemToPlaylist(void)
+{
+ AppLogDebug("ENTER");
+ Tizen::Base::Collection::ArrayList* pContentList = new (std::nothrow) ArrayList();
+ if (IsFailed(pContentList->Construct()))
+ {
+ AppLogDebug("pContentList->Construct failed(%s)", GetErrorMessage(GetLastResult()));
+ delete pContentList;
+ return E_FAILURE;
+ }
+
+ ContentInformation* pContentInfo = GetContentInformation(GetActivatedContextItem());
+ if (pContentInfo == null)
+ {
+ delete pContentList;
+ AppLogDebug("GetContentInformation(%d) is null", GetActivatedContextItem());
+ return E_FAILURE;
+ }
+
+ pContentList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
+
+ if (IsFailed(CreatePlayListPickerPopup(pContentList)))
+ {
+ AppLogDebug("CreatePlayListPickerPopup failed(%s)", GetLastResult());
+ pContentList->RemoveAll();
+ delete pContentList;
+ delete __pPlayListPickerPopup;
+ __pPlayListPickerPopup = null;
+ return E_FAILURE;
+ }
+
+ __pPlayListPickerPopup->SetShowState(true);
+ __pPlayListPickerPopup->Show();
AppLogDebug("EXIT");
-}
\ No newline at end of file
+ return E_SUCCESS;
+}
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const Tizen::Graphics::Rectangle RECT_CONTENT_NAME (16, 16, 500, 88);
-static const Tizen::Graphics::Rectangle RECT_CONTENT_PLAY_TIME (516, 16, 188, 88);
-static const Tizen::Graphics::Rectangle RECT_FOLDER_ICON_THUMBNAIL (82, 74, 46, 46);
-static const Tizen::Graphics::Rectangle RECT_GENRE_ITEM_THUMBNAIL (16, 8, 112, 112);
-static const Tizen::Graphics::Rectangle RECT_GENRE_ITEM_TITLE_NAME (144, 8, 300, 66);
-static const Tizen::Graphics::Rectangle RECT_GENRE_ITEM_TIME (444, 8, 260, 66);
-static const Tizen::Graphics::Rectangle RECT_GENRE_ITEM_ARTIST_NAME (144, 66, 560, 46);
-
-static const int X_OFFSET_EDIT_STYLE_TABLE_VIEW = 96;
static const int COUNT_MESSAGE_BOX_TIMEOUT = 3000;
-static const Tizen::Base::String STORAGE_PHONE_PATH = Environment::GetMediaPath() + L"Sounds/";
-static const Tizen::Base::String STORAGE_SDCARD_PATH = Environment::GetExternalStoragePath();
-static const Tizen::Base::String STORAGE_EXTERNAL_PATH = Environment::GetMediaPath();
-
FolderContentListForm::FolderContentListForm(void)
: ContentListForm::ContentListForm()
, ThumbnailBase::ThumbnailBase()
FolderContentListForm::OnInitializing(void)
{
AppLogDebug("ENTER");
- CreateTableview();
- CreateSelectAllCheckedButton();
- CreateCheckedCountLabel();
- CreateNoContentImage(L"IDS_MUSIC_HEADER_NO_SONGS");
- __pContextItem = new (std::nothrow) TableViewContextItem();
- __pContextItem->Construct(Dimension(GetClientAreaBounds().width, ITEM_HEIGHT));
- CreateTableViewContextItem(*__pContextItem);
- CreateDeletePopup();
+ SetContentListFooter();
+ __pContextItem = CreateTableViewContextItem(FLICK_MENU_STYLE_TYPE_01);
AppLogDebug("EXIT");
return ThumbnailBase::Construct();
}
FolderContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- __checkedItemCount = 0;
- DestroyPlayListPickerPopup();
-
delete __pContextItem;
__pContextItem = null;
-
AppLogDebug("EXIT");
- return E_SUCCESS;
+ return ContentListForm::OnTerminating();
}
void
AppLogDebug("ENTER");
if (pArgs != null)
{
- __pStrSceneId = static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME));
- __pStrContentName = static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME));
+ __prevSceneId.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME)));
__currentContentIndex = static_cast<Integer*>(pArgs->GetAt(DATA_ITEM_CONTENT_TYPE))->ToInt();
+ String* pStrContentPath = static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME));
+
__pPresentationModel = FolderListPresentationModel::GetInstance();
__pPresentationModel->UpdateFolderPathList();
__pPresentationModel->InitializeContentList(__currentContentIndex);
+
+ int position = INIT_VALUE;
+ pStrContentPath->LastIndexOf(IDS_SEPARATOR_SLASH, pStrContentPath->GetLength() - 1, position);
+ pStrContentPath->SubString(position + 1, __headerTitle);
+
+ String ellipisiPath = CommonUtil::SetHighDepthToEllipsisPath(*pStrContentPath);
+ Rectangle rect(INIT_VALUE, INIT_VALUE, GetWidth(), 42);
+
+ Label* pAdditionalInfo = new (std::nothrow) Label();
+ if (!IsFailed(pAdditionalInfo->Construct(rect, ellipisiPath)))
+ {
+ pAdditionalInfo->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ pAdditionalInfo->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+ pAdditionalInfo->SetTextConfig(32, LABEL_TEXT_STYLE_BOLD);
+ pAdditionalInfo->SetTextColor(COLOR_ITEM_SUB_TEXT);
+
+ SetAdditionalInforamtion(*pAdditionalInfo);
+ }
+ SetContentListHeader();
+
+ pArgs->RemoveAll(true);
+ delete pArgs;
}
else
{
// Empty statement
}
- ContentInformation* pContentInfoStruct = null;
- pContentInfoStruct = __pPresentationModel->GetContentInfoN(0);
- if (pContentInfoStruct == null)
- {
- return;
- }
- InitializeHeader(*pContentInfoStruct);
- if (__checkEdit == true)
- {
- Footer* pFooter = CommonUtil::CreateDeleteFooter(*this);
- pFooter->AddActionEventListener(*this);
- }
- else
- {
- Footer* pFooter = CommonUtil::CreateEditFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
- }
+ ContentListForm::OnSceneActivatedN(previousSceneId, currentSceneId, null);
__pContentTableView->UpdateTableView();
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
AppLogDebug("EXIT");
}
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
-
CancelAllThumbnailRequest();
AppLogDebug("EXIT");
}
{
AppLogDebug("ENTER");
SceneManager* pSceneManager = SceneManager::GetInstance();
-
AppAssert(pSceneManager);
switch (actionId)
{
- case IDA_FLICK_BUTTON_SHARE:
- // fall through
- case IDA_FLICK_BUTTON_SET:
+ case IDA_CONTEXT_MENU_ITEM_GO_TO_LIBARY:
{
- CreateContextMenu(source);
+ pSceneManager->GoBackward(BackwardSceneTransition());
}
break;
- case IDA_FLICK_BUTTON_ADD_TO_PALYLIST:
+ case IDA_CONTEXT_MENU_ITEM_SEARCH:
{
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- pDataList->Construct();
- ContentInformation* pContentInfo;
- pContentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
-
- if (pContentInfo == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
- pDataList->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
+ }
+ break;
- delete pContentInfo;
- pContentInfo = null;
+ case IDA_CONTEXT_MENU_ITEM_EDIT:
+ {
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_EDITOR);
+ }
+ break;
- __pPlayListPickerPopup = new (std::nothrow) PlayListPickerPopup();
- __pPlayListPickerPopup->Initialize(this, pDataList);
- __pPlayListPickerPopup->SetShowState(true);
- __pPlayListPickerPopup->Show();
- //__pPlayListPickerPopup->SetCollectedContent(pDataList);
+ case IDA_CONTEXT_MENU_ITEM_SHARE_VIA:
+ {
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_SHARE_VIA);
+ }
+ break;
+ case IDA_FOOTER_BUTTON_MORE:
+ {
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_GO_TO_LIBARY | CONTEXT_MENU_ITEM_STYLE_SEARCH | CONTEXT_MENU_ITEM_STYLE_EDIT, Point(X_MORE_POPUP, Y_MORE_POPUP));
}
break;
- case IDA_FLICK_BUTTON_DELETE:
+ case IDA_FLICK_MENU_ITEM_ADDTO:
{
- if (__pDeletePopup != null)
- {
- __pDeletePopup->SetShowState(true);
- __pDeletePopup->Show();
- }
+ SetActivatedContextItemToPlaylist();
}
break;
- case IDA_DELETE_POPUP_DELETE:
- // fall through
- case IDA_DELETE_POPUP_CANCEL:
+ case IDA_FLICK_MENU_ITEM_SHARE:
{
- __pDeletePopup->SetShowState(false);
- __pDeletePopup->Show();
- if (actionId == IDA_DELETE_POPUP_DELETE && __pPresentationModel != null)
- {
- ContentManager contentManager;
- contentManager.Construct();
- ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
- contentManager.DeleteContent(pContentInfo->contentId);
- Footer* pFooter = GetFooter();
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_EMAIL);
+ }
+ break;
- delete pContentInfo;
- pContentInfo = null;
+ case IDA_FLICK_MENU_ITEM_SET_AS:
+ {
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_CALL | CONTEXT_MENU_ITEM_STYLE_CALLER);
+ }
+ break;
- __pPresentationModel->RefreshContentList(__currentContentIndex);
+ case IDA_FLICK_MENU_ITEM_DELETE:
+ {
+ SetCommonPopup(CommonUtil::CreateContentDeletePopup(*this, IDA_COMMON_POPUP_DELETE, IDA_COMMON_POPUP_CANCEL));
+ }
+ break;
- if (__pPresentationModel->GetContentCount(__currentContentIndex) <= INIT_VALUE)
- {
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- pFooter->SetItemEnabled(INDEX_EDIT_FOOTER_EDIT, false);
- pFooter->Invalidate(true);
- }
+ case IDA_COMMON_POPUP_CANCEL:
+ {
+ // empty statement
+ }
+ break;
- __pContentTableView->RefreshItem(__itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
- }
+ case IDA_COMMON_POPUP_DELETE:
+ {
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(GetActivatedContextItem());
+ RemoveContentAt(pContentInfo->contentId);
+ __pPresentationModel->RefreshContentList(__currentContentIndex);
+ __pContentTableView->RefreshItem(GetActivatedContextItem(), TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
}
break;
- case IDA_SHARE_CONTEXT_MENU_EMAIL:
+ case IDA_CONTEXT_MENU_ITEM_EMAIL:
// fall through
- case IDA_SHARE_CONTEXT_MENU_MESSAGE:
+ case IDA_CONTEXT_MENU_ITEM_MESSAGE:
{
- String providerID = ((actionId == IDA_SHARE_CONTEXT_MENU_EMAIL) ? PROVIDER_ID_EMAIL : PROVIDER_ID_MESSAGE);
+ String providerID = ((actionId == IDA_CONTEXT_MENU_ITEM_EMAIL) ? PROVIDER_ID_EMAIL : PROVIDER_ID_MESSAGE);
AppControl* pAppControl = AppManager::FindAppControlN(providerID, OPERATION_ID_COMPOSE);
if (pAppControl == null)
{
+ AppLogDebug("AppManager::FindAppControlN is null");
return;
}
- ContentInformation* pContentInfo = null;
- pContentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
-
+ ContentInformation* pContentInfo = GetContentInformation(GetActivatedContextItem());
if (pContentInfo == null)
{
+ AppLogDebug("PresentationModel->GetContentInfoN is null");
return;
}
HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter);
pDataList->Construct();
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_ATTACHMENTS), new (std::nothrow) String(pContentInfo->ContentFilePath));
+ delete pContentInfo;
pAppControl->Start(null, null, pDataList, this);
-
- if (pAppControl != null)
- {
- delete pAppControl;
- pAppControl = null;
- }
-
- delete pContentInfo;
- pContentInfo = null;
+ delete pAppControl;
}
break;
- case IDA_SET_CONTEXT_MENU_CALL:
+ case IDA_CONTEXT_MENU_ITEM_CALL:
{
- result r = E_SUCCESS;
- ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
-
+ ContentInformation* pContentInfo = GetContentInformation(GetActivatedContextItem());
if (pContentInfo == null)
{
+ AppLogDebug("PresentationModel->GetContentInfoN is null");
return;
}
- r = SettingInfo::SetValue(CALL_RINGTONE_KEY, pContentInfo->ContentFilePath);
- delete pContentInfo;
- pContentInfo = null;
-
- if (r == E_SUCCESS)
+ if (!IsFailed(SettingInfo::SetValue(CALL_RINGTONE_KEY, pContentInfo->ContentFilePath)))
{
MessageBox messageBox;
messageBox.Construct(L"", ResourceManager::GetString(L"IDS_COM_POP_SUCCESS"),
int modalResult = 0;
messageBox.ShowAndWait(modalResult);
}
+ delete pContentInfo;
}
break;
- case IDA_SET_CONTEXT_MENU_CALLER:
+ case IDA_CONTEXT_MENU_ITEM_CALLER:
{
AppControl* pAppControl = AppManager::FindAppControlN(TIZEN_APPCONTROL_PROVIDER_CONTACT, TIZEN_APPCONTROL_OPERATION_PICK);
if (pAppControl == null)
{
+ AppLogDebug("AppManager::FindAppControlN is null");
return;
}
pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_RETURNTYPE), new (std::nothrow) String(APPCONTROL_VALUE_CONTACTID));
pAppControl->Start(null, null, pDataList, this);
- if (pAppControl != null)
- {
- delete pAppControl;
- pAppControl = null;
- }
- }
- break;
-
- case IDA_FOOTER_BUTTON_EDIT:
- {
- ToggleViewMode(false);
- }
- break;
-
- case IDA_FOOTER_BUTTON_CANCEL:
- {
- __checkedItemCount = INIT_VALUE;
- __pSelectAllCheckedButton->SetSelected(false);
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount(__currentContentIndex));
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- ToggleViewMode(true);
- }
- break;
-
- case IDA_FOOTER_BUTTON_SEARCH:
- {
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
- }
- break;
-
- case IDA_CHECK_BUTTON:
- {
- __checkedItemCount = __pPresentationModel->GetContentCount(__currentContentIndex);
- if (__checkedItemCount > INIT_VALUE)
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- }
- CommonUtil::SetAllCheckState(true, *__pContentTableView, __pPresentationModel->GetContentCount(__currentContentIndex));
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case IDA_UNCHECK_BUTTON:
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- pFooter->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount(__currentContentIndex));
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+ delete pAppControl;
}
break;
case IDA_FOOTER_BUTTON_DELETE:
{
- ContentManager contentManager;
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
- int iCount = 0;
-
- if (__checkedItemCount <= INIT_VALUE)
- {
- return;
- }
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
- pFooter->Invalidate(true);
-
- contentManager.Construct();
- for (iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- __pContentTableView->SetItemChecked(iCount, false);
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- contentManager.DeleteContent(pContentInfoStruct->contentId);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
+ RemoveCheckedTableviewItem();
__pPresentationModel->RefreshContentList(__currentContentIndex);
- __pContentTableView->UpdateTableView();
- __pContentTableView->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
-
- if (__pPresentationModel->GetContentCount(__currentContentIndex) > 0)
- {
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- }
- else
- {
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- }
- }
- break;
-
- case IDA_FOOTER_BUTTON_SHARE:
- {
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
-
- pDataList->Construct();
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
- pDataList->Add(*(new (std::nothrow) String(L"attachment:" + pContentInfoStruct->ContentFilePath)));
-
- __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- Invalidate(true);
- if (__pSharePopup == null)
- {
- __pSharePopup = new (std::nothrow) SharePopup();
- __pSharePopup->Initialize();
- }
- __pSharePopup->SetShowState(true);
- __pSharePopup->Show();
- __pSharePopup->SetArguments(pDataList);
+ UpdateContentListScreenState();
+ __pContentTableView->UpdateTableView();
}
break;
- case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
- {
- ContentManager contentManager;
- Footer* pFooter = GetFooter();
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- int totalCount = 0;
-
- if (__checkedItemCount <= 0)
- {
- return;
- }
-
- pDataList->Construct();
- contentManager.Construct();
- totalCount = __pPresentationModel->GetContentCount(__currentContentIndex);
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
-
- pDataList->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
-
- __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
-
- if (IsFailed(CreatePlayListPickerPopup(pDataList)))
- {
- AppLogDebug("CreatePlayListPickerPopup failed(%s)", GetLastResult());
- return;
- }
- __pPlayListPickerPopup->SetShowState(true);
- __pPlayListPickerPopup->Show();
- //__pPlayListPickerPopup->SetCollectedContent(pDataList);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
-
- Invalidate(true);
- }
- break;
+// case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
+// {
+// SetCheckedTableviewItemToPlayList();
+// }
+// break;
default:
break;
}
+
+ ContentListForm::OnActionPerformed(source, actionId);
AppLogDebug("EXIT");
}
FolderContentListForm::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = null;
-
+ RelativeLayout layout;
+ layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (__checkEdit)
- {
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
- }
- else
+
+ TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
- pItem->SetContextItem(__pContextItem);
+ tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
}
-// pItem->SetBackgroundColor(COLOR_WHITE);
- pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
- if (pContentInfoStruct == null)
+ if (IsFailed(pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), tableViewAnnexStyle)))
{
- delete pItem;
- pItem = null;
+ AppLogDebug("Construct(Dimension(itemWidth, ITEM_HEIGHT) failed(%s)", GetErrorMessage(GetLastResult()));
return null;
}
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
- CreateTableViewItem(*pItem, *pContentInfoStruct);
+ ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfoStruct != null)
+ {
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ CreateTableViewItem(*pItem, *pContentInfoStruct);
+ }
delete pContentInfoStruct;
pContentInfoStruct = null;
Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
- switch (status)
- {
- case TABLE_VIEW_ITEM_STATUS_CHECKED:
- {
- Footer* pFooter = GetFooter();
- __checkedItemCount++;
- tableView.SetItemChecked(itemIndex, true);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- if (__checkedItemCount == __pPresentationModel->GetContentCount(__currentContentIndex))
- {
- __pSelectAllCheckedButton->SetSelected(true);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case TABLE_VIEW_ITEM_STATUS_UNCHECKED:
- {
- Footer* pFooter = GetFooter();
-
- __checkedItemCount--;
- tableView.SetItemChecked(itemIndex, false);
-
- if (__checkedItemCount == INIT_VALUE)
- {
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- pFooter->Invalidate(true);
- }
-
- if (__checkedItemCount != __pPresentationModel->GetContentCount(__currentContentIndex))
- {
- __pSelectAllCheckedButton->SetSelected(false);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case TABLE_VIEW_ITEM_STATUS_SELECTED:
- {
- SceneManager* pSceneManager = SceneManager::GetInstance();
- ArrayList* tempArg;
- AppAssert(pSceneManager);
- tempArg = MakePlayerSceneParam(itemIndex);
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), tempArg);
-
- if (tempArg != null)
- {
- tempArg->RemoveAll();
- delete tempArg;
- tempArg = null;
- }
- }
- break;
-
- default:
- break;
- }
+ ContentListForm::OnTableViewItemStateChanged(tableView, itemIndex, pItem, status);
AppLogDebug("EXIT");
}
}
result
-FolderContentListForm::CreateTableViewItem(Tizen::Ui::Container& parent,
- const ContentInformation& contentInfo)
+FolderContentListForm::CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo)
{
AppLogDebug("ENTER");
- result r = E_SUCCESS;
- if (__checkEdit)
+ Panel* pTableViewItem = new (std::nothrow) Panel();
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- Rectangle rectContentName = RECT_CONTENT_NAME;
- Rectangle rectContentPlayTime = RECT_CONTENT_PLAY_TIME;
- Label* pLabelContentName = new (std::nothrow) Label();
- Label* pLabelContentPlayTime = new (std::nothrow) Label();
-
- rectContentName.width = rectContentName.width - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
- rectContentPlayTime.x = rectContentPlayTime.x - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
-
- pLabelContentName->Construct(rectContentName, L"");
- pLabelContentName->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pLabelContentName->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pLabelContentName->SetText(contentInfo.TitleName);
-
- pLabelContentPlayTime->Construct(rectContentPlayTime, L"");
- pLabelContentPlayTime->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pLabelContentPlayTime->SetTextHorizontalAlignment(ALIGNMENT_RIGHT);
- pLabelContentPlayTime->SetText(CommonUtil::GetFormatDate(contentInfo.Duration));
-
- parent.AddControl(*pLabelContentName);
- parent.AddControl(*pLabelContentPlayTime);
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL)))
+ {
+ AppLogDebug("Construct(IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
+ }
}
else
{
- String filePath = contentInfo.ContentFilePath;
- Label* pThumbnailLabel = new (std::nothrow) Label();
- Label* pFolderIconLabel = new (std::nothrow) Label();
- Label* pTitleLabel = new (std::nothrow) Label();
- Label* pArtistNameLabel = new (std::nothrow) Label();
- Label* pTimeLabel = new (std::nothrow) Label();
- int indexOf = -1;
-
- String tempPath = contentInfo.ContentFilePath;
- String fileName = null;
- tempPath.LastIndexOf(L"/", tempPath.GetLength() - 1, indexOf);
- tempPath.SubString(indexOf + 1, fileName);
-
- pFolderIconLabel->Construct(RECT_FOLDER_ICON_THUMBNAIL, L"");
- pFolderIconLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- if (filePath.StartsWith(STORAGE_SDCARD_PATH, INIT_VALUE) == true)
- {
- pFolderIconLabel->SetBackgroundBitmap(*ResourceManager::GetBitmapN(L"T02_memory card_02.png"));
- }
- else if (filePath.StartsWith(STORAGE_PHONE_PATH, INIT_VALUE) == true)
- {
- pFolderIconLabel->SetBackgroundBitmap(*ResourceManager::GetBitmapN(L"T02_phone_02.png"));
- }
- else if (filePath.StartsWith(STORAGE_EXTERNAL_PATH, INIT_VALUE) == true)
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENT_LIST_FOLDER_ITEM_PANEL)))
{
- pFolderIconLabel->SetBackgroundBitmap(*ResourceManager::GetBitmapN(L"T02_external_storage_02.png"));
+ AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
}
-
- pThumbnailLabel->Construct(RECT_GENRE_ITEM_THUMBNAIL, L"");
- pThumbnailLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pThumbnailLabel->SetBackgroundBitmap(*GetDefaultThumbnail());
- pThumbnailLabel->SetName(L"ThumbnailLabel");
-
- pTitleLabel->Construct(RECT_GENRE_ITEM_TITLE_NAME, L"");
- pTitleLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pTitleLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pTitleLabel->SetText(fileName);
-
- pArtistNameLabel->Construct(RECT_GENRE_ITEM_ARTIST_NAME, L"");
- pArtistNameLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pArtistNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pArtistNameLabel->SetText(contentInfo.ArtistName);
-
- pTimeLabel->Construct(RECT_GENRE_ITEM_TIME, L"");
- pTimeLabel->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pTimeLabel->SetTextHorizontalAlignment(ALIGNMENT_RIGHT);
- pTimeLabel->SetText(CommonUtil::GetFormatDate(contentInfo.Duration));
-
- parent.AddControl(*pThumbnailLabel);
- parent.AddControl(*pFolderIconLabel);
- parent.AddControl(*pTitleLabel);
- parent.AddControl(*pArtistNameLabel);
- parent.AddControl(*pTimeLabel);
+ parent.SetContextItem(__pContextItem);
}
- AppLogDebug("EXIT");
- return r;
-}
-void
-FolderContentListForm::ToggleViewMode(bool editMode)
-{
- AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
-
- if (editMode)
- {
- int currentAlbumContentCount = 0;
- currentAlbumContentCount = __pPresentationModel->GetContentCount(__currentContentIndex);
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
- pFooter = CommonUtil::CreateEditFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
-
- if (currentAlbumContentCount > INIT_VALUE)
- {
- SetTitleText(__strHeaderName);
- }
- else
- {
- SetTitleText("No songs");
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- pFooter->SetItemEnabled(INDEX_FOOTER_EDIT, false);
- }
+ String filePath = contentInfo.ContentFilePath;
+ Bitmap* StorageIconBitmap = null;
+ int indexOf = -1;
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
+ String tempPath = contentInfo.ContentFilePath;
+ String fileName = null;
+ tempPath.LastIndexOf(L"/", tempPath.GetLength() - 1, indexOf);
+ tempPath.SubString(indexOf + 1, fileName);
- __checkEdit = false;
- __pContentTableView->SetBounds(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height));
- __pContentTableView->Invalidate(true);
- __pContentTableView->UpdateTableView();
+ if (filePath.Contains(IDS_STORAGE_PHONE_PATH))
+ {
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_PHONE);
+ }
+ else if (filePath.Contains(IDS_STORAGE_SDCARD_PATH))
+ {
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_SDCARD);
+ }
+ else if (filePath.Contains(IDS_STORAGE_EXTERNAL_PATH))
+ {
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_EXTERNAL);
}
else
{
- SetTitleText(ResourceManager::GetString("IDS_COM_BODY_EDIT"));
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_PHONE);
+ }
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
+ Label* pFolderStorageIcon = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENT_FOLDER_STORAGE_ICON));
+ pFolderStorageIcon->SetBackgroundBitmap(*StorageIconBitmap);
+ delete StorageIconBitmap;
- pFooter = CommonUtil::CreateDeleteFooter(*this);
- pFooter->AddActionEventListener(*this);
+ Label* pTitleName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENT_TITLE_NAME));
+ pTitleName->SetText(fileName);
- __pSelectAllCheckedButton->SetEnabled(true);
- __pSelectAllCheckedButton->SetShowState(true);
+ parent.AddControl(*pTableViewItem);
+ parent.SetIndividualSelectionEnabled(pTableViewItem, true);
+
+ CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
- __checkEdit = true;
- __pContentTableView->SetBounds(Rectangle(0, __pSelectAllCheckedButton->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pSelectAllCheckedButton->GetHeight())));
- __pContentTableView->Invalidate(true);
- __pContentTableView->UpdateTableView();
+bool
+FolderContentListForm::IsEmptyContentList(void)
+{
+ AppLogDebug("ENTER");
+ if (__pPresentationModel->GetContentCount(__currentContentIndex) != INIT_VALUE)
+ {
+ return false;
}
- Invalidate(true);
AppLogDebug("EXIT");
+ return true;
+}
+
+ContentInformation*
+FolderContentListForm::GetContentInformation(int index)
+{
+ AppLogDebug("ENTER");
+ AppLogDebug("EXIT");
+ return __pPresentationModel->GetContentInfoN(index);
+}
+
+result
+FolderContentListForm::SetContentListHeader(void)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+result
+FolderContentListForm::SetContentListFooter(void)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_MORE_ADD);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
}
void
AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
Addressbook* pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
- ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
+ ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(GetActivatedContextItem());
if (pCcontentInfo == null)
{
delete pAddressbook;
FolderContentListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
- AppLogDebug("OnUserEventReceivedN %d", requestId);
- if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
- {
- if (__pPlayListPickerPopup != null)
- {
- delete __pPlayListPickerPopup;
- __pPlayListPickerPopup = null;
- }
- }
+ ContentListForm::OnUserEventReceivedN(requestId, null);
AppLogDebug("EXIT");
}
FolderContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
AppLogDebug("ENTER");
- Label* pThumbnailLabel = static_cast<Label*>(pItem->GetControl(L"ThumbnailLabel"));
+ Panel* pItemPanel = null;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL));
+ }
+ else
+ {
+ pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENT_LIST_FOLDER_ITEM_PANEL));
+ }
+
+ if (pItemPanel == null)
+ {
+ AppLogDebug("pItemPanel is null");
+ delete __pThumbnail;
+ __pThumbnail = null;
+ return;
+ }
+
+ Label* pThumbnailLabel = static_cast<Label*>(pItemPanel->GetControl(IDC_CONTENT_THUMBNAIL));
if (__pThumbnail == null || pThumbnailLabel == null)
{
AppLogDebug("__pThumbnail or pThumbnailLabel is null");
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
using namespace Tizen::Graphics;
using namespace Tizen::Social;
using namespace Tizen::System;
+using namespace Tizen::Ui;
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const Tizen::Base::String MEDIA_PATH = Environment::GetMediaPath();
-static const Tizen::Base::String EXTERNAL_STORAGE_PATH = Environment::GetExternalStoragePath();
-static const Tizen::Base::String MEDIA_SOUND_PATH = Environment::GetMediaPath() + L"Sounds";
-static const Tizen::Base::String SEPARATOR_SLASH = L"/";
-static const int DEPTH = 3;
-
-static const Tizen::Graphics::Rectangle RECT_FOLDER_ITEM_THUMBNAIL (16, 32, 64, 64);
-static const Tizen::Graphics::Rectangle RECT_FOLDER_ITEM_NAME (96, 8, 338, 56);
-static const Tizen::Graphics::Rectangle RECT_FOLDER_ITEM_COUNT (434, 8, 200, 56);
-static const Tizen::Graphics::Rectangle RECT_FOLDER_ITEM_PATH_NAME (96, 64, 538, 56);
-
FolderListEditorPanel::FolderListEditorPanel(void)
- : __pContentTableView(null)
- , __pSelectAllCheckedButton(null)
- , __pCheckedCountLabel(null)
+ : ContentEditPanel::ContentEditPanel()
, __checkedItemCount(0)
, __pPlayListPickerPopup(null)
+ ,__pPresentationModel(null)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT");
AppLogDebug("EXIT");
}
-bool
-FolderListEditorPanel::Initialize(void)
-{
- AppLogDebug("ENTER");
- result r = Construct(Rectangle(INIT_VALUE, INIT_VALUE, INIT_VALUE, INIT_VALUE));
- if (IsFailed(r))
- {
- return false;
- }
- AppLogDebug("EXIT");
- return true;
-}
-
result
FolderListEditorPanel::OnInitializing(void)
{
AppLogDebug("ENTER");
__pPresentationModel = FolderListPresentationModel::GetInstance();
-
- Form* pForm = dynamic_cast<Form*>(GetParent());
- AppAssert(pForm);
-
- int width = pForm->GetClientAreaBounds().width;
- int height = pForm->GetClientAreaBounds().height;
-
- SetBounds(INIT_VALUE, INIT_VALUE, width, height);
-
- __pContentTableView = CommonUtil::CreateEditorTableView(width, height);
- __pContentTableView->AddTableViewItemEventListener(*this);
- __pContentTableView->SetItemProvider(this);
-
- __pSelectAllCheckedButton = CommonUtil::CreateSelectAllCheckedButton(width);
- __pSelectAllCheckedButton->AddActionEventListener(*this);
-
- __pCheckedCountLabel = CommonUtil::CreateCheckedCountLabel(width, height);
- __pCheckedCountLabel->SetShowState(false);
-
- AddControl(*__pContentTableView);
- AddControl(*__pSelectAllCheckedButton);
- AddControl(*__pCheckedCountLabel);
-
+ SetLayoutFitToForm();
AppLogDebug("EXIT");
return E_SUCCESS;
}
FolderListEditorPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
+ if (__pPlayListPickerPopup != null)
+ {
+ delete __pPlayListPickerPopup;
+ __pPlayListPickerPopup = null;
+ }
+
AppLogDebug("EXIT");
return E_SUCCESS;
}
void
FolderListEditorPanel::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
{
- AppLogDebug("ENTER");
+//
+ AppLogDebug("ENTER %d",actionId);
+ Form* pForm = dynamic_cast<Form*>(GetParent());
+ Footer* pFooter = pForm->GetFooter();
+
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
switch (actionId)
{
- case IDA_CHECK_BUTTON:
+ case IDA_HEADER_ALL_CHECK_BUTTON:
{
+ if (totalCount == __checkedItemCount)
+ {
+ __checkedItemCount = INIT_VALUE;
+ CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
+ SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetUnCheckedIconAllCheckButton();
+ CommonUtil::SetFooterItemEnabled(*pFooter, false);
+ break;
+ }
+
__checkedItemCount = totalCount;
CommonUtil::SetAllCheckState(true, *__pContentTableView, totalCount);
- Form* pForm = dynamic_cast<Form*>(GetParent());
- AppAssert(pForm);
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *pForm);
- CommonUtil::SetButtonEnabled(*pForm, __checkedItemCount, actionId);
- }
- break;
-
- case IDA_UNCHECK_BUTTON:
- {
- __checkedItemCount = INIT_VALUE;
- CommonUtil::SetAllCheckState(false, *__pContentTableView, totalCount);
- Form* pForm = dynamic_cast<Form*>(GetParent());
- AppAssert(pForm);
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *pForm);
- CommonUtil::SetButtonEnabled(*pForm, __checkedItemCount, actionId);
+ SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetCheckedIconAllCheckButton();
+ CommonUtil::SetFooterItemEnabled(*pFooter, true);
}
break;
__pPlayListPickerPopup = new (std::nothrow) PlayListPickerPopup();
__pPlayListPickerPopup->Initialize(this, pDataList);
- //__pPlayListPickerPopup->SetCollectedContent(pDataList);
__pPlayListPickerPopup->SetShowState(true);
__pPlayListPickerPopup->Show();
-
- Form* pForm = dynamic_cast<Form*>(GetParent());
- AppAssert(pForm);
- CommonUtil::SetButtonEnabled(*pForm, __checkedItemCount, actionId);
}
break;
- case IDA_FOOTER_BUTTON_CANCEL:
+ case IDA_FOOTER_BUTTON_DELETE:
{
- pSceneManager->GoBackward(BackwardSceneTransition());
- Form* pForm = dynamic_cast<Form*>(GetParent());
- AppAssert(pForm);
+ if (__checkedItemCount <= INIT_VALUE)
+ {
+ return;
+ }
- CommonUtil::SetButtonEnabled(*pForm, __checkedItemCount, actionId);
+ int totalCount = __pPresentationModel->GetAllFolderCount();
+ for (int index = totalCount - 1; index >= 0; index--)
+ {
+ if (__pContentTableView->IsItemChecked(index) == true)
+ {
+ __pPresentationModel->RemoveFolderList(index);
+ __pContentTableView->RefreshItem(index, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+ }
+ }
+ __pPresentationModel->UpdateFolderPathList();
+ if (__pPresentationModel->GetAllFolderCount() != 0)
+ {
+
+ }
+ else
+ {
+ SetNoContentSongs(true);
+ }
+ __checkedItemCount = INIT_VALUE;
+ SetCheckedCountBalloonPopup(__checkedItemCount);
+ SetUnCheckedIconAllCheckButton();
+
+ CommonUtil::SetFooterItemEnabled(*pFooter, false);
}
break;
{
AppLogDebug("ENTER");
Form* pForm = dynamic_cast<Form*>(GetParent());
+ Footer* pFooter = null;
AppAssert(pForm);
+ pForm->SetFormBackEventListener(this);
+ SetEditHeaderStyle();
- Footer* pFooter = CommonUtil::CreateAddtoPlaylistPickerFooter(*pForm);
+ pFooter = CommonUtil::CreateBackButtonStyleFooter(*pForm, STYLE_ADDTO_DELETE_ADD);
pFooter->AddActionEventListener(*this);
-
- CommonUtil::SetButtonEnabled(*pForm, __checkedItemCount);
+ pFooter->SetShowState(true);
+ CommonUtil::SetFooterItemEnabled(*pFooter, false);
UpdateContentList();
+ SetCheckedCountBalloonPopup(INIT_VALUE);
+
+ if (__pPresentationModel->GetAllFolderCount() != INIT_VALUE)
+ {
+ SetNoContentSongs(false);
+ }
+ else
+ {
+ SetNoContentSongs(true);
+ SetDisableIconAllCheckButton();
+ }
if (pArgs != null)
{
delete pArgs;
}
AppLogDebug("EXIT");
+
}
void
pFooter->RemoveActionEventListener(*this);
__checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *pForm);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
+ SetCheckedCountBalloonPopup(__checkedItemCount);
int totalCount = __pPresentationModel->GetAllFolderCount();
for (int iCount = 0; iCount < totalCount; iCount++)
FolderListEditorPanel::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- TableViewItem* pItem = new (std::nothrow) TableViewItem();
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
-// pItem->SetBackgroundColor(COLOR_ITEM);
-
String* pContentPath = __pPresentationModel->GetFolderPath(itemIndex);
- Bitmap* pFolderBitmap = null;
- String fullContentPath = null;
+ Bitmap* StorageIconBitmap = null;
String strFolderName = null;
int folderNamePosition = 0;
- pContentPath->LastIndexOf(SEPARATOR_SLASH, pContentPath->GetLength() - 1, folderNamePosition);
+ pContentPath->LastIndexOf(IDS_SEPARATOR_SLASH, pContentPath->GetLength() - 1, folderNamePosition);
pContentPath->SubString(folderNamePosition + 1, strFolderName);
- if (*pContentPath == MEDIA_SOUND_PATH)
+ if (pContentPath->Contains(IDS_STORAGE_PHONE_PATH))
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_PHONE_BITMAP);
- fullContentPath = MEDIA_PATH;
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_PHONE);
}
- else if (*pContentPath == EXTERNAL_STORAGE_PATH)
+ else if (pContentPath->Contains(IDS_STORAGE_SDCARD_PATH))
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_SDCARD_BITMAP);
- fullContentPath = EXTERNAL_STORAGE_PATH;
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_SDCARD);
}
- else if (*pContentPath == MEDIA_PATH)
+ else if (pContentPath->Contains(IDS_STORAGE_EXTERNAL_PATH))
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_EXTERNAL_BITMAP);
- pContentPath->SubString(0, folderNamePosition + 1, fullContentPath);
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_EXTERNAL);
}
else
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_PHONE_BITMAP);
- pContentPath->SubString(0, folderNamePosition + 1, fullContentPath);
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_PHONE);
}
- if (fullContentPath.GetLength() == 0)
+ Panel* pTableViewItem = new (std::nothrow) Panel();
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL)))
{
- fullContentPath = ResourceManager::GetString(L"IDS_EMAIL_OPT_MY_FOLDERS");
+ AppLogDebug("Construct(IDL_CONTENT_LIBARY_FOLDER_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return null;
}
- int depthCount = 0;
- wchar_t tempChar;
- for (int iCount = 0; iCount < fullContentPath.GetLength(); iCount++)
- {
- fullContentPath.GetCharAt(iCount, tempChar);
- if (SEPARATOR_SLASH.CompareTo(tempChar) == 0)
- {
- depthCount++;
- }
- }
- if (depthCount > DEPTH)
- {
- folderNamePosition = 0;
- int tempIndex = 0;
- for (int iCount = 0; iCount < DEPTH; iCount++)
- {
- fullContentPath.IndexOf(SEPARATOR_SLASH, tempIndex, folderNamePosition);
- tempIndex = folderNamePosition + 1;
- }
- fullContentPath.SubString(tempIndex - 1, fullContentPath);
- fullContentPath.Insert(L".", 0);
- }
+ Label* pStorageIcon = static_cast<Label*>(pTableViewItem->GetControl(IDC_STORAGE_TYPE_ICON));
+ pStorageIcon->SetBackgroundBitmap(*StorageIconBitmap);
+ delete StorageIconBitmap;
- Label* pFolderThumbnailBG = new (std::nothrow) Label();
- pFolderThumbnailBG->Construct(RECT_FOLDER_ITEM_THUMBNAIL, L"");
- pFolderThumbnailBG->SetBackgroundColor(Color::GetColor(COLOR_ID_BLACK));
+ Label* pFolderPath = static_cast<Label*>(pTableViewItem->GetControl(IDC_FOLDER_PATH));
+ String fullContentPath;
+ pContentPath->SubString(INIT_VALUE, folderNamePosition, fullContentPath);
+ pFolderPath->SetText(CommonUtil::SetHighDepthToEllipsisPath(fullContentPath));
- Label* pFolderThumbnail = new (std::nothrow) Label();
- pFolderThumbnail->Construct(RECT_FOLDER_ITEM_THUMBNAIL, L"");
- pFolderThumbnail->SetBackgroundBitmap(*pFolderBitmap);
-
- Label* pFolderName = new (std::nothrow) Label();
- pFolderName->Construct(RECT_FOLDER_ITEM_NAME,L"");
- pFolderName->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pFolderName->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+ Label* pFolderName = static_cast<Label*>(pTableViewItem->GetControl(IDC_FOLDER_NAME));
pFolderName->SetText(strFolderName);
- Label* pFolderCount = new (std::nothrow) Label();
- pFolderCount->Construct(RECT_FOLDER_ITEM_COUNT, L"");
- pFolderCount->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pFolderCount->SetTextHorizontalAlignment(ALIGNMENT_RIGHT);
- pFolderCount->SetText(CommonUtil::SetSongsString(__pPresentationModel->GetContentCount(itemIndex)));
-
- Label* pFolderPathName = new (std::nothrow) Label();
- pFolderPathName->Construct(RECT_FOLDER_ITEM_PATH_NAME, L"");
- pFolderPathName->SetTextConfig(FONT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pFolderPathName->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pFolderPathName->SetText(fullContentPath);
+ Label* pFolderItemCount = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ITEM_COUNT));
+ pFolderItemCount->SetText(CommonUtil::SetSongsString(__pPresentationModel->GetContentCount(itemIndex)));
- pItem->AddControl(*pFolderThumbnailBG);
- pItem->AddControl(*pFolderThumbnail);
- pItem->AddControl(*pFolderName);
- pItem->AddControl(*pFolderCount);
- pItem->AddControl(*pFolderPathName);
+ RelativeLayout layout;
+ layout.Construct();
+ TableViewItem* pItem = new (std::nothrow) TableViewItem();
+ pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
- delete pFolderBitmap;
- pFolderBitmap = null;
+ pItem->AddControl(*pTableViewItem);
+ pItem->SetIndividualSelectionEnabled(pTableViewItem, true);
AppLogDebug("EXIT");
return pItem;
Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
+ Form* pForm = dynamic_cast<Form*>(GetParent());
+ AppAssert(pForm);
+
+ Footer* pFooter = pForm->GetFooter();
+
switch (status)
{
case TABLE_VIEW_ITEM_STATUS_CHECKED:
case TABLE_VIEW_ITEM_STATUS_UNCHECKED:
{
- if (__checkedItemCount > 0)
- {
- __checkedItemCount--;
- }
+ __checkedItemCount--;
tableView.SetItemChecked(itemIndex, false);
}
break;
break;
}
- Form* pForm = dynamic_cast<Form*>(GetParent());
- AppAssert(pForm);
- CommonUtil::SetButtonEnabled(*pForm, __checkedItemCount);
-
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
+ if (__checkedItemCount > INIT_VALUE)
+ {
+ CommonUtil::SetFooterItemEnabled(*pFooter, true);
+ }
+ else
+ {
+ CommonUtil::SetFooterItemEnabled(*pFooter, false);
+ }
if (__checkedItemCount == __pPresentationModel->GetAllFolderCount())
{
- __pSelectAllCheckedButton->SetSelected(true);
+ SetCheckedIconAllCheckButton();
+ }
+ else
+ {
+ SetUnCheckedIconAllCheckButton();
}
+ SetCheckedCountBalloonPopup(__checkedItemCount);
Invalidate(true);
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *pForm);
AppLogDebug("EXIT");
}
}
void
+FolderListEditorPanel::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ AppLogDebug("ENTER");
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+
+// SetTabHeaderStyle();
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ AppLogDebug("EXIT");
+}
+
+void
FolderListEditorPanel::OnUpdateContentList(void)
{
AppLogDebug("ENTER");
__pContentTableView->UpdateTableView();
}
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
+
+void
+FolderListEditorPanel::SetEditHeaderStyle(void)
+{
+ AppLogDebug("ENTER");
+ RemoveParentHeaderActionEventListener();
+ Header* pHeader = GetParentHeader();
+ String titleText(ResourceManager::GetString(L"IDS_COM_BODY_EDIT"));
+ CommonUtil::SetEditHeaderStyle(*pHeader, titleText, IDA_HEADER_ALL_CHECK_BUTTON, false);
+ pHeader->AddActionEventListener(*this);
+ pHeader->Invalidate(true);
+ AppLogDebug("EXIT");
+}
+
+void
+FolderListEditorPanel::SetTabHeaderStyle(void)
+{
+ AppLogDebug("ENTER");
+ Header* pHeader = GetParentHeader();
+ pHeader->RemoveActionEventListener(*this);
+ CommonUtil::SetTabHeaderStyle(*pHeader);
+ AddParentHeaderActionEventListener();
+ pHeader->Invalidate(true);
+ AppLogDebug("EXIT");
+}
+
+void
+FolderListEditorPanel::SetDisableIconAllCheckButton(void)
+{
+ AppLogDebug("ENTER");
+ Header* pHeader = GetParentHeader();
+ 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");
+}
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const Tizen::Base::String MEDIA_PATH = Environment::GetMediaPath();
-static const Tizen::Base::String EXTERNAL_STORAGE_PATH = Environment::GetExternalStoragePath();
-static const Tizen::Base::String MEDIA_SOUND_PATH = Environment::GetMediaPath() + L"Sounds";
-static const Tizen::Base::String SEPARATOR_SLASH = L"/";
-static const int DEPTH = 3;
-
FolderListPanel::FolderListPanel(void)
: __itemIndex(-1)
, __pPlayListPickerPopup(null)
__pPresentationModel = FolderListPresentationModel::GetInstance();
SetLayoutFitToForm();
- CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"Folder View");
+// CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"Folder View");
SetFooterStyle(STYLE_MORE_ADD);
AppLogDebug("EXIT");
return E_SUCCESS;
Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"Folder View");
UpdateContentList();
ContentLibaryPanel::OnSceneActivatedN(previousSceneId, currentSceneId, null);
{
AppLogDebug("ENTER");
String* pContentPath = __pPresentationModel->GetFolderPath(itemIndex);
- Bitmap* pFolderBitmap = null;
- String fullContentPath = null;
+ Bitmap* StorageIconBitmap = null;
String strFolderName = null;
int folderNamePosition = 0;
- pContentPath->LastIndexOf(SEPARATOR_SLASH, pContentPath->GetLength() - 1, folderNamePosition);
+ pContentPath->LastIndexOf(IDS_SEPARATOR_SLASH, pContentPath->GetLength() - 1, folderNamePosition);
pContentPath->SubString(folderNamePosition + 1, strFolderName);
- if (*pContentPath == MEDIA_SOUND_PATH)
+ if (pContentPath->Contains(IDS_STORAGE_PHONE_PATH))
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_PHONE_BITMAP);
- fullContentPath = MEDIA_PATH;
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_PHONE);
}
- else if (*pContentPath == EXTERNAL_STORAGE_PATH)
+ else if (pContentPath->Contains(IDS_STORAGE_SDCARD_PATH))
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_SDCARD_BITMAP);
- fullContentPath = EXTERNAL_STORAGE_PATH;
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_SDCARD);
}
- else if (*pContentPath == MEDIA_PATH)
+ else if (pContentPath->Contains(IDS_STORAGE_EXTERNAL_PATH))
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_EXTERNAL_BITMAP);
- pContentPath->SubString(0, folderNamePosition + 1, fullContentPath);
- fullContentPath.SubString(1, fullContentPath);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_EXTERNAL);
}
else
{
- pFolderBitmap = ResourceManager::GetBitmapN(STORAGE_PHONE_BITMAP);
- pContentPath->SubString(0, folderNamePosition + 1, fullContentPath);
- fullContentPath.SubString(1, fullContentPath);
- }
-
- if (fullContentPath.GetLength() == 0)
- {
- fullContentPath = ResourceManager::GetString(L"IDS_EMAIL_OPT_MY_FOLDERS");
- }
-
- int depthCount = 0;
- wchar_t tempChar;
- for (int iCount = 0; iCount < fullContentPath.GetLength(); iCount++)
- {
- fullContentPath.GetCharAt(iCount, tempChar);
- if (SEPARATOR_SLASH.CompareTo(tempChar) == 0)
- {
- depthCount++;
- }
- }
-
- if (depthCount > DEPTH)
- {
- folderNamePosition = 0;
- int tempIndex = 0;
- for (int iCount = 0; iCount < DEPTH; iCount++)
- {
- fullContentPath.IndexOf(SEPARATOR_SLASH, tempIndex, folderNamePosition);
- tempIndex = folderNamePosition + 1;
- }
- fullContentPath.SubString(tempIndex - 1, fullContentPath);
- fullContentPath.Insert(L".", 0);
+ StorageIconBitmap = ResourceManager::GetBitmapN(IDB_STORAGE_PHONE);
}
Panel* pTableViewItem = new (std::nothrow) Panel();
}
Label* pStorageIcon = static_cast<Label*>(pTableViewItem->GetControl(IDC_STORAGE_TYPE_ICON));
- pStorageIcon->SetBackgroundBitmap(*pFolderBitmap);
- delete pFolderBitmap;
+ pStorageIcon->SetBackgroundBitmap(*StorageIconBitmap);
+ delete StorageIconBitmap;
Label* pFolderPath = static_cast<Label*>(pTableViewItem->GetControl(IDC_FOLDER_PATH));
- pFolderPath->SetText(fullContentPath);
+ String fullContentPath;
+ pContentPath->SubString(INIT_VALUE, folderNamePosition, fullContentPath);
+ pFolderPath->SetText(CommonUtil::SetHighDepthToEllipsisPath(fullContentPath));
+
Label* pFolderName = static_cast<Label*>(pTableViewItem->GetControl(IDC_FOLDER_NAME));
pFolderName->SetText(strFolderName);
+
Label* pFolderItemCount = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ITEM_COUNT));
pFolderItemCount->SetText(CommonUtil::SetSongsString(__pPresentationModel->GetContentCount(itemIndex)));
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
- if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
+ if (status != TABLE_VIEW_ITEM_STATUS_SELECTED)
{
- ArrayList* pData = new (std::nothrow) ArrayList();
- pData->Construct();
- pData->Add(*(new (std::nothrow) String(IDSCN_FOLDER_LIST)));
- pData->Add(*(__pPresentationModel->GetFolderPath(itemIndex)));
- pData->Add(*(new (std::nothrow) Integer(itemIndex)));
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_FOLDER_CONTENT_LIST), pData);
+ return;
}
+
+ ArrayList* pArgs = new (std::nothrow) ArrayList();
+ if (IsFailed(pArgs->Construct()))
+ {
+ AppLogDebug("pArgs->Construct() failed(%s)", GetErrorMessage(GetLastResult()));
+ delete pArgs;
+ return;
+ }
+
+ pArgs->Add(*(new (std::nothrow) String(IDSCN_FOLDER_LIST)));
+ pArgs->Add(*(new (std::nothrow) String(*__pPresentationModel->GetFolderPath(itemIndex))));
+ pArgs->Add(*(new (std::nothrow) Integer(itemIndex)));
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_FOLDER_CONTENT_LIST), pArgs);
AppLogDebug("EXIT");
}
CommonUtil::SetLayoutFitToContainer(*pTableViewContextItem, *pSweepQuickMenu);
AppLogDebug("EXIT");
return pTableViewContextItem;
-}
\ No newline at end of file
+}
}
void
+FolderListPresentationModel::RemoveFolderList(int folderIndex)
+{
+ AppLogDebug("ENTER");
+ IList* pRemoveFolderList = null;
+ int totalCount = 0;
+ ContentInformation* pContentInformation = null;
+ ContentSearchResult* pResult = null;
+
+ ContentManager contentManager;
+ contentManager.Construct();
+
+ if (__pFolderPathList == null)
+ {
+ return ;
+ }
+
+ String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
+
+ ContentDirectory contentDirectory;
+ result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
+
+ if (IsFailed(r))
+ {
+ return;
+ }
+ pRemoveFolderList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath,
+ SEARCH_PAGE_NO,
+ SEARCH_COUNT_PER_PAGE,
+ STRING_SORT_TITLE,
+ SORT_ORDER_ASCENDING);
+
+ totalCount = pRemoveFolderList->GetCount();
+
+ ContentInfo* pContentInfo = null;
+ ContentInformation* pContentInfoStruct = null;
+
+ for (int iCount = 0; iCount < totalCount; iCount++)
+ {
+ pContentInfo = static_cast<ContentInfo*>(pRemoveFolderList->GetAt(iCount));
+ if (pContentInfo != null && pContentInfo->GetContentType() == CONTENT_TYPE_AUDIO)
+ {
+ AudioContentInfo* pAudioContentInfo = static_cast<AudioContentInfo*>(pContentInfo);
+ pContentInfoStruct = CommonUtil::GetContentInformationN(*pAudioContentInfo);
+ contentManager.DeleteContent(pContentInfoStruct->contentId);
+
+ delete pContentInfoStruct;
+ pContentInfoStruct = null;
+ }
+ }
+
+ pRemoveFolderList->RemoveAll(true);
+ delete pRemoveFolderList;
+
+ AppLogDebug("EXIT");
+}
+
+void
FolderListPresentationModel::RefreshContentList(int folderIndex)
{
AppLogDebug("ENTER");
pSceneManager->AddSceneEventListener(sceneId, *pForm);
pNewForm = pForm;
}
- else if (formId == IDC_ARTIST_CONTENT_LIST_FORM)
- {
- ArtistContentListForm* pForm = new (std::nothrow) ArtistContentListForm();
- if (pForm == null)
- {
- AppLogDebug("EXIT");
- return null;
- }
- pForm->Initialize();
- pSceneManager->AddSceneEventListener(sceneId, *pForm);
- pNewForm = pForm;
- }
- else if (formId == IDC_GENRE_CONTENT_LIST_FORM)
- {
- GenreContentListForm* pForm = new (std::nothrow) GenreContentListForm();
- if (pForm == null)
- {
- AppLogDebug("EXIT");
- return null;
- }
- pForm->Initialize();
- pSceneManager->AddSceneEventListener(sceneId, *pForm);
- pNewForm = pForm;
- }
- else if (formId == IDC_COMPOSER_CONTENT_LIST_FORM)
- {
- ComposerContentListForm* pForm = new (std::nothrow) ComposerContentListForm();
- if (pForm == null)
- {
- AppLogDebug("EXIT");
- return null;
- }
- pForm->Initialize();
- pSceneManager->AddSceneEventListener(sceneId, *pForm);
- pNewForm = pForm;
- }
- else if (formId == IDC_YEAR_CONTENT_LIST_FORM)
- {
- YearContentListForm* pForm = new (std::nothrow) YearContentListForm();
- if (pForm == null)
- {
- AppLogDebug("EXIT");
- return null;
- }
- pForm->Initialize();
- pSceneManager->AddSceneEventListener(sceneId, *pForm);
- pNewForm = pForm;
- }
+// else if (formId == IDC_ARTIST_CONTENT_LIST_FORM)
+// {
+// ArtistContentListForm* pForm = new (std::nothrow) ArtistContentListForm();
+// if (pForm == null)
+// {
+// AppLogDebug("EXIT");
+// return null;
+// }
+// pForm->Initialize();
+// pSceneManager->AddSceneEventListener(sceneId, *pForm);
+// pNewForm = pForm;
+// }
+// else if (formId == IDC_GENRE_CONTENT_LIST_FORM)
+// {
+// GenreContentListForm* pForm = new (std::nothrow) GenreContentListForm();
+// if (pForm == null)
+// {
+// AppLogDebug("EXIT");
+// return null;
+// }
+// pForm->Initialize();
+// pSceneManager->AddSceneEventListener(sceneId, *pForm);
+// pNewForm = pForm;
+// }
+// else if (formId == IDC_COMPOSER_CONTENT_LIST_FORM)
+// {
+// ComposerContentListForm* pForm = new (std::nothrow) ComposerContentListForm();
+// if (pForm == null)
+// {
+// AppLogDebug("EXIT");
+// return null;
+// }
+// pForm->Initialize();
+// pSceneManager->AddSceneEventListener(sceneId, *pForm);
+// pNewForm = pForm;
+// }
+// else if (formId == IDC_YEAR_CONTENT_LIST_FORM)
+// {
+// YearContentListForm* pForm = new (std::nothrow) YearContentListForm();
+// if (pForm == null)
+// {
+// AppLogDebug("EXIT");
+// return null;
+// }
+// pForm->Initialize();
+// pSceneManager->AddSceneEventListener(sceneId, *pForm);
+// pNewForm = pForm;
+// }
else if (formId == IDC_FOLDER_CONTENT_LIST_FORM)
{
FolderContentListForm* pForm = new (std::nothrow) FolderContentListForm();
pSceneManager->AddSceneEventListener(sceneId, *pForm);
pNewForm = pForm;
}
- else if (formId == IDC_ARTIST_ALBUM_LIST_FORM)
- {
- ArtistAlbumListForm* pForm = new (std::nothrow) ArtistAlbumListForm();
- if (pForm == null)
- {
- AppLogDebug("EXIT");
- return null;
- }
- pForm->Initialize();
- pSceneManager->AddSceneEventListener(sceneId, *pForm);
- pNewForm = pForm;
- }
- else if (formId == IDC_ARTIST_ALBUM_LIST_SEARCH_FORM)
- {
- ArtistAlbumListForm* pForm = new (std::nothrow) ArtistAlbumListForm();
- if (pForm == null)
- {
- AppLogDebug("EXIT");
- return null;
- }
- pForm->Initialize();
- pSceneManager->AddSceneEventListener(sceneId, *pForm);
- pNewForm = pForm;
- }
+// else if (formId == IDC_ARTIST_ALBUM_LIST_FORM)
+// {
+// ArtistAlbumListForm* pForm = new (std::nothrow) ArtistAlbumListForm();
+// if (pForm == null)
+// {
+// AppLogDebug("EXIT");
+// return null;
+// }
+// pForm->Initialize();
+// pSceneManager->AddSceneEventListener(sceneId, *pForm);
+// pNewForm = pForm;
+// }
+// else if (formId == IDC_ARTIST_ALBUM_LIST_SEARCH_FORM)
+// {
+// ArtistAlbumListForm* pForm = new (std::nothrow) ArtistAlbumListForm();
+// if (pForm == null)
+// {
+// AppLogDebug("EXIT");
+// return null;
+// }
+// pForm->Initialize();
+// pSceneManager->AddSceneEventListener(sceneId, *pForm);
+// pNewForm = pForm;
+// }
else if (formId == IDC_ARTIST_ALBUM_LIST_EDIT_FORM)
{
ArtistAlbumListEditorForm* pForm = new (std::nothrow) ArtistAlbumListEditorForm();
}
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()
, ThumbnailBase::ThumbnailBase()
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
+#endif
__pNoContentImageLabel = new (std::nothrow) Label();
__pNoContentImageLabel->Construct(Rectangle((pForm->GetWidth() - W_NO_CONTENT) / 2, Y_GAP_NO_CONTENT, W_NO_CONTENT, H_NO_CONTENT), L"");
- __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(NO_CONTENT_BITMAP)));
+ __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(IDB_NO_CONTENTS)));
__pNoContentTextLabel = new (std::nothrow) Label();
__pNoContentTextLabel->Construct(Rectangle(0,
__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
+ Button* pBackButton = static_cast<Button*>(GetControl(IDC_BACK_BUTTON));\r
+ pBackButton->SetNormalBitmap(pBackButton->GetPosition(), *pBackNormalBitmap);\r
+ pBackButton->SetPressedBitmap(pBackButton->GetPosition(), *pBackPressBitmap);\r
+\r
+ delete pBackNormalBitmap;\r
+ delete pBackPressBitmap;\r
+\r
+ Bitmap* pMoreContextNormalBitmap = ResourceManager::GetBitmapN(L"00_icon_more_web.png");\r
+ Bitmap* pMoreContextPressBitmap = ResourceManager::GetBitmapN(L"00_icon_more_press_web.png");\r
+\r
+ Button* pMoreContextMenuButton = static_cast<Button*>(GetControl(IDC_MORE_CONTEXT_MENU_BUTTON));\r
+\r
+ pMoreContextMenuButton->SetNormalBitmap(pMoreContextMenuButton->GetPosition(), *pMoreContextNormalBitmap);\r
+ pMoreContextMenuButton->SetPressedBitmap(pMoreContextMenuButton->GetPosition(), *pMoreContextPressBitmap);\r
+\r
+ delete pMoreContextNormalBitmap;\r
+ delete pMoreContextPressBitmap;\r
+\r
Invalidate(true);\r
AppLogDebug("EXIT");\r
return E_SUCCESS;\r
__pRewindButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_PREVIOUS_CONTROL_BUTTON));
__pRewindButton->SetActionId(IDA_BUTTON_REWIND);
__pRewindButton->AddTouchEventListener(*this);
+
__pPlayPauseButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_PALY_TOGGLE_CONTROL_BUTTON));
__pPlayPauseButton->SetActionId(IDA_BUTTON_PLAY);
__pPlayPauseButton->AddActionEventListener(*this);
+
__pForwardButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_NEXT_CONTROL_BUTTON));
__pForwardButton->SetActionId(IDA_BUTTON_FORWARD);
__pForwardButton->AddTouchEventListener(*this);
+
+ Bitmap* pBackNormalBitmap = ResourceManager::GetBitmapN(L"00_icon_Back_02_web.png");
+ Bitmap* pBackPressBitmap = ResourceManager::GetBitmapN(L"00_icon_Back_02_press_web.png");
+
__pBackButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_BACK_BUTTON));
+
+ __pBackButton->SetNormalBitmap(__pBackButton->GetPosition(), *pBackNormalBitmap);
+ __pBackButton->SetPressedBitmap(__pBackButton->GetPosition(), *pBackPressBitmap);
+
__pBackButton->SetActionId(IDA_BUTTON_BACK);
__pBackButton->AddActionEventListener(*this);
+
+ delete pBackNormalBitmap;
+ delete pBackPressBitmap;
+
__pCurrentTimeLabel = static_cast<Label*>(__pControllerPanel->GetControl(IDC_CURRENT_PLAYING_TIME));
__pTotalTimeLabel = static_cast<Label*>(__pControllerPanel->GetControl(IDC_CONTENT_TOTAL_TIME));
__pPlayStateSlider = static_cast<Slider*>(__pControllerPanel->GetControl(IDC_SLIDER_BAR));
__pPlayStateSlider->AddSliderEventListener(*this);
+
__pPlayStateSlider->SetThumbTextColor(SLIDER_THUMB_STATUS_NORMAL, Color(255, 255, 255, 0));
__pPlayStateSlider->SetThumbTextColor(SLIDER_THUMB_STATUS_PRESSED, Color(255, 255, 255, 0));
__pMoreContextButton = static_cast<Button*>(__pControllerPanel->GetControl(IDC_MORE_CONTEXT_MENU_BUTTON));
+
+ Bitmap* pMoreContextNormalBitmap = ResourceManager::GetBitmapN(L"00_icon_more_web.png");
+ Bitmap* pMoreContextPressBitmap = ResourceManager::GetBitmapN(L"00_icon_more_press_web.png");
+ Bitmap* pMoreContextDisableBitmap = ResourceManager::GetBitmapN(L"00_icon_more_dim_web.png");
+
+ __pMoreContextButton->SetNormalBitmap(__pMoreContextButton->GetPosition(), *pMoreContextNormalBitmap);
+ __pMoreContextButton->SetPressedBitmap(__pMoreContextButton->GetPosition(), *pMoreContextPressBitmap);
+ __pMoreContextButton->SetDisabledBitmap(__pMoreContextButton->GetPosition(), *pMoreContextDisableBitmap);
+
__pMoreContextButton->SetActionId(IDA_BUTTON_MORE_CONTEXT_MENU);
__pMoreContextButton->AddActionEventListener(*this);
+ delete pMoreContextNormalBitmap;
+ delete pMoreContextPressBitmap;
+ delete pMoreContextDisableBitmap;
+
__pAnimationFinishedTimer = new (std::nothrow) Tizen::Base::Runtime::Timer();
__pAnimationFinishedTimer->Construct(*this);
__pContentPlayTimer = new (std::nothrow) Tizen::Base::Runtime::Timer();
__pContentPlayTimer->Construct(*this);
__pPlayerPresentationModel = PlayerPresentationModel::GetInstance();
- __pPlayerPresentationModel->AddMusicPlayerEventListener(*this);
__pContentsListViewPanel = new (std::nothrow) Panel();
-
if (IsFailed(__pContentsListViewPanel->Construct(IDL_MUSIC_PLAYER_CONTENTS_LIST_VIEW_PANEL)))
{
AppLogDebug("Construct(IDL_MUSIC_PLAYER_CONTENTS_LIST_VIEW_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
__pPanelRegisterBar->AddControl(*__pContentsListViewPanel);
__pContentsListViewPanel->SetShowState(false);
__pContentsListViewPanel->SetEnabled(false);
+
CommonUtil::SetLayoutFitToContainer(*__pPanelRegisterBar, *__pContentsListViewPanel);
TableView* pContentsTableView = static_cast<TableView*>(__pContentsListViewPanel->GetControl(IDC_CONTENTS_TABLEVIEW));
pContentsTableView->AddTableViewItemEventListener(*this);
pContentsTableView->SetItemProvider(this);
+
__pContentsAlbumViewPanel = new (std::nothrow) Panel();
if (IsFailed(__pContentsAlbumViewPanel->Construct(IDC_MUSIC_PLAYER_CONTENTS_ALBUM_VIEW_PANEL)))
{
rectangleNextElement = __pAlbumArtElement[ALBUM_ART_IMAGE_NEXT]->GetBounds();
UpdateSplitBarState();
+
+ Rectangle clientBounds = GetClientAreaBounds();
+ if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE
+ || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+ {
+ if (__pVolumePanel != null)
+ {
+ __pVolumePanel->SetPosition(clientBounds.width - W_HORIZONTAL_PLAYER , GetClientAreaBounds().height - H_HORIZONTAL_CONTROLLER_PANEL - H_VOLUME_PANEL - 50);
+ __pVolumePanel->Invalidate(true);
+ }
+ }
+ else if (orientationStatus == ORIENTATION_STATUS_PORTRAIT
+ || orientationStatus == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+ {
+ if (__pVolumePanel != null)
+ {
+ __pVolumePanel->SetPosition(0, clientBounds.height - H_CONTROLLER_PANEL - H_VOLUME_PANEL - 50);
+ __pVolumePanel->Invalidate(true);
+ }
+ }
AppLogDebug("EXIT");
}
case IDA_BUTTON_VOLUME:
{
-// if (__pVolumePanel == null)
-// {
-// InitializeVolumeBar();
-// }
-// else
-// {
-// if (__pVolumePanel->GetShowState() == true)
-// {
-// __pVolumePanel->SetShowState(false);
-// }
-// else
-// {
-// int MediaSoundVolume = 0;
-// SettingInfo::GetValue(MEDIA_VOLUME, MediaSoundVolume);
-// __pPlayerPresentationModel->SetVolume(MediaSoundVolume);
-// __pVolumeSlider->SetValue(__pPlayerPresentationModel->GetVolume());
-// __pVolumeSlider->Invalidate(true);
-// __pVolumePanel->SetShowState(true);
-// }
-// }
+ if (__pVolumePanel == null)
+ {
+ InitializeVolumeBar();
+ }
+ else
+ {
+ if (__pVolumePanel->GetShowState() == true)
+ {
+ __pVolumePanel->SetShowState(false);
+ }
+ else
+ {
+ int MediaSoundVolume = 0;
+ SettingInfo::GetValue(MEDIA_VOLUME, MediaSoundVolume);
+ __pPlayerPresentationModel->SetVolume(MediaSoundVolume);
+ __pVolumeSlider->SetValue(__pPlayerPresentationModel->GetVolume());
+ __pVolumeSlider->Invalidate(true);
+ __pVolumePanel->SetShowState(true);
+ }
+ }
}
break;
SetKeyCapture(KEY_SIDE_DOWN);
*/
+ __pPlayerPresentationModel->AddMusicPlayerEventListener(*this);
if (previousSceneId != IDSCN_MUSIC_SETTING
&& previousSceneId != IDSCN_PLAYLIST_CREATOR
&& previousSceneId != IDSCN_CONTENT_DETAIL)
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
AppLogDebug("ENTER");
+ __pPlayerPresentationModel->RemoveMusicPlayerEventListener(*this);
CancelAllThumbnailRequest();
AppLogDebug("EXIT");
}
|| orientationStatue == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
{
__pVolumePanel->Construct(Rectangle(clientBounds.width - W_HORIZONTAL_PLAYER
- , GetClientAreaBounds().height - H_HORIZONTAL_CONTROLLER_PANEL - H_VOLUME_PANEL
+ , GetClientAreaBounds().height - H_HORIZONTAL_CONTROLLER_PANEL - H_VOLUME_PANEL - 50
, W_HORIZONTAL_PLAYER
, H_VOLUME_PANEL));
|| orientationStatue == ORIENTATION_STATUS_PORTRAIT_REVERSE)
{
__pVolumePanel->Construct(Rectangle(0
- , clientBounds.height - H_CONTROLLER_PANEL - H_VOLUME_PANEL
+ , clientBounds.height - H_CONTROLLER_PANEL - H_VOLUME_PANEL - 50
, clientBounds.width
, H_VOLUME_PANEL));
__pVolumeSlider->Construct(Rectangle(0
, GROUP_STYLE_NONE);
}
__pVolumeSlider->SetColor(TRANSPARENT_COLOR);
-// __pVolumePanel->SetBackgroundColor(COLOR_PLAYER_BOTTOM_PANEL);
AddControl(*__pVolumePanel);
__pVolumePanel->AddControl(*__pVolumeSlider);
#define BUFFER_INFO_OF_PLAYER 0
static const int PROGRESS_TIMER_DURATION = 250;
+static const int PROGRESS_BAR_DURATION_TIMER = 1000;
static const int MIN_SLIDER_COUNT = 0;
static const int MAX_SLIDER_COUNT = 100;
static const int INIT_X_VALUE = 0;
pContentInfoStruct->TitleName = pAudioMeta->GetTitle();
}
- if(__pPlayer != null)
+ if (__pPlayer != null)
{
pContentInfoStruct->Duration = __pPlayer->GetDuration();
}
AppLogDebug("ENTER");
result r = E_SUCCESS;
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return E_FAILURE;
PlayerPresentationModel::Pause(void)
{
AppLogDebug("ENTER");
-
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
PlayerPresentationModel::MovePreviousContent(bool forceMove)
{
AppLogDebug("ENTER");
-
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
PlayerPresentationModel::MoveNextContent(void)
{
AppLogDebug("ENTER");
-
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
PlayerPresentationModel::SetPlayPosition(int playPosition)
{
AppLogDebug("ENTER");
-
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
AppLogDebug("ENTER");
// StopForwardRewind();
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
PlayerPresentationModel::OnPlayerBuffering(int percent)
{
AppLogDebug("ENTER");
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
PlayerPresentationModel::OnPlayerErrorOccurred(PlayerErrorReason r)
{
AppLogDebug("ENTER");
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
PlayerPresentationModel::OnTimerExpired(Timer& timer)
{
AppLogDebug("ENTER");
-
- if(__pPlayer == null)
+ if (__pPlayer == null)
{
AppLogDebug("EXIT");
return;
case PLAYER_STATE_PLAYING:
{
TryReturnVoid(playDuration != 0, "playDuration is zero.");
- r = __pPlayStateTimer->Start(PROGRESS_TIMER_DURATION);
+ r = __pPlayStateTimer->Start(PROGRESS_BAR_DURATION_TIMER);
TryCatch(r == E_SUCCESS, , "__pPlayStateTimer start failed..\n");
TryReturnVoid(__seekCompleted == true, "SeekTo is not complete.");
currentDuration = CommonUtil::GetFormatDate(__pPlayer->GetPosition());
pListener->OnPlayPresentationModelDestroying();
}
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const Tizen::Graphics::Rectangle RECT_THUMBNAIL_BG (15, 7, 113, 113);
-static const Tizen::Graphics::Rectangle RECT_THUMBNAIL (16, 8, 112, 112);
-static const Tizen::Graphics::Rectangle RECT_SONG_TITLE (144, 10, 416, 60);
-static const Tizen::Graphics::Rectangle RECT_SONG_ARTIST (144, 70, 576, 48);
-static const Tizen::Graphics::Rectangle RECT_SONG_TIME (560, 10, 160, 60);
-
-static const int X_OFFSET_EDIT_STYLE_TABLE_VIEW = 96;
static const int COUNT_MESSAGE_BOX_TIMEOUT = 3000;
PlaylistContentListForm::PlaylistContentListForm(void)
: ContentListForm::ContentListForm()
, ThumbnailBase::ThumbnailBase()
, __pThumbnail(null)
- , __ContentType(0)
, __pPresentationModel(null)
{
AppLogDebug("ENTER");
PlaylistContentListForm::OnInitializing(void)
{
AppLogDebug("ENTER");
- CreateTableview();
- CreateSelectAllCheckedButton();
- CreateCheckedCountLabel();
- CreateNoContentImage(L"IDS_MUSIC_HEADER_NO_SONGS");
-
+ SetContentListFooter();
AppLogDebug("EXIT");
return ThumbnailBase::Construct();
}
PlaylistContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- __checkedItemCount = 0;
- DestroyPlayListPickerPopup();
+ delete __pContextItem;
+ __pContextItem = null;
AppLogDebug("EXIT");
- return E_SUCCESS;
+ return ContentListForm::OnTerminating();
}
void
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
+
switch (actionId)
{
- case IDA_FOOTER_BUTTON_EDIT:
- {
- ToggleViewMode(false);
- }
- break;
-
- case IDA_FOOTER_BUTTON_CANCEL:
- {
- __checkedItemCount = INIT_VALUE;
- __pSelectAllCheckedButton->SetSelected(false);
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount());
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- ToggleViewMode(true);
- }
- break;
-
- case IDA_FOOTER_BUTTON_SEARCH:
+ case IDA_CONTEXT_MENU_ITEM_SEARCH:
{
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
}
break;
- case IDA_CHECK_BUTTON:
+ case IDA_CONTEXT_MENU_ITEM_EDIT:
{
- __checkedItemCount = __pPresentationModel->GetContentCount();
- if (__checkedItemCount > INIT_VALUE)
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- }
- CommonUtil::SetAllCheckState(true, *__pContentTableView, __pPresentationModel->GetContentCount());
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_EDITOR);
}
break;
- case IDA_UNCHECK_BUTTON:
+ case IDA_FOOTER_BUTTON_MORE:
{
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- pFooter->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount());
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_SEARCH | CONTEXT_MENU_ITEM_STYLE_EDIT, Point(X_MORE_POPUP, Y_MORE_POPUP));
}
break;
case IDA_FOOTER_BUTTON_DELETE:
{
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount();
- int iCount = 0;
-
- if (__checkedItemCount <= INIT_VALUE)
- {
- return;
- }
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
- pFooter->Invalidate(true);
-
- if (__ContentType == RECENTLY_ADDED_CONTENT)
- {
- ContentManager contentManager;
- contentManager.Construct();
-
- for (iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- return;
- }
- __pContentTableView->SetItemChecked(iCount, false);
- contentManager.DeleteContent(pContentInfoStruct->contentId);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
-
- __pPresentationModel->UpdatePlaylistContentList(__ContentType, *__pStrContentName);
- __pContentTableView->UpdateTableView();
- __pContentTableView->Invalidate(true);
- }
- else
- {
- for (iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- return;
- }
- __pContentTableView->SetItemChecked(iCount,false);
- __pPresentationModel->DeleteContent(__ContentType, *pContentInfoStruct);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- __pPresentationModel->UpdatePlaylistContentList(__ContentType, *__pStrContentName);
- __pContentTableView->UpdateTableView();
- __pContentTableView->Invalidate(true);
- }
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
-
- if (__pPresentationModel->GetContentCount() > 0)
- {
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- }
- else
- {
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- }
- }
- break;
-
- case IDA_FOOTER_BUTTON_SHARE:
- {
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount();
-
- pDataList->Construct();
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
- pDataList->Add(*(new (std::nothrow) String(L"attachment:" + pContentInfoStruct->ContentFilePath)));
-
- __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- Invalidate(true);
- if (__pSharePopup == null)
- {
- __pSharePopup = new (std::nothrow) SharePopup();
- __pSharePopup->Initialize();
- }
- __pSharePopup->SetShowState(true);
- __pSharePopup->Show();
- __pSharePopup->SetArguments(pDataList);
- }
- break;
-
- case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
- {
- ContentManager contentManager;
- Footer* pFooter = GetFooter();
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- int totalCount = 0;
-
- if (__checkedItemCount <= 0)
- {
- return;
- }
-
- pDataList->Construct();
- contentManager.Construct();
- totalCount = __pPresentationModel->GetContentCount();
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
-
- pDataList->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
-
- __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
-
- if (IsFailed(CreatePlayListPickerPopup(pDataList)))
- {
- AppLogDebug("CreatePlayListPickerPopup failed(%s)", GetLastResult());
- return;
- }
- __pPlayListPickerPopup->SetShowState(true);
- __pPlayListPickerPopup->Show();
- //__pPlayListPickerPopup->SetCollectedContent(pDataList);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- Invalidate(true);
+ RemoveCheckedTableviewItem();
+ __pPresentationModel->UpdatePlaylistContentList(__currentContentIndex, __headerTitle);
+ UpdateContentListScreenState();
+ __pContentTableView->UpdateTableView();
}
break;
default:
break;
}
+
+ ContentListForm::OnActionPerformed(source, actionId);
AppLogDebug("EXIT");
}
AppLogDebug("ENTER");
if (pArgs != null && previousSceneId.Equals(IDSCN_PLAYLIST_LIST, true) == true)
{
- __pStrSceneId = static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME));
- __pStrContentName = static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME));
- __ContentType = static_cast<Integer*>(pArgs->GetAt(DATA_ITEM_CONTENT_TYPE))->ToInt();
+ __prevSceneId.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME)));
+ __headerTitle.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME)));
+ __currentContentIndex = static_cast<Integer*>(pArgs->GetAt(DATA_ITEM_CONTENT_TYPE))->ToInt();
+
__pPresentationModel = PlaylistListPresentationModel::GetInstance();
- __pPresentationModel->UpdatePlaylistContentList(__ContentType, *__pStrContentName);
- }
- else
- {
- // Empty statement
- }
+ __pPresentationModel->UpdatePlaylistContentList(__currentContentIndex, __headerTitle);
- if (__checkEdit == false)
- {
- Footer* pFooter = CommonUtil::CreateEditFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
+ SetContentListHeader();
- if (__pPresentationModel->GetContentCount() <= INIT_VALUE)
- {
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- pFooter->SetItemEnabled(INDEX_FOOTER_EDIT, false);
- }
- }
- else
- {
- ToggleViewMode(false);
+ pArgs->RemoveAll(true);
+ delete pArgs;
}
- SetTitleText(*__pStrContentName);
+ ContentListForm::OnSceneActivatedN(previousSceneId, currentSceneId, null);
__pContentTableView->UpdateTableView();
AppLogDebug("EXIT");
}
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
CancelAllThumbnailRequest();
AppLogDebug("EXIT");
}
PlaylistContentListForm::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = null;
+
+ RelativeLayout layout;
+ layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (__checkEdit)
+ TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
+ tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
}
- else
+
+ result r = pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), tableViewAnnexStyle);
+ if (IsFailed(r))
{
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+ AppLogDebug("pItem->Construct() failed(%s)", GetErrorMessage(r));
+ delete pItem;
+ return null;
}
-// pItem->SetBackgroundColor(COLOR_WHITE);
- pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfo == null)
{
+ AppLogDebug("__pPresentationModel->GetContentInfoN failed(null)");
delete pItem;
- pItem = null;
return null;
}
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
- CreateTableViewItem(*pItem, *pContentInfoStruct);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ CreateTableViewItem(*pItem, *pContentInfo);
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) int(itemIndex)));
+ delete pContentInfo;
AppLogDebug("EXIT");
return pItem;
Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
- switch (status)
- {
- case TABLE_VIEW_ITEM_STATUS_CHECKED:
- {
- Footer* pFooter = GetFooter();
- __checkedItemCount++;
- tableView.SetItemChecked(itemIndex, true);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- if (__checkedItemCount == __pPresentationModel->GetContentCount())
- {
- __pSelectAllCheckedButton->SetSelected(true);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case TABLE_VIEW_ITEM_STATUS_UNCHECKED:
- {
- Footer* pFooter = GetFooter();
-
- __checkedItemCount--;
- tableView.SetItemChecked(itemIndex, false);
-
- if (__checkedItemCount == INIT_VALUE)
- {
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- pFooter->Invalidate(true);
- }
-
- if (__checkedItemCount != __pPresentationModel->GetContentCount())
- {
- __pSelectAllCheckedButton->SetSelected(false);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case TABLE_VIEW_ITEM_STATUS_SELECTED:
- {
- SceneManager* pSceneManager = SceneManager::GetInstance();
-
- AppAssert(pSceneManager);
- if (__ContentType != RECENTLY_ADDED_CONTENT)
- {
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), GetAudioContentInfoContentList(itemIndex));
- }
- else if (__ContentType == RECENTLY_ADDED_CONTENT)
- {
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), GetSearchResultContentList(itemIndex));
- }
- }
- break;
-
- default:
- break;
- }
+ ContentListForm::OnTableViewItemStateChanged(tableView, itemIndex, pItem, status);
AppLogDebug("EXIT");
}
pTempList->Add(*(new (std::nothrow) String(MUSIC)));
pTempList->Add(*(new (std::nothrow) Integer(itemIndex)));
- pTempList->Add(*(__pPresentationModel->GetContentPathListN(__ContentType)));
+ pTempList->Add(*(__pPresentationModel->GetContentPathListN(__currentContentIndex)));
AppLogDebug("EXIT");
return pTempList;
}
pTempList->Add(*(new (std::nothrow) String(MUSIC)));
pTempList->Add(*(new (std::nothrow) Integer(itemIndex)));
- pTempList->Add(*(__pPresentationModel->GetContentPathListN(__ContentType)));
+ pTempList->Add(*(__pPresentationModel->GetContentPathListN(__currentContentIndex)));
AppLogDebug("EXIT");
return pTempList;
}
-result
-PlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Container& parent,
- const ContentInformation& contentInfo)
+bool
+PlaylistContentListForm::IsEmptyContentList(void)
{
AppLogDebug("ENTER");
- result r = E_SUCCESS;
-
- Rectangle rectSongTitle = RECT_SONG_TITLE;
- Rectangle rectSongArtist = RECT_SONG_ARTIST;
- Rectangle rectSongTime = RECT_SONG_TIME;
+ if (__pPresentationModel->GetContentCount() != INIT_VALUE)
+ {
+ return false;
+ }
+ AppLogDebug("EXIT");
+ return true;
+}
- if (__checkEdit)
+Tizen::Base::Collection::ArrayList*
+PlaylistContentListForm::MakePlayerSceneParam(int startIndex)
+{
+ AppLogDebug("ENTER");
+ if (__currentContentIndex != RECENTLY_ADDED_CONTENT)
{
- rectSongTitle.width = rectSongTitle.width - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
- rectSongArtist.width = rectSongArtist.width - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
- rectSongTime.x = rectSongTime.x - X_OFFSET_EDIT_STYLE_TABLE_VIEW;
+ AppLogDebug("EXIT");
+ return GetAudioContentInfoContentList(startIndex);
}
+ else if (__currentContentIndex == RECENTLY_ADDED_CONTENT)
+ {
+ AppLogDebug("EXIT");
+ return GetSearchResultContentList(startIndex);
+ }
+ AppLogDebug("EXIT");
+ return null;
+}
+
+ContentInformation*
+PlaylistContentListForm::GetContentInformation(int index)
+{
- Label* pSongThumbnailBGLabel = new (std::nothrow) Label();
- pSongThumbnailBGLabel->Construct(RECT_THUMBNAIL_BG, L"");
- parent.AddControl(*pSongThumbnailBGLabel);
-
- Label* pSongThumbnailLabel = new (std::nothrow) Label();
- pSongThumbnailLabel->Construct(RECT_THUMBNAIL, L"");
- pSongThumbnailLabel->SetBackgroundBitmap(*GetDefaultThumbnail());
- pSongThumbnailLabel->SetName(L"pSongThumbnailLabel");
- parent.AddControl(*pSongThumbnailLabel);
-
- Label* pSongTitleLabel = new (std::nothrow) Label();
- pSongTitleLabel->Construct(rectSongTitle, L"");
- pSongTitleLabel->SetTextColor(COLOR_MAIN_TEXT);
- pSongTitleLabel->SetTextConfig(MAIN_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pSongTitleLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pSongTitleLabel->SetText(contentInfo.TitleName);
- parent.AddControl(*pSongTitleLabel);
-
- Label* pSongArtistLabel = new (std::nothrow) Label();
- pSongArtistLabel->Construct(rectSongArtist, L"");
- pSongArtistLabel->SetTextColor(COLOR_SUB_TEXT);
- pSongArtistLabel->SetTextConfig(SUB_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pSongArtistLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pSongArtistLabel->SetText(contentInfo.ArtistName);
- parent.AddControl(*pSongArtistLabel);
-
- Label* pSongTimeLabel = new (std::nothrow) Label();
- pSongTimeLabel->Construct(rectSongTime, L"");
- pSongTimeLabel->SetTextColor(COLOR_SUB_TEXT);
- pSongTimeLabel->SetTextConfig(SUB_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pSongTimeLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
- pSongTimeLabel->SetText(CommonUtil::GetFormatDate(contentInfo.Duration));
- parent.AddControl(*pSongTimeLabel);
+ AppLogDebug("ENTER");
AppLogDebug("EXIT");
- return r;
+ return __pPresentationModel->GetContentInfoN(index);
}
-void
-PlaylistContentListForm::ToggleViewMode(bool editMode)
+result
+PlaylistContentListForm::SetContentListHeader(void)
{
AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
- SceneManager* pSceneManager = SceneManager::GetInstance();
- AppAssert(pSceneManager);
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
- if (editMode)
+result
+PlaylistContentListForm::SetContentListFooter(void)
+{
+ AppLogDebug("ENTER");
+ CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_MORE_ADD);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+
+result
+PlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo)
+{
+ AppLogDebug("ENTER");
+ Panel* pTableViewItem = new (std::nothrow) Panel();
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- int currentContentCount = 0;
- currentContentCount = __pPresentationModel->GetContentCount();
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
- pFooter = CommonUtil::CreateEditFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
-
- if (currentContentCount > INIT_VALUE)
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL)))
{
- SetTitleText(*__pStrContentName);
+ AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
}
- else
- {
- SetTitleText("No songs");
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- pFooter->SetItemEnabled(INDEX_FOOTER_EDIT, false);
- }
-
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
-
- __pContentTableView->SetBounds(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height));
- __pContentTableView->Invalidate(true);
-
- __checkEdit = false;
- __pContentTableView->UpdateTableView();
}
else
{
- SetTitleText(ResourceManager::GetString("IDS_COM_BODY_EDIT"));
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
-
- pFooter = CommonUtil::CreateDeleteFooter(*this);
- pFooter->AddActionEventListener(*this);
-
- __pSelectAllCheckedButton->SetEnabled(true);
-
- __pContentTableView->SetBounds(Rectangle(0, __pSelectAllCheckedButton->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pSelectAllCheckedButton->GetHeight())));
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL)))
+ {
+ AppLogDebug("Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
+ }
+ }
- __pSelectAllCheckedButton->SetShowState(true);
- __pContentTableView->Invalidate(true);
+ Label* pTitleName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME));
+ pTitleName->SetText(contentInfo.TitleName);
+ Label* pArtistName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ARTIST_NAME));
+ pArtistName->SetText(contentInfo.ArtistName);
- __checkEdit = true;
- __pContentTableView->UpdateTableView();
- }
- Invalidate(true);
+ parent.AddControl(*pTableViewItem);
+ CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
AppLogDebug("EXIT");
+ return E_SUCCESS;
}
void
AddressbookManager* pAddressbookManager = AddressbookManager::GetInstance();
Addressbook* pAddressbook = pAddressbookManager->GetAddressbookN(DEFAULT_ADDRESSBOOK_ID);
- ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(__itemIndex);
+ ContentInformation* pCcontentInfo = __pPresentationModel->GetContentInfoN(GetActivatedContextItem());
if (pCcontentInfo == null)
{
delete pAddressbook;
PlaylistContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
AppLogDebug("ENTER");
- Label* pThumbnailLabel = static_cast<Label*>(pItem->GetControl(L"pSongThumbnailLabel"));
+ Panel* pItemPanel = null;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL));
+ }
+ else
+ {
+ pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENTS_LIBARY_ITEM_PANEL));
+ }
+
+ if (pItemPanel == null)
+ {
+ AppLogDebug("pItemPanel is null");
+ delete __pThumbnail;
+ __pThumbnail = null;
+ return;
+ }
+
+ Label* pThumbnailLabel = static_cast<Label*>(pItemPanel->GetControl(IDC_CONTENTS_THUMBNAIL));
if (__pThumbnail == null || pThumbnailLabel == null)
{
AppLogDebug("__pThumbnail or pThumbnailLabel is null");
__pThumbnail = null;
return;
}
+
pThumbnailLabel->SetBackgroundBitmap(*__pThumbnail);
delete __pThumbnail;
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
SceneManager* pSceneManager = SceneManager::GetInstance();
pSceneManager->GoBackward(BackwardSceneTransition());
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
#include "MpPlaylistListPresentationModel.h"
#include "MpResourceManager.h"
#include "MpSceneRegister.h"
+#include "MpSettingPresentationModel.h"
#include "MpThumbnailInfo.h"
#include "MpTypes.h"
case IDA_MORE_CONTEXT_MENU_SETTINGS:
{
- //NEED
+ SettingPresentationModel::GetInstance()->InitializeSettingValue();
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_MUSIC_SETTING));
}
break;
}
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_USER_PLAYLIST_CONTENT_LIST), pData);
}
-
- delete pData;
- pData = null;
}
AppLogDebug("EXIT");
}
// }
AppLogDebug("EXIT");
return false;
-}
+}
\ No newline at end of file
break;
}
AppLogDebug("EXIT");
-}
+}
\ No newline at end of file
using namespace Tizen::Base;
using namespace Tizen::Base::Runtime;
using namespace Tizen::Base::Utility;
-using namespace Tizen::Base::Collection;
using namespace Tizen::Content;
using namespace Tizen::Graphics;
using namespace Tizen::Io;
AppLogDebug("ENTER");
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
-
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- pDataList->Construct();
- pDataList->Add(*(new (std::nothrow) Boolean(false)));
-
if (actionId == IDA_BUTTON_CANCEL)
{
SetShowState(false);
Invalidate(true);
-
- __pControl->SendUserEvent(ID_DESTORY_PLAY_LIST_PICKER_POPUP, pDataList);
+ __pControl->SendUserEvent(ID_DESTORY_PLAY_LIST_PICKER_POPUP, null);
}
- else if (actionId == IDA_BUTTON_CREATE)
+
+ if (actionId == IDA_BUTTON_CREATE)
{
SetShowState(false);
Invalidate(true);
{
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYLIST_CREATOR));
}
- __pControl->SendUserEvent(ID_DESTORY_PLAY_LIST_PICKER_POPUP, pDataList);
+ __pControl->SendUserEvent(ID_DESTORY_PLAY_LIST_PICKER_POPUP, null);
}
AppLogDebug("EXIT");
}
int modalResult = 0;
messageBox.ShowAndWait(modalResult);
}
-
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- pDataList->Construct();
- pDataList->Add(*(new (std::nothrow) Boolean(true)));
-
- __pControl->SendUserEvent(ID_DESTORY_PLAY_LIST_PICKER_POPUP, pDataList);
+ __pControl->SendUserEvent(ID_DESTORY_PLAY_LIST_PICKER_POPUP, null);
}
AppLogDebug("EXIT");
}
AppLogDebug("EXIT");
return r;
-}
+}
\ No newline at end of file
SearchForm::OnKeypadClosed(Tizen::Ui::Control& source)
{
AppLogDebug("ENTER");
- GetFooter()->SetShowState(true);
+ //GetFooter()->SetShowState(true);
Rectangle clientBounds = GetClientAreaBounds();
__pSearchTableView->SetBounds(Rectangle(0, 0, clientBounds.width, clientBounds.height - __pSearchBar->GetHeight()));
AppLogDebug("EXIT");
SearchForm::OnKeypadWillOpen(Tizen::Ui::Control &source)
{
AppLogDebug("ENTER");
- GetFooter()->SetShowState(false);
+ //GetFooter()->SetShowState(false);
AppLogDebug("EXIT");
}
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
*/
#include <FGraphics.h>
+#include <FSystem.h>
#include "MpTypes.h"
using namespace Tizen::Graphics;
+using namespace Tizen::System;
const Tizen::Base::String IDS_ALBUM_CONTENT_COUNT = L"AlbumContentCount";
const wchar_t* IDL_SWEEP_QUICK_ITEM2_PANEL = L"IDL_SWEEP_QUICK_ITEM2_PANEL";
const wchar_t* IDL_SWEEP_QUICK_PLAYALL_ITEM_PANEL = L"IDL_SWEEP_QUICK_PLAYALL_ITEM_PANEL";
const wchar_t* IDL_CONTENT_LIBARY_FOLDER_ITEM_PANEL = L"IDL_CONTENT_LIBARY_FOLDER_ITEM_PANEL";
+const wchar_t* IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL = L"IDL_CONTENT_LIBARY_FOLDER_EDITOR_ITEM_PANEL";
const wchar_t* IDL_CONTENTS_PLAYLIST_EDITOR_ITEM_PANEL = L"IDL_CONTENTS_PLAYLIST_EDITOR_ITEM_PANEL";
const wchar_t* IDL_CONTEXT_ITEM_PLAYALL_ADDTO = L"IDL_CONTEXT_ITEM_PLAYALL_ADDTO";
const wchar_t* IDL_PLAYLIST_RENAME_FORM = L"IDL_PLAYLIST_RENAME_FORM";
const wchar_t* IDL_SWEEP_QUICK_ALBUM_PANEL = L"IDL_SWEEP_QUICK_ALBUM_PANEL";
const wchar_t* IDL_CONTENTS_LIBARY_ALBUM_ITEM_PANEL = L"IDL_CONTENTS_LIBARY_ALBUM_ITEM_PANEL";
const wchar_t* IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL = L"IDL_CONTENTS_ARTIST_EDITOR_ITEM_PANEL";
+const wchar_t* IDL_CONTENTS_DETAIL_FORM = L"IDL_CONTENTS_DETAIL_FORM";
+const wchar_t* IDL_CONTENT_LIST_FORM = L"IDL_CONTENT_LIST_FORM";
+const wchar_t* IDL_CONTENT_LIST_FOLDER_ITEM_PANEL = L"IDL_CONTENT_LIST_FOLDER_ITEM_PANEL";
+const wchar_t* IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL = L"IDL_CONTENT_LIST_FOLDER_EDITOR_ITEM_PANEL";
+const wchar_t* IDL_ALBUM_INFO_PANEL = L"IDL_ALBUM_INFO_PANEL";
+const wchar_t* IDL_ALBUM_CONTENT_ITEM_PANEL = L"IDL_ALBUM_CONTENT_ITEM_PANEL";
+const wchar_t* IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL = L"IDL_ALBUM_CONTENT_EDIT_ITEM_PANEL";
//_XML_UDL_
//_XML_IDC_
const wchar_t* IDC_BACK_BUTTON = L"IDC_BACK_BUTTON";
const wchar_t* IDC_MORE_CONTEXT_MENU_BUTTON = L"IDC_MORE_CONTEXT_MENU_BUTTON";
const wchar_t* IDC_CONTENTS_THUMBNAIL = L"IDC_CONTENTS_THUMBNAIL";
+const wchar_t* IDC_CONTENT_THUMBNAIL = L"IDC_CONTENT_THUMBNAIL";
const wchar_t* IDC_CONTENTS_ARTIST_NAME = L"IDC_CONTENTS_ARTIST_NAME";
const wchar_t* IDC_CONTENTS_TITLE_NAME = L"IDC_CONTENTS_TITLE_NAME";
const wchar_t* IDC_MINI_PLAYER_REGISTER_BAR = L"IDC_MINI_PLAYER_REGISTER_BAR";
const wchar_t* IDC_BUTTON_EDIT = L"IDC_BUTTON_EDIT";
const wchar_t* IDC_PLAY_ALL = L"IDC_PLAY_ALL";
const wchar_t* IDC_ADD_TO_PLAYLIST = L"IDC_ADD_TO_PLAYLIST";
+const wchar_t* IDC_CONTENT_LIST_TABLEVIEW = L"IDC_CONTENT_LIST_TABLEVIEW";
const wchar_t* IDC_PLAY_CONTENT_COUNT = L"IDC_PLAY_CONTENT_COUNT";
+const wchar_t* IDC_CONTENT_DURATION = L"IDC_CONTENT_DURATION";
+const wchar_t* IDC_CONTENT_FOLDER_STORAGE_ICON = L"IDC_CONTENT_FOLDER_STORAGE_ICON";
+const wchar_t* IDC_CONTENT_TITLE_NAME = L"IDC_CONTENT_TITLE_NAME";
+const wchar_t* IDC_CHECK_BOX_LABEL = L"IDC_CHECK_BOX_LABEL";
+const wchar_t* IDC_CONTENT_ADDITIONAL_REGISTER_BAR = L"IDC_CONTENT_ADDITIONAL_REGISTER_BAR";
+const wchar_t* IDC_ARTIST_NAME_LABEL = L"IDC_ARTIST_NAME_LABEL";
+const wchar_t* IDC_NAME_DATA_LABEL = L"IDC_NAME_DATA_LABEL";
+const wchar_t* IDC_FORMAT_DATA_LABEL = L"IDC_FORMAT_DATA_LABEL";
+const wchar_t* IDC_SIZE_DATA_LABEL = L"IDC_SIZE_DATA_LABEL";
+const wchar_t* IDC_FORWARDING_DATA_LABEL = L"IDC_FORWARDING_DATA_LABEL";
+const wchar_t* IDC_DATE_DATA_LABEL = L"IDC_DATE_DATA_LABEL";
+const wchar_t* IDC_LOCATION_DATA_LABEL = L"IDC_LOCATION_DATA_LABEL";
+const wchar_t* IDC_TITLE_LABEL = L"IDC_TITLE_LABEL";
//__XML_IDC_
-//HEADER
+//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_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 unsigned int COLOR_ITEM_SUB_TEXT = Color32<128, 128, 128>::Value;
-const wchar_t* IDB_MUSIC_LINE_CONTENT_FORM = L"T02_music_line.png";
\ No newline at end of file
+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_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();
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const int Y_GAP_LABEL = 10;
-static const int W_SONG_TIME = 160;
-static const int X_OFFSET_EDIT_STYLE_TABLE_VIEW = 96;
-
UserPlaylistContentListForm::UserPlaylistContentListForm(void)
: ContentListForm::ContentListForm()
, ThumbnailBase::ThumbnailBase()
, __pThumbnail(null)
- , __deletedItem(false)
, __pPresentationModel(null)
{
AppLogDebug("ENTER");
UserPlaylistContentListForm::OnInitializing(void)
{
AppLogDebug("ENTER");
- CreateTableview();
- CreateNoContentImage(L"IDS_MUSIC_HEADER_NO_SONGS");
- CreateSelectAllCheckedButton();
- CreateCheckedCountLabel();
-
+ SetContentListFooter();
AppLogDebug("EXIT");
return ThumbnailBase::Construct();
}
{
AppLogDebug("ENTER");
__pPresentationModel = null;
+ delete __pContextItem;
+ __pContextItem = null;
AppLogDebug("EXIT");
- return E_SUCCESS;
+ return ContentListForm::OnTerminating();
}
void
switch (actionId)
{
- case IDA_CHECK_BUTTON:
+ case IDA_CONTEXT_MENU_ITEM_SEARCH:
{
- __checkedItemCount = __pPresentationModel->GetContentCount();
- if (__checkedItemCount > INIT_VALUE)
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- }
- CommonUtil::SetAllCheckState(true, *__pContentTableView, __pPresentationModel->GetContentCount());
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
-
- case IDA_UNCHECK_BUTTON:
- {
- Footer* pFooter = GetFooter();
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- pFooter->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount());
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
}
break;
- case IDA_FOOTER_BUTTON_EDIT:
+ case IDA_CONTEXT_MENU_ITEM_EDIT:
{
- ToggleViewMode(false);
+ ToggleContentListScreenMode(CONTENT_LIST_SCREEN_MODE_EDITOR);
}
break;
- case IDA_FOOTER_BUTTON_CANCEL:
+ case IDA_FOOTER_BUTTON_MORE:
{
- __pSelectAllCheckedButton->SetSelected(false);
- __checkedItemCount = INIT_VALUE;
- CommonUtil::SetAllCheckState(false, *__pContentTableView, __pPresentationModel->GetContentCount());
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- ToggleViewMode(true);
+ CreateContextMenuN(source);
+ SetContextMenuItem(CONTEXT_MENU_ITEM_STYLE_SHARE_VIA | CONTEXT_MENU_ITEM_STYLE_SEARCH | CONTEXT_MENU_ITEM_STYLE_EDIT, Point(X_MORE_POPUP, Y_MORE_POPUP));
}
break;
case IDA_FOOTER_BUTTON_DELETE:
{
- Footer* pFooter = GetFooter();
-
- if (__checkedItemCount <= INIT_VALUE)
- {
- return;
- }
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
- pFooter->Invalidate(true);
-
- int totalCount = __pPresentationModel->GetContentCount();
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- __pContentTableView->SetItemChecked(iCount,false);
- if (pContentInfoStruct == null)
- {
- return;
- }
- __pPresentationModel->DeleteContent(USER_CONTENT, *pContentInfoStruct);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, *__pStrContentName);
+ RemoveCheckedTableviewItem();
+ __pPresentationModel->UpdatePlaylistContentList(__currentContentIndex, __headerTitle);
+ UpdateContentListScreenState();
__pContentTableView->UpdateTableView();
- __pContentTableView->Invalidate(true);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- if (__pPresentationModel->GetContentCount() > 0)
- {
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- }
- else
- {
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- }
-
- }
- break;
-
- case IDA_FOOTER_BUTTON_SHARE:
- {
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- Footer* pFooter = GetFooter();
- int totalCount = __pPresentationModel->GetContentCount();
-
- pDataList->Construct();
-
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
- pDataList->Add(*(new (std::nothrow) String(L"attachment:" + pContentInfoStruct->ContentFilePath)));
-
- __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
-
- Invalidate(true);
-
- if (__pSharePopup == null)
- {
- __pSharePopup = new (std::nothrow) SharePopup();
- __pSharePopup->Initialize();
- }
- __pSharePopup->SetShowState(true);
- __pSharePopup->Show();
- __pSharePopup->SetArguments(pDataList);
- }
- break;
-
- case IDA_FOOTER_BUTTON_ADD_TO_PLAYLIST:
- {
- if (__checkEdit)
- {
- CommonUtil::SetAddtoPlaylistState(false);
- ContentManager contentManager;
- Footer* pFooter = GetFooter();
- Tizen::Base::Collection::ArrayList* pDataList = new (std::nothrow) ArrayList();
- int totalCount = 0;
-
- if (__checkedItemCount <= 0)
- {
- return;
- }
-
- pDataList->Construct();
- contentManager.Construct();
- totalCount = __pPresentationModel->GetContentCount();
- for (int iCount = 0; iCount < totalCount; iCount++)
- {
- if (__pContentTableView->IsItemChecked(iCount) == true)
- {
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(iCount);
- if (pContentInfoStruct == null)
- {
- pDataList->RemoveAll(true);
- delete pDataList;
- pDataList = null;
- return;
- }
-
- pDataList->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
- __pContentTableView->SetItemChecked(iCount, false);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
- }
- }
- __pPlayListPickerPopup = new (std::nothrow) PlayListPickerPopup();
- __pPlayListPickerPopup->Initialize(this, pDataList);
- __pPlayListPickerPopup->SetShowState(true);
- __pPlayListPickerPopup->Show();
- //__pPlayListPickerPopup->SetCollectedContent(pDataList);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
-
- __checkedItemCount = INIT_VALUE;
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- CommonUtil::ShowSelectAllCheckButton(*__pSelectAllCheckedButton);
- Invalidate(true);
- }
- else
- {
- CommonUtil::SetAddtoPlaylistState(true);
- CommonUtil::SetAddtoPlaylistName(*__pStrContentName);
- if (__pPresentationModel != null)
- {
- //__pPresentationModel->Release();
- }
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALL_CONTENT_PICKER));
- }
}
break;
-// case IDA_FOOTER_BUTTON_SEARCH:
-// {
-// pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH));
-// }
-// break;
-
default:
break;
}
- AppLogDebug("EXIT");
-}
-
-void
-UserPlaylistContentListForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
-{
- AppLogDebug("ENTER");
- SceneManager* pSceneManager = SceneManager::GetInstance();
- AppAssert(pSceneManager);
- if (__deletedItem == true)
- {
- ArrayList* pTransmissionDate = new (std::nothrow) ArrayList();
- pTransmissionDate->Construct();
- pTransmissionDate->Add(*(new (std::nothrow) Boolean(__deletedItem)));
- pSceneManager->GoForward(ForwardSceneTransition(__pStrSceneId->GetPointer(),
- SCENE_TRANSITION_ANIMATION_TYPE_NONE,
- SCENE_HISTORY_OPTION_NO_HISTORY,
- SCENE_DESTROY_OPTION_DESTROY),
- pTransmissionDate);
- }
- else
- {
- pSceneManager->GoForward(ForwardSceneTransition(__pStrSceneId->GetPointer(),
- SCENE_TRANSITION_ANIMATION_TYPE_NONE,
- SCENE_HISTORY_OPTION_NO_HISTORY,
- SCENE_DESTROY_OPTION_DESTROY));
- }
+ ContentListForm::OnActionPerformed(source, actionId);
AppLogDebug("EXIT");
}
Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
- if (pArgs != null)
+ if (pArgs != null && previousSceneId.Equals(IDSCN_PLAYLIST_LIST, true) == true)
{
- if (pArgs->GetCount() == 1)
- {
- __deletedItem = true;
+ __prevSceneId.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME)));
+ __headerTitle.Append(*static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME)));
- if (__pPresentationModel->GetContentCount() == 0)
- {
- __pContentTableView->UpdateTableView();
- return;
- }
- }
- else if (pArgs->GetCount() > 1)
- {
- __pStrSceneId = static_cast<String*>(pArgs->GetAt(DATA_ITEM_SCENE_NAME));
- __pStrContentName = static_cast<String*>(pArgs->GetAt(DATA_ITEM_CONTENT_NAME));
- __pPresentationModel = PlaylistListPresentationModel::GetInstance();
- __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, *__pStrContentName);
- }
- else
- {
- // Empty statement
- }
- }
+ __pPresentationModel = PlaylistListPresentationModel::GetInstance();
+ __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
- if (__checkEdit == false)
- {
- Footer* pFooter = CommonUtil::CreateUserPlaylistContentListFooter(*this);
- int contentCount = INIT_VALUE;
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
- contentCount = __pPresentationModel->GetContentCount();
- if (contentCount <= INIT_VALUE)
- {
- pFooter->SetItemEnabled(INDEX_FOOTER_EDIT, false);
- }
- CommonUtil::ShowNoContentImage(contentCount, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- SetTitleText(*__pStrContentName);
- __pContentTableView->UpdateTableView();
- }
- else
- {
- ToggleViewMode(false);
+ SetContentListHeader();
+
+ pArgs->RemoveAll(true);
+ delete pArgs;
}
+
+ ContentListForm::OnSceneActivatedN(previousSceneId, currentSceneId, null);
+ __pContentTableView->UpdateTableView();
AppLogDebug("EXIT");
}
const Tizen::Ui::Scenes::SceneId& nextSceneId)
{
AppLogDebug("ENTER");
+ CancelAllThumbnailRequest();
AppLogDebug("EXIT");
}
UserPlaylistContentListForm::GetItemCount(void)
{
AppLogDebug("ENTER");
+ if (__pPresentationModel == null)
+ {
+ AppLogDebug("EXIT");
+ return INIT_VALUE;
+ }
AppLogDebug("EXIT");
return __pPresentationModel->GetContentCount();
}
UserPlaylistContentListForm::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
- if (pContentInfoStruct == null)
- {
- return null;
- }
+ RelativeLayout layout;
+ layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- if (__checkEdit)
+ TableViewAnnexStyle tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_NORMAL;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
+ tableViewAnnexStyle = TABLE_VIEW_ANNEX_STYLE_MARK;
}
- else
+
+ result r = pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), tableViewAnnexStyle);
+ if (IsFailed(r))
{
- pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+ AppLogDebug("pItem->Construct() failed(%s)", GetErrorMessage(r));
+ delete pItem;
+ return null;
}
-// pItem->SetBackgroundColor(COLOR_WHITE);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
- CreateTableViewItem(*pItem, *pContentInfoStruct);
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfo == null)
+ {
+ AppLogDebug("__pPresentationModel->GetContentInfoN failed(null)");
+ delete pItem;
+ return null;
+ }
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ CreateTableViewItem(*pItem, *pContentInfo);
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) int(itemIndex)));
+ delete pContentInfo;
AppLogDebug("EXIT");
return pItem;
Tizen::Ui::Controls::TableViewItemStatus status)
{
AppLogDebug("ENTER");
- SceneManager* pSceneManager = SceneManager::GetInstance();
- Footer* pFooter = GetFooter();
- AppAssert(pSceneManager);
- switch (status)
+ ContentListForm::OnTableViewItemStateChanged(tableView, itemIndex, pItem, status);
+ AppLogDebug("EXIT");
+}
+
+result
+UserPlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Controls::TableViewItem& parent, const ContentInformation& contentInfo)
+{
+ AppLogDebug("ENTER");
+ Panel* pTableViewItem = new (std::nothrow) Panel();
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
{
- case TABLE_VIEW_ITEM_STATUS_SELECTED:
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL)))
{
- ArrayList* pTempList = new (std::nothrow) ArrayList();
- pTempList->Construct();
-
- pTempList->Add(*(new (std::nothrow) String(MUSIC)));
- pTempList->Add(*(new (std::nothrow) Integer(itemIndex)));
- pTempList->Add(*(__pPresentationModel->GetContentPathListN(USER_CONTENT)));
-
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pTempList);
+ AppLogDebug("Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
}
- break;
-
- case TABLE_VIEW_ITEM_STATUS_CHECKED:
+ }
+ else
+ {
+ if (IsFailed(pTableViewItem->Construct(IDL_CONTENTS_LIBARY_ITEM_PANEL)))
{
- __checkedItemCount++;
- tableView.SetItemChecked(itemIndex, true);
-
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, true);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, true);
-
- pFooter->Invalidate(true);
- if (__checkedItemCount == __pPresentationModel->GetContentCount())
- {
- __pSelectAllCheckedButton->SetSelected(true);
- }
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
+ AppLogDebug("Construct(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL) failed(%s)", GetErrorMessage(GetLastResult()));
+ return E_FAILURE;
}
- break;
-
- case TABLE_VIEW_ITEM_STATUS_UNCHECKED:
- {
- __checkedItemCount--;
- tableView.SetItemChecked(itemIndex, false);
-
- if (__checkedItemCount == INIT_VALUE)
- {
- pFooter->SetItemEnabled(INDEX_FOOTER_DELETE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_SHARE, false);
- pFooter->SetItemEnabled(INDEX_FOOTER_ADDTOPLATLIST, false);
+ }
- pFooter->Invalidate(true);
- }
+ Label* pTitleName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_TITLE_NAME));
+ pTitleName->SetText(contentInfo.TitleName);
+ Label* pArtistName = static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_ARTIST_NAME));
+ pArtistName->SetText(contentInfo.ArtistName);
- __pSelectAllCheckedButton->SetSelected(false);
- CommonUtil::ShowCheckedCountLabel(*__pCheckedCountLabel, __checkedItemCount, *__pContentTableView, *this);
- }
- break;
+ parent.AddControl(*pTableViewItem);
+ CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
- default:
- break;
- }
+ContentInformation*
+UserPlaylistContentListForm::GetContentInformation(int index)
+{
+ AppLogDebug("ENTER");
AppLogDebug("EXIT");
+ return __pPresentationModel->GetContentInfoN(index);
}
-void
-UserPlaylistContentListForm::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::TableView& tableView,
- int itemIndex,
- Tizen::Ui::Controls::TableViewContextItem* pContextItem,
- bool activated)
+result
+UserPlaylistContentListForm::SetContentListHeader(void)
{
AppLogDebug("ENTER");
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), __headerTitle);
AppLogDebug("EXIT");
+ return E_SUCCESS;
}
result
-UserPlaylistContentListForm::CreateTableViewItem(Tizen::Ui::Container& parent,
- const ContentInformation& contentInfoStruct)
+UserPlaylistContentListForm::SetContentListFooter(void)
{
+ AppLogDebug("ENTER");
+ CommonUtil::SetBackButtonStyleFooter(*GetFooter(), STYLE_MORE_ADD);
+ AppLogDebug("EXIT");
+ return E_SUCCESS;
+}
+bool
+UserPlaylistContentListForm::IsEmptyContentList(void)
+{
AppLogDebug("ENTER");
- result r = E_SUCCESS;
-
- Label* pSongThumbnailBGLabel = new (std::nothrow) Label();
- pSongThumbnailBGLabel->Construct(Rectangle(X_GAP_THUMBNAIL - 1, Y_GAP_THUMBNAIL - 1, W_THUMBNAIL + 1, W_THUMBNAIL + 1), L"");
- parent.AddControl(*pSongThumbnailBGLabel);
-
- Label* pSongThumbnailLabel = new (std::nothrow) Label();
- pSongThumbnailLabel->Construct(Rectangle(X_GAP_THUMBNAIL, Y_GAP_THUMBNAIL, W_THUMBNAIL, H_THUMBNAIL), L"");
- pSongThumbnailLabel->SetBackgroundBitmap(*GetDefaultThumbnail());
- pSongThumbnailLabel->SetName(L"pSongThumbnailLabel");
- parent.AddControl(*pSongThumbnailLabel);
-
- int X_Gap = W_THUMBNAIL + (X_GAP_THUMBNAIL * 2);
- int W_Label = W_CLIENT_AREA - X_Gap;
- int edit_Y_Offset = 0;
- if (__checkEdit)
- {
- edit_Y_Offset = X_OFFSET_EDIT_STYLE_TABLE_VIEW;
- }
- else
+ if (__pPresentationModel->GetContentCount() != INIT_VALUE)
{
- edit_Y_Offset = 0;
+ return false;
}
-
- Label* pSongTitleLabel = new (std::nothrow) Label();
- pSongTitleLabel->Construct(Rectangle(X_Gap, Y_GAP_LABEL, (W_Label - W_SONG_TIME - edit_Y_Offset), (ITEM_HEIGHT - (Y_GAP_LABEL * 2)) / 2), L"");
- pSongTitleLabel->SetTextColor(COLOR_MAIN_TEXT);
- pSongTitleLabel->SetTextConfig(MAIN_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pSongTitleLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pSongTitleLabel->SetText(contentInfoStruct.TitleName);
- parent.AddControl(*pSongTitleLabel);
-
- Label* pSongTimeLabel = new (std::nothrow) Label();
- pSongTimeLabel->Construct(Rectangle(pSongTitleLabel->GetWidth() + X_Gap, pSongTitleLabel->GetY(), W_SONG_TIME, pSongTitleLabel->GetHeight()), L"");
- pSongTimeLabel->SetTextColor(COLOR_SUB_TEXT);
- pSongTimeLabel->SetTextConfig(SUB_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pSongTimeLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
- pSongTimeLabel->SetText(CommonUtil::GetFormatDate(contentInfoStruct.Duration));
- parent.AddControl(*pSongTimeLabel);
-
- Label* pSongArtistLabel = new (std::nothrow) Label();
- pSongArtistLabel->Construct(Rectangle(X_Gap, pSongTimeLabel->GetHeight() + Y_GAP_LABEL, W_Label, pSongTitleLabel->GetHeight()), L"");
- pSongArtistLabel->SetTextColor(COLOR_SUB_TEXT);
- pSongArtistLabel->SetTextConfig(SUB_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
- pSongArtistLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pSongArtistLabel->SetText(contentInfoStruct.ArtistName);
- parent.AddControl(*pSongArtistLabel);
-
AppLogDebug("EXIT");
- return r;
+ return true;
}
-void
-UserPlaylistContentListForm::ToggleViewMode(bool editMode)
+Tizen::Base::Collection::ArrayList*
+UserPlaylistContentListForm::MakePlayerSceneParam(int startIndex)
{
AppLogDebug("ENTER");
- Footer* pFooter = GetFooter();
-
- if (editMode)
+ ArrayList* pArgs = new (std::nothrow) ArrayList();
+ result r = pArgs->Construct();
+ if (IsFailed(r))
{
- int currentContentCount = 0;
- currentContentCount = __pPresentationModel->GetContentCount();
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
-
- pFooter = CommonUtil::CreateUserPlaylistContentListFooter(*this);
- pFooter->AddActionEventListener(*this);
- pFooter->SetBackButton();
- SetFormBackEventListener(this);
-
- if ( currentContentCount > INIT_VALUE)
- {
- SetTitleText(*__pStrContentName);
- }
- else
- {
- SetTitleText("No songs");
- CommonUtil::ShowNoContentImage(INIT_VALUE, *__pContentTableView, *__pNoContentImageLabel, *__pNoContentTextLabel);
- pFooter->SetItemEnabled(INDEX_FOOTER_EDIT, false);
- }
-
- __pSelectAllCheckedButton->SetEnabled(false);
- __pSelectAllCheckedButton->SetShowState(false);
-
- __checkEdit = false;
-
- __pContentTableView->SetBounds(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height ));
-
- __pContentTableView->Invalidate(true);
- __pContentTableView->UpdateTableView();
+ AppLogDebug("pArgs->Construct failed(%s)", GetErrorMessage(r));
+ return null;
}
- else
- {
- SetTitleText(ResourceManager::GetString("IDS_COM_BODY_EDIT"));
-
- pFooter->RemoveAllButtons();
- pFooter->RemoveAllItems();
- pFooter->RemoveActionEventListener(*this);
-
- pFooter = CommonUtil::CreateDeleteFooter(*this);
- pFooter->AddActionEventListener(*this);
- __pSelectAllCheckedButton->SetEnabled(true);
- __pSelectAllCheckedButton->SetShowState(true);
+ pArgs->Add(*(new (std::nothrow) String(MUSIC)));
+ pArgs->Add(*(new (std::nothrow) Integer(startIndex)));
+ pArgs->Add(*(__pPresentationModel->GetContentPathListN(USER_CONTENT)));
- __checkEdit = true;
-
- __pContentTableView->SetBounds(Rectangle(0, __pSelectAllCheckedButton->GetHeight(), GetClientAreaBounds().width, (GetClientAreaBounds().height - __pSelectAllCheckedButton->GetHeight())));
-
- __pContentTableView->Invalidate(true);
- __pContentTableView->UpdateTableView();
- }
- Invalidate(true);
AppLogDebug("EXIT");
+ return pArgs;
}
void
UserPlaylistContentListForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
- AppLogDebug("OnUserEventReceivedN %d", requestId);
+ ContentListForm::OnUserEventReceivedN(requestId, null);
if (requestId == ID_DESTORY_PLAY_LIST_PICKER_POPUP)
{
- if (__pPlayListPickerPopup != null)
- {
- delete __pPlayListPickerPopup;
- __pPlayListPickerPopup = null;
- }
- __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, *__pStrContentName);
+ __pPresentationModel->UpdatePlaylistContentList(USER_CONTENT, __headerTitle);
__pContentTableView->UpdateTableView();
}
AppLogDebug("EXIT");
UserPlaylistContentListForm::UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
{
AppLogDebug("ENTER");
- Label* pThumbnailLabel = static_cast<Label*>(pItem->GetControl(L"pSongThumbnailLabel"));
+ Panel* pItemPanel = null;
+ if (GetContentListScreenMode() != CONTENT_LIST_SCREEN_MODE_NORMAL)
+ {
+ pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENTS_LIBARY_EDITOR_ITEM_PANEL));
+ }
+ else
+ {
+ pItemPanel = static_cast<Panel*>(pItem->GetControl(IDL_CONTENTS_LIBARY_ITEM_PANEL));
+ }
+
+ if (pItemPanel == null)
+ {
+ AppLogDebug("pItemPanel is null");
+ delete __pThumbnail;
+ __pThumbnail = null;
+ return;
+ }
+
+ Label* pThumbnailLabel = static_cast<Label*>(pItemPanel->GetControl(IDC_CONTENTS_THUMBNAIL));
if (__pThumbnail == null || pThumbnailLabel == null)
{
AppLogDebug("__pThumbnail or pThumbnailLabel is null");
__pThumbnail = null;
return;
}
+
pThumbnailLabel->SetBackgroundBitmap(*__pThumbnail);
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()
, ThumbnailBase::ThumbnailBase()
__pThumbnail = null;
pThumbnailLabel->Invalidate(true);
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}
+#endif
__pNoContentImageLabel = new (std::nothrow) Label();
__pNoContentImageLabel->Construct(Rectangle((pForm->GetWidth() - W_NO_CONTENT) / 2, Y_GAP_NO_CONTENT, W_NO_CONTENT, H_NO_CONTENT), L"");
- __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(NO_CONTENT_BITMAP)));
+ __pNoContentImageLabel->SetBackgroundBitmap(*(ResourceManager::GetBitmapN(IDB_NO_CONTENTS)));
__pNoContentTextLabel = new (std::nothrow) Label();
__pNoContentTextLabel->Construct(Rectangle(0,