homescreenapp/stateplugins/hsmenuworkerstateplugin/resource/hswidgetpreviewdialog.docml
changeset 60 30f14686fb04
parent 46 23b5d6a29cce
child 63 52b0f64eeb51
equal deleted inserted replaced
55:03646e8da489 60:30f14686fb04
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <hbdocument version="0.9">
     2 <hbdocument version="1.1">
     3     <object name="add_to_homescreen" type="HbAction">
     3     <object name="add_to_homescreen" type="HbAction">
     4         <string name="role" value="HbDialog:primaryAction"/>
       
     5         <string locid="txt_applib_button_add_to_homescreen" name="text"/>
     4         <string locid="txt_applib_button_add_to_homescreen" name="text"/>
     6     </object>
     5     </object>
     7     <object name="close" type="HbAction">
     6     <object name="close" type="HbAction">
     8         <string name="role" value="HbDialog:secondaryAction"/>
       
     9         <string locid="txt_common_button_close" name="text"/>
     7         <string locid="txt_common_button_close" name="text"/>
    10     </object>
     8     </object>
    11     <widget name="preview_dialog" type="HbDialog">
     9     <widget name="preview_dialog" type="HbDialog">
    12         <enums name="dismissPolicy" value="HbPopup::NoDismiss"/>
    10         <enums name="dismissPolicy" value="NoDismiss"/>
    13         <ref object="add_to_homescreen" role="HbDialog:primaryAction"/>
    11         <widget name="label" role="HbDialog:headingWidget" type="HbLabel"/>
    14         <ref object="close" role="HbDialog:secondaryAction"/>
    12         <widget name="container" role="HbDialog:contentWidget" type="HbWidget">
       
    13             <widget name="icon_box" type="HbLabel">
       
    14                 <enums name="alignment" value="AlignHCenter|AlignTop"/>
       
    15                 <enums name="aspectRatioMode" value="KeepAspectRatio"/>
       
    16                 <sizepolicy horizontalPolicy="Fixed" horizontalStretch="0" verticalPolicy="Minimum" verticalStretch="0"/>
       
    17                 <sizehint height="32un" type="PREFERRED"/>
       
    18                 <sizehint height="var(hb-param-text-height-secondary)" type="MINIMUM" width="32un"/>
       
    19                 <contentsmargins bottom="0un" left="0un" right="0un" top="expr(var(hb-param-margin-gene-popup) )"/>
       
    20                 <sizehint type="MAXIMUM" width="32un"/>
       
    21                 <string locid="txt_applib_info_no_preview_available" name="plainText"/>
       
    22                 <fontspec name="fontSpec" role="Secondary" textheight="var(hb-param-text-height-secondary)"/>
       
    23             </widget>
       
    24             <real name="z" value="0"/>
       
    25             <layout orientation="Horizontal" type="linear">
       
    26                 <stretchitem stretchfactor="1"/>
       
    27                 <linearitem itemname="icon_box"/>
       
    28                 <stretchitem stretchfactor="1"/>
       
    29             </layout>
       
    30         </widget>
       
    31         <ref object="add_to_homescreen" role="HbWidget:addAction"/>
       
    32         <ref object="close" role="HbWidget:addAction"/>
    15     </widget>
    33     </widget>
    16     <widget name="container" role="HbDialog:contentWidget" type="HbWidget">
    34     <metadata activeUIState="Common ui state" display="NHD-3.2-inch_portrait" unit="un">
    17         <widget name="preview_scroll_area" type="HbScrollArea">
       
    18             <enums name="scrollingStyle" value="Pan"/>
       
    19             <enums name="alignment" value="Qt:AlignCenter"/>
       
    20             <enums name="verticalScrollBarPolicy" value="ScrollBarAutoHide"/>
       
    21             <enums name="horizontalScrollBarPolicy" value="ScrollBarAutoHide"/>
       
    22             <enums name="scrollDirections" value="Qt::Horizontal|Qt::Vertical"/>
       
    23             <enums name="clampingStyle" value="StrictClamping"/>
       
    24         </widget>
       
    25         <layout orientation="Vertical" type="linear">
       
    26             <linearitem itemname="preview_scroll_area"/>
       
    27         </layout>
       
    28     </widget>
       
    29     <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
       
    30         <uistate name="Common ui state" sections="#common"/>
    35         <uistate name="Common ui state" sections="#common"/>
    31     </metadata>
    36     </metadata>
    32 </hbdocument>
    37 </hbdocument>