Supports chaning font size and orientation.
authorChangyong Jeon <fin10.jeon@samsung.com>
Sat, 22 Jun 2013 02:58:24 +0000 (11:58 +0900)
committerChangyong Jeon <fin10.jeon@samsung.com>
Sat, 22 Jun 2013 05:10:02 +0000 (14:10 +0900)
Change-Id: I500f2ac62370e4f99c5dab6a1fcfef85b72a6b63

Installer/inc/IstDetailForm.h
Installer/res/screen-size-normal/IDL_DETAIL_FORM.xml
Installer/res/screen-size-normal/IDL_INSTALLED_POPUP.xml
Installer/res/screen-size-normal/IDL_PANEL_BACKGROUND_BUTTON_ITEM.xml
Installer/res/screen-size-normal/IDL_PANEL_EXPANDABLE_ITEM.xml
Installer/src/IstDetailForm.cpp
InstallerService/res/screen-size-normal/IDL_QUICK_INSTALLATION.xml

index 755a5a1..126e657 100644 (file)
@@ -16,7 +16,7 @@
 
 /**
  * @file               IstDetailForm.h
- * @brief              This file contains the implementation of DetailForm class, which acts as a
+ * @brief              This file contains declaration of DetailForm class, which acts as a
  *                             application installer displaying a list of all the privilege description in the TPK file.
  */
 
@@ -35,6 +35,7 @@ class DetailForm
        , public virtual Tizen::Ui::Controls::ISectionTableViewItemEventListener
        , public virtual Tizen::Ui::Controls::ISectionTableViewItemProviderF
        , public virtual Tizen::Ui::Scenes::ISceneEventListener
+       , public virtual Tizen::Ui::IOrientationEventListener
 {
 public:
        DetailForm(void);
@@ -59,14 +60,17 @@ public:
        virtual void UpdateItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
        virtual void OnSectionTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
        virtual void OnSectionTableViewItemStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
 private:
        bool GetPrivilegeListIndex(int actualIndex, int& privilegeIndex);
+       float GetTextHeight(const Tizen::Base::String& text, const Tizen::Graphics::Font& font, float width);
 private:
        Tizen::Base::Collection::ArrayList* __pPrivilegeList;
        Tizen::Graphics::Bitmap* __pExpandCloseIcon;
        Tizen::Graphics::Bitmap* __pExpandOpenIcon;
        Tizen::Base::Boolean* __pExposedItemList;
-       Tizen::Graphics::EnrichedText __enrichedText;
+       float __fontSize;
+       float __childFontSize;
 };
 
 #endif
index 39c6745..ca0f8b3 100644 (file)
@@ -7,9 +7,9 @@
 <Scene Bversion="2.0.0.201306151404" Dversion="20120315">
     <LogicalCoordinate>720</LogicalCoordinate>
     <Form id="IDL_DETAIL_FORM">
-        <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_CARD"/>
-        <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER" type="LAYOUT_CARD"/>
     </Form>
     <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="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
@@ -18,6 +18,6 @@
     <SectionTableView id="IDC_SECTIONTABLEVIEW" parent="IDL_DETAIL_FORM">
         <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" groupedLookEnabled="true" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_NONE" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" useSearchIcon="false"/>
         <layout mode="Portrait" x="0" y="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="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="730.0" x="277.0" y="132.0"/>
+        <layout mode="Landscape" x="0" y="0"/>
     </SectionTableView>
 </Scene>
index 8cf2163..ee85236 100644 (file)
@@ -8,36 +8,36 @@
     <Popup id="IDL_INSTALLED_POPUP">
         <property accessibilityHint="" color="" titleText="" titleTextColor=""/>
         <layout height="350.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688.0"/>
