clock/clockui/clockviews/data/xml/clockmainview.docml
changeset 26 a949c2543c15
child 28 c690c592b381
child 50 579cc610882e
equal deleted inserted replaced
23:fd30d51f876b 26:a949c2543c15
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <hbdocument version="0.9">
       
     3     <object name="alarmsAction" type="HbAction">
       
     4         <icon iconName="qtg_mono_alarm" name="icon"/>
       
     5     </object>
       
     6     <object name="worldClockAction" type="HbAction">
       
     7         <icon iconName="qtg_mono_world_clock" name="icon"/>
       
     8     </object>
       
     9     <object name="newAlarmAction" type="HbAction">
       
    10         <icon iconName="qtg_mono_alarm_new" name="icon"/>
       
    11     </object>
       
    12     <object name="settingsAction" type="HbAction">
       
    13         <string locid="txt_clk_main_view_opt_settings" name="text" value="Settings"/>
       
    14     </object>
       
    15     <widget name="clockMainView" type="HbView">
       
    16         <widget name="clockMainViewWidget" role="HbView:widget" type="HbWidget">
       
    17             <widget name="clockWidget" plugin="clockwidgetplugin" type="ClockWidget">
       
    18                 <real name="z" value="8"/>
       
    19             </widget>
       
    20             <widget name="dateLabel" type="HbLabel">
       
    21                 <real name="z" value="9"/>
       
    22                 <sizehint height="var(hb-param-text-height-tiny)" type="PREFERRED"/>
       
    23                 <string name="plainText" value="Mon 18.05.2009"/>
       
    24             </widget>
       
    25             <widget name="placeLabel" type="HbLabel">
       
    26                 <real name="z" value="10"/>
       
    27                 <sizehint height="var(hb-param-text-height-primary)" type="PREFERRED"/>
       
    28                 <string name="plainText" value="Helsinki, Finland +2 GMT"/>
       
    29             </widget>
       
    30             <widget name="alarmListView" type="HbListView">
       
    31                 <widget name="prototype" role="HbListView:prototype" type="HbListViewItem">
       
    32                     <string name="state" value="normal"/>
       
    33                 </widget>
       
    34                 <real name="z" value="11"/>
       
    35                 <sizehint height="47.7612un" type="PREFERRED" width="35.8209un"/>
       
    36             </widget>
       
    37             <widget name="noAlarmLabel" type="HbLabel">
       
    38                 <real name="z" value="12"/>
       
    39                 <sizepolicy horizontalPolicy="Fixed" horizontalStretch="0" verticalPolicy="Fixed" verticalStretch="0"/>
       
    40                 <sizehint height="3.9un" type="FIXED"/>
       
    41                 <string locid="txt_clk_main_view_list_no_alarms_set" name="plainText" value="No alarm set"/>
       
    42             </widget>
       
    43             <layout type="anchor">
       
    44                 <anchoritem dst="clockWidget" dstEdge="CENTERH" spacing="0un" src="" srcEdge="CENTERH"/>
       
    45                 <anchoritem dst="dateLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
    46                 <anchoritem dst="dateLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="" srcEdge="RIGHT"/>
       
    47                 <anchoritem dst="dateLabel" dstEdge="TOP" spacing="var(hb-param-margin-gene-top)" src="clockWidget" srcEdge="BOTTOM"/>
       
    48                 <anchoritem dst="placeLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
    49                 <anchoritem dst="placeLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="" srcEdge="RIGHT"/>
       
    50                 <anchoritem dst="placeLabel" dstEdge="TOP" spacing="var(hb-param-margin-gene-middle-vertical)" src="dateLabel" srcEdge="BOTTOM"/>
       
    51                 <anchoritem dst="alarmListView" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
       
    52                 <anchoritem dst="alarmListView" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
       
    53                 <anchoritem dst="alarmListView" dstEdge="TOP" spacing="var(hb-param-margin-gene-bottom)" src="placeLabel" srcEdge="BOTTOM"/>
       
    54                 <anchoritem dst="alarmListView" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
       
    55                 <anchoritem dst="clockWidget" dstEdge="TOP" spacing="var(hb-param-margin-gene-top)" src="" srcEdge="TOP"/>
       
    56                 <anchoritem dst="noAlarmLabel" dstEdge="LEFT" spacing="3.58209un" src="" srcEdge="LEFT"/>
       
    57                 <anchoritem dst="noAlarmLabel" dstEdge="TOP" spacing="23.43284un" src="" srcEdge="TOP"/>
       
    58             </layout>
       
    59         </widget>
       
    60         <widget name="viewToolbar" role="HbView:toolBar" type="HbToolBar">
       
    61             <enums name="orientation" value="Horizontal"/>
       
    62             <ref object="alarmsAction" role="HbToolBar:addAction"/>
       
    63             <ref object="worldClockAction" role="HbToolBar:addAction"/>
       
    64             <ref object="newAlarmAction" role="HbToolBar:addAction"/>
       
    65         </widget>
       
    66         <widget name="viewMenu" role="HbView:menu" type="HbMenu">
       
    67             <ref object="settingsAction" role="HbMenu:addAction"/>
       
    68         </widget>
       
    69         <string locid="txt_common_common_clock" name="title" value="Clock"/>
       
    70     </widget>
       
    71     <section name="landscape">
       
    72         <widget name="noAlarmLabel" type="HbLabel">
       
    73             <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    74             <sizepolicy horizontalPolicy="Preferred" horizontalStretch="0" verticalPolicy="Preferred" verticalStretch="0"/>
       
    75             <sizehint height="var(hb-param-text-height-primary)" type="PREFERRED" width="37.7un"/>
       
    76             <sizehint height="var(hb-param-text-height-primary)" type="MINIMUM" width="37.7un"/>
       
    77             <sizehint height="var(hb-param-text-height-primary)" type="MAXIMUM" width="37.7un"/>
       
    78         </widget>
       
    79         <widget name="clockMainViewWidget" role="HbView:widget" type="HbWidget">
       
    80             <layout type="anchor">
       
    81                 <anchoritem dst="dateLabel" dstEdge="TOP" spacing="var(hb-param-margin-gene-top)" src="clockWidget" srcEdge="BOTTOM"/>
       
    82                 <anchoritem dst="placeLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
    83                 <anchoritem dst="placeLabel" dstEdge="TOP" spacing="var(hb-param-margin-gene-middle-vertical)" src="dateLabel" srcEdge="BOTTOM"/>
       
    84                 <anchoritem dst="alarmListView" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
       
    85                 <anchoritem dst="clockWidget" dstEdge="TOP" spacing="var(hb-param-margin-gene-top)" src="" srcEdge="TOP"/>
       
    86                 <anchoritem dst="clockWidget" dstEdge="LEFT" spacing="9.5un" src="" srcEdge="LEFT"/>
       
    87                 <anchoritem dst="alarmListView" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
       
    88                 <anchoritem dst="alarmListView" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
       
    89                 <anchoritem dst="alarmListView" dstEdge="LEFT" spacing="9.5un" src="clockWidget" srcEdge="RIGHT"/>
       
    90                 <anchoritem dst="dateLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
    91                 <anchoritem dst="dateLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="alarmListView" srcEdge="LEFT"/>
       
    92                 <anchoritem dst="placeLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="alarmListView" srcEdge="LEFT"/>
       
    93                 <anchoritem dst="noAlarmLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="" srcEdge="RIGHT"/>
       
    94                 <anchoritem dst="noAlarmLabel" dstEdge="TOP" spacing="15.8un" src="" srcEdge="TOP"/>
       
    95                 <anchoritem dst="noAlarmLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="alarmListView" srcEdge="LEFT"/>
       
    96             </layout>
       
    97         </widget>
       
    98         <widget name="dateLabel" type="HbLabel">
       
    99             <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
   100         </widget>
       
   101         <widget name="placeLabel" type="HbLabel">
       
   102             <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
   103         </widget>
       
   104         <widget name="clockWidget" plugin="clockwidgetplugin" type="ClockWidget">
       
   105             <sizehint height="22.3un" type="PREFERRED" width="22.3un"/>
       
   106         </widget>
       
   107     </section>
       
   108     <section name="portrait">
       
   109         <widget name="noAlarmLabel" type="HbLabel">
       
   110             <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
   111             <sizepolicy horizontalPolicy="Preferred" horizontalStretch="0" verticalPolicy="Preferred" verticalStretch="0"/>
       
   112             <sizehint height="var(hb-param-text-height-primary)" type="PREFERRED" width="49.7un"/>
       
   113             <sizehint height="var(hb-param-text-height-primary)" type="MINIMUM" width="37.7un"/>
       
   114             <sizehint height="var(hb-param-text-height-primary)" type="MAXIMUM" width="49.7un"/>
       
   115         </widget>
       
   116         <widget name="clockMainViewWidget" role="HbView:widget" type="HbWidget">
       
   117             <layout type="anchor">
       
   118                 <anchoritem dst="clockWidget" dstEdge="CENTERH" spacing="0un" src="" srcEdge="CENTERH"/>
       
   119                 <anchoritem dst="dateLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
   120                 <anchoritem dst="dateLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="" srcEdge="RIGHT"/>
       
   121                 <anchoritem dst="dateLabel" dstEdge="TOP" spacing="var(hb-param-margin-gene-top)" src="clockWidget" srcEdge="BOTTOM"/>
       
   122                 <anchoritem dst="placeLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
   123                 <anchoritem dst="placeLabel" dstEdge="RIGHT" spacing="-var(hb-param-margin-gene-right)" src="" srcEdge="RIGHT"/>
       
   124                 <anchoritem dst="placeLabel" dstEdge="TOP" spacing="var(hb-param-margin-gene-middle-vertical)" src="dateLabel" srcEdge="BOTTOM"/>
       
   125                 <anchoritem dst="alarmListView" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
       
   126                 <anchoritem dst="alarmListView" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
       
   127                 <anchoritem dst="alarmListView" dstEdge="TOP" spacing="var(hb-param-margin-gene-bottom)" src="placeLabel" srcEdge="BOTTOM"/>
       
   128                 <anchoritem dst="alarmListView" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
       
   129                 <anchoritem dst="clockWidget" dstEdge="TOP" spacing="var(hb-param-margin-gene-top)" src="" srcEdge="TOP"/>
       
   130                 <anchoritem dst="noAlarmLabel" dstEdge="LEFT" spacing="var(hb-param-margin-gene-left)" src="" srcEdge="LEFT"/>
       
   131                 <anchoritem dst="noAlarmLabel" dstEdge="TOP" spacing="17.8un" src="placeLabel" srcEdge="BOTTOM"/>
       
   132             </layout>
       
   133         </widget>
       
   134         <widget name="dateLabel" type="HbLabel">
       
   135             <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
   136         </widget>
       
   137         <widget name="placeLabel" type="HbLabel">
       
   138             <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
   139         </widget>
       
   140         <widget name="clockWidget" plugin="clockwidgetplugin" type="ClockWidget">
       
   141             <sizehint height="31.9un" type="PREFERRED" width="31.9un"/>
       
   142         </widget>
       
   143     </section>
       
   144     <metadata activeUIState="landscape" display="NHD landscape" unit="un">
       
   145         <uistate name="Common ui state" sections="#common"/>
       
   146         <uistate name="portrait" sections="#common portrait"/>
       
   147         <uistate name="landscape" sections="#common landscape"/>
       
   148         <dummydata objectName="alarmListView" section="#common" value="0"/>
       
   149     </metadata>
       
   150 </hbdocument>