, public IFileOpInvalidateListener
, public IFormContentUpdateEventListener
, public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
, public Tizen::Ui::Controls::Form
, public Tizen::Ui::Controls::IFormBackEventListener
, public Tizen::Ui::Controls::IIconListViewItemEventListener
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+ virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
+
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
virtual void OnIconListViewItemStateChanged(Tizen::Ui::Controls::IconListView &view, int index,
: public IAlbumEventListener
, public IFormContentUpdateEventListener
, public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
, public Tizen::Ui::Controls::Form
, public Tizen::Ui::Controls::IFormBackEventListener
, public Tizen::Ui::Controls::IFormMenuEventListener
virtual void OnFormMenuRequested (Tizen::Ui::Controls::Form &source);
+ virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
+
virtual void OnFileInfoChanged(const Tizen::Content::ContentType contentType);
virtual void OnThumbnailDecoded(const int index);
virtual void OnFileOpInvalidate(enum FileActionMode actionId);
virtual void OnFileOpComplete(enum FileActionMode actionId, enum FileActionCompleteRes);
+ void ChangeOrientation(void);
private:
void ResetSelection(void);
void SetButtonState(void);
virtual void OnFileInfoChanged(const Tizen::Content::ContentType contentType);
virtual void OnThumbnailDecoded(const int index);
+ void ChangeOrientation(void);
void Refresh(void);
private:
virtual void OnFileOpInvalidate(enum FileActionMode);
virtual void OnFileOpComplete(enum FileActionMode , enum FileActionCompleteRes);
+ void ChangeOrientation(void);
+
private:
int GetRealindexFromVirtualIndex(const int virtualIndex) const;
int GetVirtualIndexFromRealIndex(const int realIndex) const;
, public ISlideSettingListener
, public Tizen::Ui::IActionEventListener
, public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::IOrientationEventListener
, public Tizen::Ui::Scenes::ISceneEventListener
{
public:
virtual void OnFormMenuRequested (Tizen::Ui::Controls::Form &source);
+ virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
private:
result InitializeFooter(void);
Tizen::Base::String GetDirecotyNameFromFullPath(const Tizen::Base::String& fullPath) const;
, public Tizen::Ui::Controls::Form
, public Tizen::Ui::Controls::IFormBackEventListener
, public Tizen::Ui::Controls::IFormMenuEventListener
+ , public Tizen::Ui::IOrientationEventListener
{
public:
FileListForm(void);
virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus);
void SetTitleText(const Tizen::Base::String& titleText);
virtual void OnFileOpInvalidate(enum FileActionMode actionId);
virtual void OnFileOpComplete(enum FileActionMode actionId, enum FileActionCompleteRes);
+ void ChangeOrientation(void);
+
private:
Tizen::Base::Collection::IList* GetItemCheckedIndexListN(void) const;
virtual void OnFileOpInvalidate(enum FileActionMode actionId);
virtual void OnFileOpComplete(enum FileActionMode actionId, enum FileActionCompleteRes){};
+ void ChangeOrientation(void);
+
private:
Tizen::Base::Collection::IList* GetItemCheckedIndexListN(void) const;
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
-<ScenePopup Bversion="2.0.0.201305162056" Dversion="20120315">
+<ScenePopup Bversion="2.0.0.201306151404" Dversion="20120315">
<Popup id="IDL_DEL_PROGRESSING_POPUP">
<property accessibilityHint="" color="" titleText="" titleTextColor=""/>
<layout height="264.0" mode="Portrait" style="" type="NONE" width="692.0"/>
- <layout height="338.0" mode="Landscape" style="" type="NONE" width="620.0"/>
+ <layout height="281.0" mode="Landscape" style="" type="NONE" width="620.0"/>
</Popup>
<Label id="IDC_LABEL_POPUP_CENTER_BACKGROUND" parent="IDL_DEL_PROGRESSING_POPUP">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout height="128.0" mode="Portrait" width="632.0" x="10.0" y="10.0"/>
- <layout height="158.0" mode="Landscape" width="596.0" x="0.0" y="0.0"/>
+ <layout height="172.0" mode="Landscape" width="596.0" x="0.0" y="0.0"/>
</Label>
<Label id="IDC_LABEL_POPUP_BOTTOM_BACKGROUND" parent="IDL_DEL_PROGRESSING_POPUP">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout height="96.0" mode="Portrait" width="612.0" x="20.0" y="151.0"/>
- <layout height="96.0" mode="Landscape" width="596.0" x="0.0" y="158.0"/>
+ <layout height="96.0" mode="Landscape" width="596.0" x="5.0" y="187.0"/>
</Label>
<Label id="IDC_ANIMATION_HEADER" parent="IDL_DEL_PROGRESSING_POPUP">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="#7F7F7F" textSize="40.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout height="46.0" mode="Portrait" width="596.0" x="28.0" y="25.0"/>
- <layout height="38.0" mode="Landscape" width="564.0" x="16.0" y="25.0"/>
+ <layout height="47.0" mode="Landscape" width="564.0" x="16.0" y="27.0"/>
</Label>
<Progress id="IDC_PROGRESS_BAR" parent="IDL_DEL_PROGRESSING_POPUP">
<property accessibilityHint="" backgroundColor="" barBackgroundColor="" barColor="" leftText="" max="100" min="0" rightText="" showValueState="true" value="50"/>
<layout height="50.0" mode="Portrait" style="PROGRESS_STYLE_NONE" width="564.0" x="44.0" y="75.0"/>
- <layout height="16.0" mode="Landscape" style="PROGRESS_STYLE_NONE" width="532.0" x="32.0" y="73.0"/>
+ <layout height="39.0" mode="Landscape" style="PROGRESS_STYLE_NONE" width="548.0" x="32.0" y="84.0"/>
</Progress>
<Button id="IDC_CANCEL_BUTTON" parent="IDL_DEL_PROGRESSING_POPUP">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_COM_POP_CANCEL" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
<layout height="72.0" mode="Portrait" width="400.0" x="128.0" y="162.0"/>
- <layout height="72.0" mode="Landscape" width="400.0" x="98.0" y="170.0"/>
+ <layout height="72.0" mode="Landscape" width="400.0" x="98.0" y="197.0"/>
</Button>
<Label id="IDC_COUNTER_LABEL" parent="IDL_DEL_PROGRESSING_POPUP">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="Label1" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_TOP"/>
- <layout height="38.0" mode="Portrait" width="197.0" x="435.0" y="113.0"/>
- <layout height="293.0" mode="Landscape" width="274.0" x="0.0" y="45.0"/>
+ <layout height="38.0" mode="Portrait" width="197.0" x="461.0" y="113.0"/>
+ <layout height="45.0" mode="Landscape" width="233.0" x="380.0" y="124.0"/>
</Label>
</ScenePopup>
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201306101756" Dversion="20120315">
+<Scene Bversion="2.0.0.201306151404" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_FORM_ALBUM_LIST">
- <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
<layout mode="Portrait" style="FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
<layout mode="Landscape" style="FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
</Form>
<Footer>
- <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" showOptionButton="false"/>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
<itemSet/>
</Footer>
<Header>
<property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
<itemSet/>
</Header>
- <IconListView id="IDC_ICONLISTVIEW_ALBUM_LIST" parent="IDL_FORM_ALBUM_LIST">
- <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="T01_Nocontents_picture.png" checkBoxPosition="ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT" colorOfEmptyListText="" highlightedItemTextColor="" itemBitmapHeight="348.0" itemBitmapWidth="348.0" itemBorderStyle="ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE" itemHorizontalAlignment="ALIGNMENT_CENTER" itemHorizontalSpacing="6.0" itemTextHorizontalAlignment="ALIGNMENT_CENTER" itemTextSize="30.0" itemTextVerticalAlignment="ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_BOTTOM" itemVerticalAlignment="ALIGNMENT_MIDDLE" itemVerticalSpacing="8.0" magneticScrollSize="0.0" normalItemTextColor="" pressedItemTextColor="" scrollDirection="ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" textOfEmptyList="::IDS_COM_BODY_NO_ITEMS" touchAnimationEnabled="false"/>
- <layout bottomRelation="IDL_FORM_ALBUM_LIST" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1071.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_NORMAL" topRelation="IDL_FORM_ALBUM_LIST" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_NORMAL" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="730.0" x="456.0" y="82.0"/>
- </IconListView>
</Scene>
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-
-<Scene Bversion="2.0.0.201304041646" Dversion="20120315">
+<Scene Bversion="2.0.0.201306101756" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_FORM_ALBUM_LIST_EDITOR">
- <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
<layout mode="Portrait" style="FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
<layout mode="Landscape" style="FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
</Form>
<Footer>
- <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" 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"/>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" 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" showOptionButton="false"/>
<itemSet>
<footerItem accessibilityHint="" actionId="908" disabledIconPath="T01_toolbar_icon_share_dim_web.png" highlightedIconPath="" normalIconPath="T01_controlbar_icon_share02.png" pressedIconPath="" selectedIconPath="" text=""/>
<footerItem accessibilityHint="" actionId="905" disabledIconPath="T01_toolbar_icon_delete_dim_web.png" highlightedIconPath="" normalIconPath="T01_controlbar_icon_delete.png" pressedIconPath="" selectedIconPath="" text=""/>
</itemSet>
</Footer>
<Header>
- <property accessibilityHint="" 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="::IDS_COM_HEADER_EDIT" titleTextColor=""/>
+ <property accessibilityHint="" 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="" showBackButton="false" titleIconPath="" titleText="::IDS_COM_HEADER_EDIT" titleTextColor=""/>
<itemSet>
<buttonItem accessibilityHint="" actionId="201" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="00_icon_select_all_web.png" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="00_icon_select_all_press_web.png" style="BUTTON_ITEM_STYLE_ICON" text="" type="right"/>
</itemSet>
<Label id="IDC_LABEL_ALBUM_LIST_EDITOR_SELECTED" parent="IDL_FORM_ALBUM_LIST_EDITOR">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="::IDS_ST_POP_NO_ITEMS_SELECTED" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="IDL_FORM_ALBUM_LIST_EDITOR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FORM_ALBUM_LIST_EDITOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_FORM_ALBUM_LIST_EDITOR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="1023.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="15.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="533.0" x="119.0" y="529.0"/>
+ <layout bottomRelation="IDL_FORM_ALBUM_LIST_EDITOR" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="44.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FORM_ALBUM_LIST_EDITOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_FORM_ALBUM_LIST_EDITOR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="500.0"/>
</Label>
- <IconListView id="IDC_ICONLISTVIEW_ALBUM_LIST_EDITOR" parent="IDL_FORM_ALBUM_LIST_EDITOR">
- <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="T01_Nocontents_picture.png" checkBoxPosition="ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT" colorOfEmptyListText="" highlightedItemTextColor="" itemBitmapHeight="348.0" itemBitmapWidth="348.0" itemBorderStyle="ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE" itemHorizontalAlignment="ALIGNMENT_CENTER" itemHorizontalSpacing="6.0" itemTextHorizontalAlignment="ALIGNMENT_CENTER" itemTextSize="30.0" itemTextVerticalAlignment="ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_BOTTOM" itemVerticalAlignment="ALIGNMENT_MIDDLE" itemVerticalSpacing="6.0" magneticScrollSize="0.0" normalItemTextColor="" pressedItemTextColor="" scrollDirection="ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" textOfEmptyList="::IDS_COM_BODY_NO_ITEMS" touchAnimationEnabled="false"/>
- <layout bottomRelation="IDC_LABEL_ALBUM_LIST_EDITOR_SELECTED" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="1023.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FORM_ALBUM_LIST_EDITOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_FORM_ALBUM_LIST_EDITOR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="ICON_LIST_VIEW_STYLE_MARK" topRelation="IDL_FORM_ALBUM_LIST_EDITOR" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="124.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="ICON_LIST_VIEW_STYLE_MARK" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="730.0" x="416.0" y="85.0"/>
- </IconListView>
</Scene>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+
+<Scene Bversion="2.0.0.201304081058" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM_NAME_EDITOR">
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <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="false"/>
+ <itemSet/>
+ </Footer>
+ <Header>
+ <property accessibilityHint="" 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="::IDS_COM_BODY_RENAME" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <EditField id="IDC_EDITFIELD_NAME" parent="IDL_FORM_NAME_EDITOR">
+ <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="true" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="true" limitLength="255" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="12.0" viewMode="false"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FORM_NAME_EDITOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_FORM_NAME_EDITOR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_NORMAL" topRelation="IDL_FORM_NAME_EDITOR" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="120.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FORM_NAME_EDITOR" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_FORM_NAME_EDITOR" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_NORMAL" topRelation="IDL_FORM_NAME_EDITOR" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+ </EditField>
+</Scene>
<Scene Bversion="2.0.0.201306151404" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_FORM_SETTING_MAIN">
- <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
<layout mode="Portrait" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
<layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
</Form>
<GroupedListView id="IDC_SETTING_LIST" parent="IDL_FORM_SETTING_MAIN">
<property backgroundBitmapPath="" backgroundColor="#F9F9F9" backgroundColorOpacity="100" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="#8E9AA3" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" sweepEnabled="false" textOfEmptyList=""/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1109.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_FORM_SETTING_MAIN" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_FORM_SETTING_MAIN" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="720.0" x="0.0" y="0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="0.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_SETTING_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="IDL_SETTING_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="0.0" x="0" y="0"/>
+ <layout bottomRelation="IDL_FORM_SETTING_MAIN" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="608.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_FORM_SETTING_MAIN" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_FORM_SETTING_MAIN" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="IDL_FORM_SETTING_MAIN" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="1280.0" x="0" y="0"/>
</GroupedListView>
</Scene>
<ListView id="IDC_POPUP_LIST" parent="IDL_SLIDESHOW_SETTING_POPUP">
<property backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="226.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SLIDESHOW_SETTING_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="3.5" marginRight="3.5" marginTop="0.0" mode="Portrait" rightRelation="IDL_SLIDESHOW_SETTING_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="613.0" x="3.5" y="3.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="224.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="553.0" x="44.0" y="2.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="224.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SLIDESHOW_SETTING_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="3.5" marginRight="3.5" marginTop="0.0" mode="Landscape" rightRelation="IDL_SLIDESHOW_SETTING_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="593.0" x="3.5" y="2.0"/>
</ListView>
<Button id="IDC_BUTTON" parent="IDL_SLIDESHOW_SETTING_POPUP">
<property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_COM_POP_CANCEL" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
static const String RESERVED_EXTERNAL_MEDIA_PATH = Environment::GetExternalStoragePath();
static const int GAP_W_POPUP_ITEM = 5;
-static const int W_DELETE_POPUP = 600;
+static const int W_DELETE_POPUP = 620;
static const int H_DELETE_POPUP = 300;
static const int H_DELETE_LABEL = 180;
static const int Y_DELETE_BUTTON = 180;
static const int FORMAT_BUFFER_SIZE = 256;
-static const int X_POSITION_SHARE_CONTEXTMENU = 280;
-static const int Y_POSITION_SHARE_CONTEXTMENU = 1140;
-
static const Color COLOR_FOLDER_BITMAP_DIM(Color::GetColor(COLOR_ID_BLACK));
static const int ALPHA_FOLDER_BITMAP_DIM = 70;
{
AppLogDebug("ENTER");
result r = E_SUCCESS;
+
+ SetOrientation(ORIENTATION_AUTOMATIC);
+ AddOrientationEventListener(*this);
+
__pPresentationModel = AlbumListPresentationModel::GetInstance();
__pPresentationModel->ClearThumbnailRequests();
r = __pPresentationModel->AddPresentationModelListener(this);
result r = E_SUCCESS;
String tempString;
+ __pSelectCountLabel = static_cast<Label*>(GetControl(L"IDC_LABEL_ALBUM_LIST_EDITOR_SELECTED"));
+ AppAssert(__pSelectCountLabel);
+
CreateIconListView();
__checkedCount = GetCheckedFolderCount();
- __pSelectCountLabel = static_cast<Label*>(GetControl(L"IDC_LABEL_ALBUM_LIST_EDITOR_SELECTED"));
- AppAssert(__pSelectCountLabel);
-
- __pShareContextMenu = new (std::nothrow) ContextMenu();
- r = __pShareContextMenu->Construct(Point(X_POSITION_SHARE_CONTEXTMENU, Y_POSITION_SHARE_CONTEXTMENU),
- CONTEXT_MENU_STYLE_LIST);
- r = __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
- IDA_CONTEXT_MENU_MESSAGE);
- r = __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), IDA_CONTEXT_MENU_EMAIL);
- __pShareContextMenu->AddActionEventListener(*this);
r = InitializePopup();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
Button* pDeleteButton = new (std::nothrow) Button();
pDeleteButton->Construct(
- Rectangle(0, Y_DELETE_BUTTON, popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
+ Rectangle(10, Y_DELETE_BUTTON, popupClientBounds.width / 2 - GAP_W_POPUP_ITEM -10, H_DELETE_BUTTON),
ResourceManager::GetString(L"IDS_COM_BODY_DELETE"));
pDeleteButton->SetColor(BUTTON_STATUS_NORMAL, COLOR_DELETE_BUTTON_NORMAL);
pDeleteButton->SetColor(BUTTON_STATUS_PRESSED, COLOR_DELETE_BUTTON_PRESSED);
Button* pCancelButton = new (std::nothrow) Button();
pCancelButton->Construct(
Rectangle(popupClientBounds.width / 2 + GAP_W_POPUP_ITEM, Y_DELETE_BUTTON,
- popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
+ popupClientBounds.width / 2 - GAP_W_POPUP_ITEM -10, H_DELETE_BUTTON),
ResourceManager::GetString(L"IDS_COM_POP_CANCEL"));
pCancelButton->SetActionId(IDA_DELETE_POPUP_CANCEL);
pCancelButton->AddActionEventListener(*this);
AlbumListEditorForm::CreateIconListView(void)
{
AppLogDebug("ENTER");
- __pEditorFolderIconList = static_cast<IconListView*>(GetControl(L"IDC_ICONLISTVIEW_ALBUM_LIST_EDITOR"));
- AppAssert(__pEditorFolderIconList);
+
+ __pEditorFolderIconList = new IconListView();
+ __pEditorFolderIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height - __pSelectCountLabel->GetHeight()),
+ Dimension(348, 348), ICON_LIST_VIEW_STYLE_MARK, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+ __pEditorFolderIconList->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
+ __pEditorFolderIconList->SetTouchAnimationEnabled(false);
__pEditorFolderIconList->SetItemProvider(*this);
+ __pEditorFolderIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
__pEditorFolderIconList->AddIconListViewItemEventListener(*this);
+
+ Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
+
+ if (pBitmap != null)
+ {
+ __pEditorFolderIconList->SetBitmapOfEmptyList(pBitmap);
+ delete pBitmap;
+ }
+
+ __pEditorFolderIconList->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
+
+ AddControl(*__pEditorFolderIconList);
+
__pEditorFolderIconList->SetShowState(true);
+
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
case IDA_FOOTER_SHARE:
{
+
+ if( __pShareContextMenu != NULL)
+ {
+ delete __pShareContextMenu;
+ __pShareContextMenu = null;
+ }
+
+ __pShareContextMenu = new (std::nothrow) ContextMenu();
+ __pShareContextMenu->Construct(Point(GetClientAreaBounds().width/3 + 15, GetClientAreaBounds().height + __pSelectCountLabel->GetHeight() + 5),
+ CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+ __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
+ IDA_CONTEXT_MENU_MESSAGE);
+ __pShareContextMenu->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"), IDA_CONTEXT_MENU_EMAIL);
+ __pShareContextMenu->AddActionEventListener(*this);
+
__pShareContextMenu->SetShowState(true);
__pShareContextMenu->Show();
}
{
AppLogDebug("ENTER");
__pPresentationModel->RemoveContentEventListener(*this);
+
+ if (nextSceneId != IDSCN_ALBUM_NAME_EDITOR )
+ {
+ int loopCount = __pPresentationModel->GetFolderCount();
+
+ for( int count = 0 ; count < loopCount ; count++ )
+ {
+ __pEditorFolderIconList->SetItemChecked(count,false);
+ }
+ __pEditorFolderIconList->UpdateList();
+ }
+
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+
+
+void
+AlbumListEditorForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+
+ IList* pIndexList = GetItemCheckedIndexListN();
+
+ if( __pEditorFolderIconList != null )
+ {
+ RemoveControl(__pEditorFolderIconList);
+ }
+
+ __pEditorFolderIconList = new IconListView();
+
+ if( orientationStatus == ORIENTATION_STATUS_PORTRAIT )
+ {
+ __pEditorFolderIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height- __pSelectCountLabel->GetHeight()),
+ Dimension(348, 348), ICON_LIST_VIEW_STYLE_MARK, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+ }
+ else if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+ {
+ int horizontalSpacing = 8;
+ int verticalSpacing = 60;
+ int height = 424;
+ int width = 410;
+
+ __pEditorFolderIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height - __pSelectCountLabel->GetHeight()),
+ Dimension(width, height), ICON_LIST_VIEW_STYLE_MARK, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+
+ __pEditorFolderIconList->SetItemSpacing(horizontalSpacing, verticalSpacing);
+ __pEditorFolderIconList->SetMargin(MARGIN_TYPE_TOP,40);
+ }
+
+ Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
+
+ if (pBitmap != null)
+ {
+ __pEditorFolderIconList->SetBitmapOfEmptyList(pBitmap);
+ delete pBitmap;
+ }
+
+ __pEditorFolderIconList->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
+ __pEditorFolderIconList->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
+ __pEditorFolderIconList->SetTouchAnimationEnabled(false);
+ __pEditorFolderIconList->SetItemProvider(*this);
+ __pEditorFolderIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
+ __pEditorFolderIconList->AddIconListViewItemEventListener(*this);
+
+ AddControl(*__pEditorFolderIconList);
+
+ int loopCount = pIndexList->GetCount();
+ int index = -1 ;
+ for(int count = 0 ; count < loopCount; count ++)
+ {
+ Integer* pRealIndex = static_cast<Integer*>(pIndexList->GetAt(count));
+ index = pRealIndex->ToInt();
+ __pEditorFolderIconList->SetItemChecked(index, true);
+ __pEditorFolderIconList->RefreshList(index, LIST_REFRESH_TYPE_ITEM_MODIFY);
+ }
+
+}
+
AppLogDebug("ENTER");
result r = E_SUCCESS;
+ SetOrientation(ORIENTATION_AUTOMATIC);
+ AddOrientationEventListener(*this);
+
__pPresentationModel = AlbumListPresentationModel::GetInstance();
__pPresentationModel->ClearThumbnailRequests();
__pPresentationModel->AddPresentationModelListener(this);
AppLogDebug("ENTER");
Dimension itemSize(W_FOLDER_SIZE, H_FOLDER_SIZE);
- __pAlbumViewIconList = static_cast<IconListView*>(GetControl(L"IDC_ICONLISTVIEW_ALBUM_LIST"));
- AppAssert(__pAlbumViewIconList);
-
+ __pAlbumViewIconList = new IconListView();
+ __pAlbumViewIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height),
+ Dimension(W_FOLDER_SIZE, H_FOLDER_SIZE), ICON_LIST_VIEW_STYLE_NORMAL, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
__pAlbumViewIconList->SetItemProvider(*this);
__pAlbumViewIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
__pAlbumViewIconList->AddIconListViewItemEventListener(*this);
+
+
Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
+
if (pBitmap != null)
{
__pAlbumViewIconList->SetBitmapOfEmptyList(pBitmap);
delete pBitmap;
}
+ __pAlbumViewIconList->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
+
+ AddControl(*__pAlbumViewIconList);
__pAlbumViewIconList->SetShowState(true);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
__pOptionMenu->Show();
}
+
+void
+AlbumListForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+
+ if( __pAlbumViewIconList != null )
+ {
+ RemoveControl(__pAlbumViewIconList);
+ }
+
+ __pAlbumViewIconList = new IconListView();
+
+ if( orientationStatus == ORIENTATION_STATUS_PORTRAIT )
+ {
+ __pAlbumViewIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height),
+ Dimension(W_FOLDER_SIZE, H_FOLDER_SIZE), ICON_LIST_VIEW_STYLE_NORMAL, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+ }
+ else if (orientationStatus == ORIENTATION_STATUS_LANDSCAPE || orientationStatus == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+ {
+ int horizontalSpacing = 8;
+ int verticalSpacing = 60;
+ int height = 424;
+ int width = 410;
+
+ __pAlbumViewIconList->Construct(Rectangle(0, 0, GetClientAreaBounds().width, GetClientAreaBounds().height),
+ Dimension(width, height), ICON_LIST_VIEW_STYLE_NORMAL, ICON_LIST_VIEW_SCROLL_DIRECTION_VERTICAL);
+
+ __pAlbumViewIconList->SetItemSpacing(horizontalSpacing, verticalSpacing);
+ __pAlbumViewIconList->SetMargin(MARGIN_TYPE_TOP,60);
+ }
+
+ Bitmap* pBitmap = ResourceManager::GetBitmapN(IDB_LISTVIEW_EMPTY);
+
+ if (pBitmap != null)
+ {
+ __pAlbumViewIconList->SetBitmapOfEmptyList(pBitmap);
+ delete pBitmap;
+ }
+
+ __pAlbumViewIconList->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
+
+ __pAlbumViewIconList->SetItemProvider(*this);
+ __pAlbumViewIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE);
+ __pAlbumViewIconList->AddIconListViewItemEventListener(*this);
+
+ AddControl(*__pAlbumViewIconList);
+
+}
+
+
+
+
+
+
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-
-static const Rectangle RECT_NAME_EDIT_FIELD (0, 0, 720, 100);
static const unsigned int COLOR_NAME_EDIT_FIELD = Color32<255, 255, 255>::Value;
-static const int ALBUM_MAX_LENGTH = 255;
AlbumNameEditorForm::AlbumNameEditorForm(void)
: __pNameEditField(null)
AlbumNameEditorForm::Initialize(void)
{
AppLogDebug("ENTER");
- result r = Construct(FORM_STYLE_HEADER | FORM_STYLE_FOOTER | FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR);
+ result r = Construct(L"IDL_FORM_ALBUM_NAME_EDITOR");
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return r;
SetFormBackEventListener(this);
SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true);
- __pNameEditField = new (std::nothrow) EditField();
- __pNameEditField->Construct(RECT_NAME_EDIT_FIELD, EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY,
- EDIT_FIELD_TITLE_STYLE_NONE, true, ALBUM_MAX_LENGTH);
+ __pNameEditField = static_cast<EditField*>(GetControl(L"IDC_EDITFIELD_NAME"));
__pNameEditField->AddTextEventListener(*this);
__pNameEditField->SetColor(EDIT_STATUS_NORMAL, COLOR_NAME_EDIT_FIELD);
__pNameEditField->SetOverlayKeypadCommandButtonVisible(false);
-
- AddControl(__pNameEditField);
__pNameEditField->AddActionEventListener(*this);
return E_SUCCESS;
const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("ENTER");
+
+ ChangeOrientation();
+
__pPresentationModel = FileListPresentationModel::GetInstance();
SceneManager* pSceneManager = SceneManager::GetInstance();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+void
+AllListEditorPanel::ChangeOrientation(void)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
+ TryReturn(pForm != null, , "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+
+ Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
+ SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height - H_COUNT_LABEL);
+ __pLabelSelectCnt->SetBounds(0, clientAreaBounds.height - H_COUNT_LABEL, clientAreaBounds.width, H_COUNT_LABEL);
+ __pButtonSelectRegion->SetBounds(clientAreaBounds.width - W_COUNT_LABEL_BUTTON - 10, clientAreaBounds.height - H_COUNT_LABEL_BUTTON - 4, W_COUNT_LABEL_BUTTON, H_COUNT_LABEL_BUTTON);
+}
+
result
AllListEditorPanel::OnRequestMessage(void)
{
}
void
+AllListPanel::ChangeOrientation(void)
+{
+ AppLogDebug("ENTER");
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
+ TryReturn(pForm != null, , "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+
+ Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
+ SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+}
+
+void
AllListPanel::OnSceneActivatedN(const SceneId& previousSceneId,
const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("ENTER");
+ ChangeOrientation();
+
__pPresentationModel = FileListPresentationModel::GetInstance();
if (currentSceneId == IDSCN_ALL_LIST)
const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("ENTER");
+
+ ChangeOrientation();
+
__pPresentationModel = FileListPresentationModel::GetInstance();
SceneManager* pSceneManager = SceneManager::GetInstance();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+void
+AllListSelectionPanel::ChangeOrientation()
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
+ TryReturn(pForm != null, , "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+
+ Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
+ SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+}
+
result
AllListSelectionPanel::OnRequestMessage(void)
{
Header* pHeader = GetHeader();
TryReturn(pHeader != null, E_FAILURE, "[%s] fail to get the header.", GetErrorMessage(GetLastResult()));
+ SetOrientation(ORIENTATION_AUTOMATIC);
+ AddOrientationEventListener(*this);
+
__pPopUp = new (std::nothrow) SlideShowPopUp();
if (__pPopUp != null)
__pOptionMenu->AddActionEventListener(*this);
-
-
- __pContextMenuShare = new (std::nothrow) ContextMenu();
- __pContextMenuShare->Construct(Point(0, 0), CONTEXT_MENU_STYLE_LIST);
- __pContextMenuShare->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
- IDA_CONTEXT_MENU_SHARE_MESSAGE);
- __pContextMenuShare->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"),
- IDA_CONTEXT_MENU_SHARE_EMAIL);
- __pContextMenuShare->SetShowState(false);
- __pContextMenuShare->AddActionEventListener(*this);
-
-
-
if (__pContentDirectoryNameList != null)
{
delete __pContentDirectoryNameList;
case IDA_FOOTER_SHARE:
{
- if (__pContextMenuShare->GetShowState() == false)
+ if ( __pContextMenuShare != NULL)
{
+ delete __pContextMenuShare;
+ __pContextMenuShare = null;
+ }
+
+ __pContextMenuShare = new (std::nothrow) ContextMenu();
+ __pContextMenuShare->Construct(Point(GetClientAreaBounds().width/3 + 15, GetClientAreaBounds().height), CONTEXT_MENU_STYLE_LIST , CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+ __pContextMenuShare->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_MESSAGE"),
+ IDA_CONTEXT_MENU_SHARE_MESSAGE);
+ __pContextMenuShare->AddItem(ResourceManager::GetString(L"IDS_COM_BODY_EMAIL"),
+ IDA_CONTEXT_MENU_SHARE_EMAIL);
+ __pContextMenuShare->AddActionEventListener(*this);
+
+
+
Rectangle rect = source.GetBounds();
if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_SELECTION)
{
{
__pContextMenuShare->SetAnchorPosition(Point(rect.width / 8 * 3, rect.y - H_TOAST_LABEL));
}
+
__pContextMenuShare->SetShowState(true);
__pContextMenuShare->Show();
- }
- else
- {
- __pContextMenuShare->SetShowState(false);
- }
+
}
break;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+void
+FileListEditorForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ pSceneManager->GetCurrentScene();
+
+ if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_EDITOR)
+ {
+ AllListEditorPanel* pEditorPanel = dynamic_cast<AllListEditorPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+ if (pEditorPanel != null)
+ {
+ pEditorPanel->ChangeOrientation();
+ }
+ }
+ else if (pSceneManager->GetCurrentSceneId() == IDSCN_IMAGE_LIST_EDITOR)
+ {
+ ImageListEditorPanel* pEditorPanel = dynamic_cast<ImageListEditorPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+ if (pEditorPanel != null)
+ {
+ pEditorPanel->ChangeOrientation();
+ }
+ }
+ else if (pSceneManager->GetCurrentSceneId() == IDSCN_VIDEO_LIST_EDITOR)
+ {
+ VideoListEditorPanel* pEditorPanel = dynamic_cast<VideoListEditorPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+ if (pEditorPanel != null)
+ {
+ pEditorPanel->ChangeOrientation();
+ }
+ }
+ else if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST_SELECTION)
+ {
+ AllListSelectionPanel* pEditorPanel = dynamic_cast<AllListSelectionPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+ if (pEditorPanel != null)
+ {
+ pEditorPanel->ChangeOrientation();
+ }
+ }
+}
+
+
result
FileListEditorForm::MoveToAlbum(const String& destDirectory)
{
InitializeFooter();
SetFormBackEventListener(this);
+ SetOrientation(ORIENTATION_AUTOMATIC);
+ AddOrientationEventListener(*this);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return E_SUCCESS;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+void
+FileListForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+
+
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ pSceneManager->GetCurrentScene();
+
+ if (pSceneManager->GetCurrentSceneId() == IDSCN_ALL_LIST)
+ {
+ AllListPanel* pListPanel = dynamic_cast<AllListPanel*>(pSceneManager->GetCurrentScene()->GetPanel());
+ if (pListPanel != null)
+ {
+ pListPanel->ChangeOrientation();
+ }
+ }
+}
+
result
FileListForm::InitializeFooter(void)
{
{
AppLogDebug("ENTER");
+ ChangeOrientation();
+
SceneManager* pSceneManager = SceneManager::GetInstance();
__pFileListEditorForm = dynamic_cast<FileListEditorForm*>(pSceneManager->GetCurrentScene()->GetForm());
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+
+void
+ImageListEditorPanel::ChangeOrientation(void)
+{
+ AppLogDebug("ENTER");
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
+ TryReturn(pForm != null, , "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+
+ Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
+ SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
+
+void
+VideoListEditorPanel::ChangeOrientation(void)
+{
+ AppLogDebug("ENTER");
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ const Form* pForm = dynamic_cast<Form*>(pSceneManager->GetCurrentScene()->GetForm());
+ TryReturn(pForm != null, , "[%s] fail to get the form.", GetErrorMessage(GetLastResult()));
+
+ Rectangle clientAreaBounds = pForm->GetClientAreaBounds();
+ SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+ __pContentIconListView->SetBounds(0, 0, clientAreaBounds.width, clientAreaBounds.height);
+}