-        <layout height="688.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="164.0"/>
+        <layout height="350.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688.0"/>
     </Popup>
     <Panel id="IDC_PANEL" parent="IDL_INSTALLED_POPUP">
         <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
         <layout bottomRelation="IDL_INSTALLED_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" column1Collapsed="false" column1Shrinkable="true" column1Spacing="0.0" column1Stretchable="true" column2Collapsed="false" column2Shrinkable="true" column2Spacing="10.0" column2Stretchable="true" column3Collapsed="false" column3Shrinkable="true" column3Spacing="10.0" column3Stretchable="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INSTALLED_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="16.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" maxColumn="3" maxRow="1" mode="Portrait" rightRelation="IDL_INSTALLED_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" row1Collapsed="false" row1Shrinkable="true" row1Spacing="0.0" row1Stretchable="true" topRelation="" topRelationType="" type="LAYOUT_GRID" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="260.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="159.0" horizontalDirection="HORIZONTAL_DIRECTION_RIGHTWARD" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_HORIZONTAL_BOX" verticalFitPolicy="FIT_POLICY_FIXED" width="164.0" x="-10.0" y="249.0"/>
+        <layout bottomRelation="IDL_INSTALLED_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" column1Collapsed="false" column1Shrinkable="true" column1Spacing="0.0" column1Stretchable="true" column2Collapsed="false" column2Shrinkable="true" column2Spacing="10.0" column2Stretchable="true" column3Collapsed="false" column3Shrinkable="true" column3Spacing="10.0" column3Stretchable="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INSTALLED_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="16.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" maxColumn="3" maxRow="1" mode="Landscape" rightRelation="IDL_INSTALLED_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" row1Collapsed="false" row1Shrinkable="true" row1Spacing="0.0" row1Stretchable="true" topRelation="" topRelationType="" type="LAYOUT_GRID" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="260.0"/>
     </Panel>
     <Button id="IDC_BUTTON_REINSTALL" parent="IDC_PANEL">
         <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="Reinstall" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
-        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" positionColumn="0" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="227.1111"/>
-        <layout height="159.0" horizontalFitPolicy="FIT_POLICY_FIXED" mode="Landscape" spacing="0.0" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" verticalBottomMargin="0.0" verticalFitPolicy="FIT_POLICY_FIXED" verticalTopMargin="0.0" weight="0.0" width="14.0"/>
+        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" positionColumn="0" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="212.0"/>
+        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" positionColumn="0" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="295.91672"/>
     </Button>
     <Button id="IDC_BUTTON_LAUNCH" parent="IDC_PANEL">
         <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="Launch" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
-        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" positionColumn="1" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="221.44447"/>
-        <layout height="159.0" horizontalFitPolicy="FIT_POLICY_FIXED" mode="Landscape" spacing="0.0" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" verticalBottomMargin="0.0" verticalFitPolicy="FIT_POLICY_FIXED" verticalTopMargin="0.0" weight="0.0" width="14.0"/>
+        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" positionColumn="1" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="212.0"/>
+        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" positionColumn="1" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="202.3854"/>
     </Button>
     <Button id="IDC_BUTTON_CANCEL" parent="IDC_PANEL">
         <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="Cancel" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
-        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" positionColumn="2" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="220.44441"/>
-        <layout height="159.0" horizontalFitPolicy="FIT_POLICY_FIXED" mode="Landscape" spacing="0.0" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" verticalBottomMargin="0.0" verticalFitPolicy="FIT_POLICY_FIXED" verticalTopMargin="0.0" weight="0.0" width="14.0"/>
+        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" positionColumn="2" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="212.0"/>
+        <layout height="74.0" horizontalAlignment="LAYOUT_HORIZONTAL_ALIGN_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" positionColumn="2" positionColumnSpan="1" positionRow="0" positionRowSpan="1" verticalAlignment="LAYOUT_VERTICAL_ALIGN_TOP" visible="true" width="138.69783"/>
     </Button>
     <Label id="IDC_LABEL_VERSION" parent="IDL_INSTALLED_POPUP">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="#6E6F76" textSize="32.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
         <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INSTALLED_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="16.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_INSTALLED_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="154.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="192.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="164.0" x="-254.0" y="344.0"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INSTALLED_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="16.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_INSTALLED_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="154.0"/>
     </Label>
     <Label id="IDC_LABEL_MESSAGE" parent="IDL_INSTALLED_POPUP">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="" textSize="32.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
         <layout bottomRelation="IDC_LABEL_VERSION" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="138.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INSTALLED_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Portrait" rightRelation="IDL_INSTALLED_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_INSTALLED_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="16.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="192.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="164.0" x="-254.0" y="216.0"/>
