radioapp/radiowidgets/res/layout/stationsview.docml
branchRCL_3
changeset 45 cce62ebc198e
equal deleted inserted replaced
43:1a6714c53019 45:cce62ebc198e
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <hbdocument context="RadioStationsView" version="0.9">
       
     3     <object name="sv:scan_action" type="HbAction">
       
     4         <string name="text" locid="txt_rad_opt_search_all_stations" />
       
     5     </object>
       
     6     <object name="sv:clear_list_action" type="HbAction">
       
     7         <string name="text" locid="txt_rad_opt_clear_list" />
       
     8     </object>
       
     9     <object name="loudspeaker_action" type="HbAction">
       
    10         <string name="text" locid="txt_common_opt_activate_loudspeaker" />
       
    11     </object>
       
    12     <object name="exit_action" type="HbAction">
       
    13         <string name="text" locid="txt_common_opt_exit" />
       
    14     </object>
       
    15     <object name="sv:play_action" type="HbAction">
       
    16         <string name="text" locid="txt_common_menu_play_music" />
       
    17     </object>
       
    18     <object name="sv:rename_action" type="HbAction">
       
    19         <string name="text" locid="txt_common_menu_rename_item" />
       
    20     </object>
       
    21     <object name="sv:toggle_favorite_action" type="HbAction">
       
    22         <string name="text" locid="txt_rad_menu_add_to_favourites" />
       
    23     </object>
       
    24     <object name="sv:delete_action" type="HbAction">
       
    25         <string name="text" locid="txt_common_menu_delete" />
       
    26     </object>
       
    27     <object name="sv:local_stations_button" type="HbAction">
       
    28         <bool name="checkable" value="TRUE"/>
       
    29         <icon iconName="qtg_mono_radio_stations" name="icon"/>
       
    30         <string name="text" locid="txt_rad_button_local_stations" />
       
    31     </object>
       
    32     <object name="sv:favorite_stations_button" type="HbAction">
       
    33         <bool name="checkable" value="TRUE"/>
       
    34         <icon iconName="qtg_mono_favourites" name="icon"/>
       
    35         <string name="text" locid="txt_rad_button_favourites" />
       
    36     </object>
       
    37     <widget name="view" type="HbView">
       
    38         <icon name="nowPlayingIcon" iconName="qtg_mono_play" />
       
    39         <icon name="favoriteIcon" iconName="qtg_small_favorite" />
       
    40         <widget name="mMenu" role="HbView:menu" type="HbMenu">
       
    41             <ref object="sv:scan_action" role="HbMenu:addAction"/>
       
    42             <ref object="sv:clear_list_action" role="HbMenu:addAction"/>
       
    43             <ref object="loudspeaker_action" role="HbMenu:addAction"/>
       
    44             <ref object="exit_action" role="HbMenu:addAction"/>
       
    45         </widget>
       
    46         <widget name="sv:toolbar" role="HbView:toolBar" type="HbToolBar">
       
    47             <enums name="orientation" value="Horizontal"/>
       
    48             <ref object="sv:local_stations_button" role="HbToolBar:addAction"/>
       
    49             <ref object="sv:favorite_stations_button" role="HbToolBar:addAction"/>
       
    50         </widget>
       
    51         <widget name="content" role="HbView:widget" type="HbWidget">
       
    52             <widget name="sv:heading_banner" type="HbGroupBox">
       
    53                 <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Fixed" verticalStretch="0"/>
       
    54                 <sizehint height="expr(var(hb-param-text-height-secondary)+2*var(hb-param-margin-gene-middle-vertical))" type="PREFERRED"/>
       
    55                 <fontspec name="fontSpec" role="Secondary" textheight="var(hb-param-text-height-secondary)"/>
       
    56                 <string name="heading" locid="txt_rad_subhead_all_stations" />
       
    57             </widget>
       
    58             <widget name="sv:stacked_widget" type="HbWidget">
       
    59                 <widget name="sv:scan_button" type="HbPushButton">
       
    60                     <bool name="visible" value="FALSE"/>
       
    61                 </widget>
       
    62                 <widget name="sv:empty_container" type="HbWidget">
       
    63                     <bool name="visible" value="FALSE"/>
       
    64                     <widget name="sv:empty_title" type="HbLabel">
       
    65                         <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    66                         <string locid="txt_rad_info_no_stations" name="plainText"/>
       
    67                         <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    68                     </widget>
       
    69                     <widget name="sv:empty_text" type="HbLabel">
       
    70                         <enums name="textWrapping" value="TextWordWrap"/>
       
    71                         <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    72                         <sizehint height="320" type="PREFERRED" width="240"/>
       
    73                         <string locid="txt_rad_info_no_stations_search_stations_automat" name="plainText"/>
       
    74                         <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    75                     </widget>
       
    76                     <layout orientation="Vertical" spacing="var(hb-param-margin-gene-middle-vertical)" type="linear">
       
    77                         <contentsmargins bottom="var(hb-param-margin-gene-bottom)" left="var(hb-param-margin-gene-left)" right="var(hb-param-margin-gene-right)" top="var(hb-param-margin-gene-top)"/>
       
    78                         <stretchitem stretchfactor="2"/>
       
    79                         <linearitem itemname="sv:empty_title"/>
       
    80                         <stretchitem stretchfactor="1"/>
       
    81                         <linearitem itemname="sv:empty_text"/>
       
    82                         <stretchitem stretchfactor="2"/>
       
    83                     </layout>
       
    84                 </widget>
       
    85                 <widget name="sv:stations_list" type="HbListView">
       
    86                     <sizehint height="320" type="PREFERRED" width="240"/>
       
    87                     <bool name="visible" value="TRUE"/>
       
    88                 </widget>
       
    89                 <layout type="stacked">
       
    90                     <stackitem itemname="sv:scan_button"/>
       
    91                     <stackitem itemname="sv:empty_container"/>
       
    92                     <stackitem itemname="sv:stations_list"/>
       
    93                 </layout>
       
    94             </widget>
       
    95             <layout type="anchor">
       
    96                 <anchoritem dst="sv:heading_banner" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
       
    97                 <anchoritem dst="sv:heading_banner" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
       
    98                 <anchoritem dst="sv:heading_banner" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
       
    99                 <anchoritem dst="sv:stacked_widget" dstEdge="TOP" spacing="0un" src="sv:heading_banner" srcEdge="BOTTOM"/>
       
   100                 <anchoritem dst="sv:stacked_widget" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
       
   101                 <anchoritem dst="sv:stacked_widget" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
       
   102                 <anchoritem dst="sv:stacked_widget" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
       
   103             </layout>
       
   104         </widget>
       
   105         <string name="title" locid="txt_rad_title_fm_radio"/>
       
   106     </widget>
       
   107 
       
   108     <widget name="sv:context_menu" type="HbMenu">
       
   109         <ref object="sv:play_action" role="HbMenu:addAction" />
       
   110         <ref object="sv:rename_action" role="HbMenu:addAction" />
       
   111         <ref object="sv:toggle_favorite_action" role="HbMenu:addAction" />
       
   112         <ref object="sv:delete_action" role="HbMenu:addAction" />
       
   113     </widget>
       
   114 
       
   115     <section name="show_scan_text">
       
   116         <widget name="sv:stations_list">
       
   117             <bool name="visible" value="FALSE"/>
       
   118         </widget>
       
   119         <widget name="sv:empty_container">
       
   120             <bool name="visible" value="TRUE"/>
       
   121         </widget>
       
   122         <widget name="sv:scan_button">
       
   123             <bool name="visible" value="TRUE"/>
       
   124         </widget>
       
   125     </section>
       
   126     <section name="hide_scan_text">
       
   127         <widget name="sv:stations_list">
       
   128             <bool name="visible" value="TRUE"/>
       
   129         </widget>
       
   130         <widget name="sv:empty_container">
       
   131             <bool name="visible" value="FALSE"/>
       
   132         </widget>
       
   133         <widget name="sv:scan_button">
       
   134             <bool name="visible" value="FALSE"/>
       
   135         </widget>
       
   136     </section>
       
   137     <section name="show_all_stations">
       
   138         <object name="sv:local_stations_button">
       
   139             <bool name="checked" value="TRUE"/>
       
   140         </object>
       
   141         <object name="sv:favorite_stations_button">
       
   142             <bool name="checked" value="FALSE"/>
       
   143         </object>
       
   144         <widget name="sv:heading_banner">
       
   145             <string name="heading" locid="txt_rad_subhead_all_stations" />
       
   146         </widget>
       
   147         <widget name="sv:scan_button">
       
   148             <bool name="visible" value="TRUE"/>
       
   149         </widget>
       
   150         <widget name="sv:empty_title">
       
   151             <string name="plainText" locid="txt_rad_info_no_stations" />
       
   152         </widget>
       
   153         <widget name="sv:empty_text">
       
   154             <string name="plainText" locid="txt_rad_info_no_stations_search_stations_automat" />
       
   155         </widget>
       
   156     </section>
       
   157     <section name="show_favorites">
       
   158         <object name="sv:local_stations_button">
       
   159             <bool name="checked" value="FALSE"/>
       
   160         </object>
       
   161         <object name="sv:favorite_stations_button">
       
   162             <bool name="checked" value="TRUE"/>
       
   163         </object>
       
   164         <widget name="sv:heading_banner">
       
   165             <string name="heading" locid="txt_rad_subhead_favorite_stations" />
       
   166         </widget>
       
   167         <widget name="sv:scan_button">
       
   168             <bool name="visible" value="FALSE"/>
       
   169         </widget>
       
   170         <widget name="sv:empty_title">
       
   171             <string name="plainText" locid="txt_rad_info_no_favourite_stations" />
       
   172         </widget>
       
   173         <widget name="sv:empty_text">
       
   174             <string name="plainText" locid="txt_rad_info_no_favourites_add_favourites_to_see" />
       
   175         </widget>
       
   176     </section>
       
   177     <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
       
   178         <uistate name="Common ui state" sections="#common"/>
       
   179     </metadata>
       
   180 </hbdocument>