+        <layout bottomRelation="IDC_LABEL_VERSION" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="138.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INSTALLED_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Landscape" rightRelation="IDL_INSTALLED_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_INSTALLED_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="16.0"/>
     </Label>
 </ScenePopup>
index 50b8212..5a83594 100644 (file)
@@ -8,11 +8,11 @@
     <Panel id="IDL_PANEL_BACKGROUND_BUTTON_ITEM">
         <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
         <layout height="80.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
-        <layout height="300.0" mode="Landscape" type="LAYOUT_RELATIVE" width="93.0" x="0.0" y="0.0"/>
+        <layout height="80.0" mode="Landscape" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
     </Panel>
     <Button id="IDC_BUTTON_INSTALL" parent="IDL_PANEL_BACKGROUND_BUTTON_ITEM">
         <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="Accept and install" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_BACKGROUND_BUTTON_ITEM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_PANEL_BACKGROUND_BUTTON_ITEM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="3.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="74.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="93.0" x="188.0" y="6.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_BACKGROUND_BUTTON_ITEM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_PANEL_BACKGROUND_BUTTON_ITEM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="3.0"/>
     </Button>
 </ScenePanel>
index d3b9c5b..c5274a4 100644 (file)
@@ -4,7 +4,7 @@
 -->
 <!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
 
-<ScenePanel Bversion="2.0.0.201305162056" Dversion="20120315">
+<ScenePanel Bversion="2.0.0.201306151404" Dversion="20120315">
     <Panel id="IDL_PANEL_EXPANDABLE_ITEM">
         <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
         <layout height="140.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
     <Label id="IDC_LABEL_EX" parent="IDL_PANEL_EXPANDABLE_ITEM">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="20.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_PANEL_EXPANDABLE_ITEM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="628.0" y="34.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="20.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_PANEL_EXPANDABLE_EX_1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="1188.0" y="34.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="20.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_PANEL_EXPANDABLE_ITEM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="1188.0" y="34.0"/>
     </Label>
     <Label id="IDC_LABEL_SUB_TEXT" parent="IDL_PANEL_EXPANDABLE_ITEM">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="#808080" textSize="32.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_TOP"/>
         <layout bottomRelation="IDL_PANEL_EXPANDABLE_ITEM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="42.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_EXPANDABLE_ITEM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="22.0" marginLeft="16.0" marginRight="10.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_LABEL_EX" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="602.0" x="16.0" y="76.0"/>
-        <layout bottomRelation="IDL_PANEL_EXPANDABLE_EX_1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="42.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_EXPANDABLE_EX_1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="22.0" marginLeft="16.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_LABEL_EX" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="None" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1162.0" x="16.0" y="76.0"/>
+        <layout bottomRelation="IDL_PANEL_EXPANDABLE_ITEM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="42.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_EXPANDABLE_ITEM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="22.0" marginLeft="16.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_LABEL_EX" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1162.0" x="16.0" y="76.0"/>
     </Label>
     <Label id="IDC_LABEL_MAIN_TEXT" parent="IDL_PANEL_EXPANDABLE_ITEM">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="" textSize="44.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_BOTTOM"/>
         <layout bottomRelation="IDC_LABEL_SUB_TEXT" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="54.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_EXPANDABLE_ITEM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="10.0" marginTop="22.0" mode="Portrait" rightRelation="IDC_LABEL_EX" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="IDL_PANEL_EXPANDABLE_ITEM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="602.0" x="16.0" y="22.0"/>
-        <layout bottomRelation="IDC_LABEL_SUB_TEXT" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="54.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_EXPANDABLE_EX_1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="10.0" marginTop="22.0" mode="Landscape" rightRelation="IDC_LABEL_EX" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="IDL_PANEL_EXPANDABLE_EX_1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1162.0" x="16.0" y="22.0"/>
+        <layout bottomRelation="IDC_LABEL_SUB_TEXT" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="54.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_PANEL_EXPANDABLE_ITEM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="10.0" marginTop="22.0" mode="Landscape" rightRelation="IDC_LABEL_EX" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" topRelation="IDL_PANEL_EXPANDABLE_ITEM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1162.0" x="16.0" y="22.0"/>
     </Label>
 </ScenePanel>
index 3807896..0a7473a 100644 (file)
 
 #include <FApp.h>
 #include <FGraphics.h>
+#include <FIo.h>
 #include <FSecurity.h>
+#include <FShell.h>
+#include <FSystem.h>
 #include "AppResourceId.h"
 #include "IstDetailForm.h"
 #include "IstInstallerApp.h"
 using namespace Tizen::App;
 using namespace Tizen::App::Package;
 using namespace Tizen::Base;
+using namespace Tizen::Base::Runtime;
 using namespace Tizen::Base::Collection;
 using namespace Tizen::Graphics;
+using namespace Tizen::Io;
 using namespace Tizen::Security;
+using namespace Tizen::System;
 using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
 
@@ -50,7 +56,8 @@ DetailForm::DetailForm(void)
        : __pPrivilegeList(null)
        , __pExpandCloseIcon(null)
        , __pExpandOpenIcon(null)
-       , __pExposedItemList(null)
+       , __fontSize(44.f)
+       , __childFontSize(32.f)
 {
 }
 
@@ -70,8 +77,12 @@ DetailForm::OnInitializing(void)
        result r = E_SUCCESS;
 
        SetFormBackEventListener(this);
+       AddOrientationEventListener(*this);
 
-       __enrichedText.Construct(FloatDimension(1, 1));
+       String fontSizeString;
+       SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       __fontSize = UiConfiguration::GetFontSize(fontSizeString);
+       __childFontSize = __fontSize * 0.8f;
 
        SectionTableView* pSectionTableView = static_cast<SectionTableView*>(GetControl(IDC_SECTIONTABLEVIEW));
        pSectionTableView->SetItemProviderF(this);
@@ -87,6 +98,7 @@ DetailForm::OnInitializing(void)
 result
 DetailForm::OnTerminating(void)
 {
+       RemoveOrientationEventListener(*this);
        delete __pPrivilegeList;
        delete __pExpandCloseIcon;
        delete __pExpandOpenIcon;
@@ -103,7 +115,7 @@ DetailForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
                String filePath = static_cast<InstallerApp*>(UiApp::GetInstance())->GetPackageFilePath();
                AppControl* pAc = AppManager::GetInstance()->FindAppControlN(AppId(L"D7eOJquGtL.InstallerService"), L"");
                result r = pAc->Start(&filePath, null, null, null);
-               TryLog(r == E_SUCCESS, "[%s] Failed to launch service app.", GetErrorMessage(r));
+               AppLogExceptionIf(r == E_SUCCESS, "[%s] Failed to launch service app.", GetErrorMessage(r));
                UiApp::GetInstance()->Terminate();
                break;
        }
@@ -118,7 +130,7 @@ DetailForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
 
 void
 DetailForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
-                                                               const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+               const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
 {
        AppLogDebug("Enter");
        const PackageInfo* pPackageInfo = static_cast<InstallerApp*>(UiApp::GetInstance())->GetPackageInfo();
@@ -153,7 +165,7 @@ DetailForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
 
 void
 DetailForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
-                                                               const Tizen::Ui::Scenes::SceneId& nextSceneId)
+               const Tizen::Ui::Scenes::SceneId& nextSceneId)
 {
        AppLogDebug("Enter");
        delete __pPrivilegeList;
@@ -173,13 +185,19 @@ DetailForm::CreateItem(int sectionIndex, int itemIndex, float itemWidth)
        {
        case 0:
        {
+               String message = L"This application can have illegal code. And it can cause serious injury to your device.";
+
+               Font font;
+               font.Construct(FONT_STYLE_PLAIN, __childFontSize);
+               float textHeight = GetTextHeight(message, font, itemWidth - 32.f);
+
                BlankTableViewItem* pBlankItem = new (std::nothrow) BlankTableViewItem();
-               pBlankItem->Construct(layout, FloatDimension(itemWidth, 76.f));
-               pBlankItem->GetAccessibilityContainer()->GetElement(L"TableViewItem")->SetLabel(L"This application can have illegal code. And it can cause serious injury to your device.");
+               pBlankItem->Construct(layout, FloatDimension(itemWidth, 40.f+textHeight));
+               pBlankItem->GetAccessibilityContainer()->GetElement(L"TableViewItem")->SetLabel(message);
 
                Label* pLabel = new (std::nothrow) Label();
-               pLabel->Construct(FloatRectangle(0, 0, 0, 0), L"This application can have illegal code. And it can cause serious injury to your device.");
-               pLabel->SetTextConfig(32.f, LABEL_TEXT_STYLE_NORMAL);
+               pLabel->Construct(FloatRectangle(0, 0, 0, 0), message);
+               pLabel->SetTextConfig(__childFontSize, LABEL_TEXT_STYLE_NORMAL);
                pLabel->SetTextColor(Color(128, 128, 128));
                pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
                pLabel->GetAccessibilityContainer()->RemoveAllElements();
@@ -190,7 +208,6 @@ DetailForm::CreateItem(int sectionIndex, int itemIndex, float itemWidth)
        }
        case 1:
        {
-               pItem = new (std::nothrow) TableViewItem();
                int privilegeIndex = 0;
                bool isTitle = GetPrivilegeListIndex(itemIndex, privilegeIndex);
 
@@ -198,7 +215,12 @@ DetailForm::CreateItem(int sectionIndex, int itemIndex, float itemWidth)
 
                if (isTitle)
                {
-                       pItem->Construct(layout, FloatDimension(itemWidth, 140.f));
+                       Font font;
+                       font.Construct(FONT_STYLE_PLAIN, __fontSize);
+                       float textHeight = GetTextHeight(L" ", font, itemWidth - 32.f);
+
+                       pItem = new (std::nothrow) TableViewItem();
+                       pItem->Construct(layout, FloatDimension(itemWidth, 87.f+textHeight));
                        pItem->GetAccessibilityContainer()->GetElement(L"TableViewItem")->SetLabel(pInfo->GetDisplayName());
 
                        Panel* pPanel = new (std::nothrow) Panel();
@@ -222,6 +244,7 @@ DetailForm::CreateItem(int sectionIndex, int itemIndex, float itemWidth)
 
                        Label* pMainLabel = static_cast<Label*>(pPanel->GetControl(IDC_LABEL_MAIN_TEXT));
                        pMainLabel->SetText(pInfo->GetDisplayName());
+                       pMainLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
                        pMainLabel->GetAccessibilityContainer()->RemoveAllElements();
 
                        Label* pSubLabel = static_cast<Label*>(pPanel->GetControl(IDC_LABEL_SUB_TEXT));
@@ -232,33 +255,19 @@ DetailForm::CreateItem(int sectionIndex, int itemIndex, float itemWidth)
                }
                else
                {
-                       TextElement textElement;
-                       textElement.Construct(pInfo->GetDescription());
-
                        Font font;
-                       font.Construct(FONT_STYLE_PLAIN, 32.f);
-                       textElement.SetFont(font);
-
-                       __enrichedText.SetSize(FloatDimension(itemWidth - 32.f, 112.f));
-                       __enrichedText.Add(textElement);
-
-                       float textHeight = __enrichedText.GetTotalLineHeightF();
-                       __enrichedText.RemoveAll(false);
-
-                       pItem->Construct(layout, FloatDimension(itemWidth, 80+textHeight));
-                       pItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
-                       pItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
-                       pItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
-                       pItem->GetAccessibilityContainer()->GetElement(L"TableViewItem")->SetLabel(pInfo->GetDescription());
-
-                       Label* pLabel = new (std::nothrow) Label();
-                       pLabel->Construct(FloatRectangle(0, 0, itemWidth, 80+textHeight), pInfo->GetDescription());
-                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
-                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
-                       pLabel->SetTextConfig(32.f, LABEL_TEXT_STYLE_NORMAL);
-                       pLabel->GetAccessibilityContainer()->RemoveAllElements();
-
-                       pChildControl = pLabel;
+                       font.Construct(FONT_STYLE_PLAIN, __childFontSize);
+                       float textHeight = GetTextHeight(pInfo->GetDescription(), font, itemWidth - 32.f);
+
+                       TableViewSimpleItem* pSimpleItem = new (std::nothrow) TableViewSimpleItem();
+                       pSimpleItem->Construct(layout, FloatDimension(itemWidth, 40.f+textHeight));
+                       pSimpleItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
+                       pSimpleItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+                       pSimpleItem->SetBackgroundColor(Color(220, 218, 211), TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+                       pSimpleItem->SetItemContents(pInfo->GetDescription(), null);
+                       pSimpleItem->SetTextSize(__childFontSize);
+
+                       pItem = pSimpleItem;
                }
                break;
        }
@@ -377,6 +386,34 @@ DetailForm::HasSectionHeader(int sectionIndex)
 void
 DetailForm::UpdateItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem)
 {
+       switch (sectionIndex)
+       {
+       case 0:
+       {
+               String message = L"This application can have illegal code. And it can cause serious injury to your device.";
+               Font font;
+               font.Construct(FONT_STYLE_PLAIN, __childFontSize);
+               float textHeight = GetTextHeight(message, font, pItem->GetWidthF() - 32.f);
+               pItem->SetSize(FloatDimension(pItem->GetWidthF(), 40.f+textHeight));
+               break;
+       }
+       case 1:
+       {
+               int privilegeIndex = 0;
+               bool isTitle = GetPrivilegeListIndex(itemIndex, privilegeIndex);
+               if (!isTitle)
+               {
+                       PrivilegeInfo* pInfo = static_cast<PrivilegeInfo*>(__pPrivilegeList->GetAt(privilegeIndex));
+
+                       Font font;
+                       font.Construct(FONT_STYLE_PLAIN, __childFontSize);
+                       float textHeight = GetTextHeight(pInfo->GetDescription(), font, pItem->GetWidthF() - 32.f);
+
+                       pItem->SetSize(pItem->GetWidthF(), 40.f+textHeight);
+               }
+               break;
+       }
+       }
 }
 
 void
@@ -415,11 +452,29 @@ DetailForm::OnSectionTableViewItemStateChanged(Tizen::Ui::Controls::SectionTable
        }
 }
 
+void
+DetailForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+       AppLogDebug("%d", orientationStatus);
+       SectionTableView* pSectionTableView = static_cast<SectionTableView*>(GetControl(IDC_SECTIONTABLEVIEW));
+
+       pSectionTableView->RefreshItem(0, 0, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       int index = 0;
+       for (int i=0; i<pSectionTableView->GetItemCountAt(1); ++i)
+       {
+               if (!GetPrivilegeListIndex(i, index))
+               {
+                       pSectionTableView->RefreshItem(1, i, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               }
+       }
+}
+
 bool
 DetailForm::GetPrivilegeListIndex(int actualIndex, int& privilegeIndex)
 {
-       int i = 0;
        privilegeIndex = actualIndex;
+       int i = 0;
        for (; i<privilegeIndex && i<__pPrivilegeList->GetCount(); ++i)
        {
                if (__pExposedItemList[i] == true)
@@ -430,3 +485,17 @@ DetailForm::GetPrivilegeListIndex(int actualIndex, int& privilegeIndex)
 
        return i == privilegeIndex;
 }
+
+float
+DetailForm::GetTextHeight(const Tizen::Base::String& text, const Tizen::Graphics::Font& font, float width)
+{
+       TextElement textElement;
+       textElement.Construct(text);
+       textElement.SetFont(font);
+
+       EnrichedText enrichedText;
+       enrichedText.Construct(FloatDimension(width, 1.f));
+       enrichedText.Add(textElement);
+
+       return enrichedText.GetTotalLineHeightF();
+}
index 9e1454c..7998e7b 100644 (file)
@@ -7,31 +7,31 @@
 <SceneQuickPanelFrame Bversion="2.0.0.201306151404" Dversion="20120315">
     <QuickPanelFrame id="IDL_QUICK_INSTALLATION">
         <layout height="180.0" mode="Portrait" type="LAYOUT_RELATIVE"/>
-        <layout height="720.0" mode="Landscape" type="LAYOUT_RELATIVE"/>
+        <layout height="180.0" mode="Landscape" type="LAYOUT_RELATIVE"/>
     </QuickPanelFrame>
     <Label id="IDC_LABEL_ICON" parent="IDL_QUICK_INSTALLATION">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_QUICK_INSTALLATION" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="40.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="40.0" y="54.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="403.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="200.0" x="0.0" y="306.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_QUICK_INSTALLATION" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="40.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="40.0" y="54.0"/>
     </Label>
     <Progress id="IDC_PROGRESS" parent="IDL_QUICK_INSTALLATION">
         <property accessibilityHint="" backgroundColor="" barBackgroundColor="" barColor="" leftText="" max="100" min="0" rightText="" showValueState="true" value="0"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="36.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_ICON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_QUICK_INSTALLATION" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="608.0" x="112.0" y="72.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="129.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" style="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="180.0" x="20.0" y="342.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="true" height="36.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_LABEL_ICON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_QUICK_INSTALLATION" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1168.0" x="112.0" y="72.0"/>
     </Progress>
     <Label id="IDC_LABEL_NAME" parent="IDL_QUICK_INSTALLATION">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="Label2" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_BOTTOM"/>
         <layout bottomRelation="IDC_PROGRESS" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="39.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PROGRESS" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="40.0" marginRight="40.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PROGRESS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_CONTENT" width="528.0" x="152.0" y="33.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="403.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="200.0" x="0.0" y="144.0"/>
+        <layout bottomRelation="IDC_PROGRESS" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="39.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PROGRESS" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="40.0" marginRight="40.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PROGRESS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_CONTENT" width="1088.0" x="152.0" y="33.0"/>
     </Label>
     <Label id="IDC_LABEL_DEGREE" parent="IDL_QUICK_INSTALLATION">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="100%" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="39.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PROGRESS" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="24.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_PROGRESS" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_CONTENT" width="300.0" x="136.0" y="108.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="403.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="200.0" x="0.0" y="316.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="39.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PROGRESS" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="24.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_PROGRESS" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_CONTENT" width="477.0" x="136.0" y="108.0"/>
     </Label>
     <Label id="IDC_LABEL_COUNT" parent="IDL_QUICK_INSTALLATION">
         <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_RIGHT" leftMargin="0" text="1/1" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="39.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="24.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_PROGRESS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PROGRESS" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_CONTENT" width="261.0" x="435.0" y="108.0"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="403.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="200.0" x="0.0" y="316.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="39.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="24.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_PROGRESS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PROGRESS" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_CONTENT" width="551.0" x="705.0" y="108.0"/>
     </Label>
 </SceneQuickPanelFrame>