radioapp/radiowidgets/res/layout/historyview.docml
changeset 32 189d20c34778
parent 28 075425b8d9a4
child 33 11b6825f0862
equal deleted inserted replaced
28:075425b8d9a4 32:189d20c34778
    24         <string locid="txt_rad_menu_tag_song" name="text"/>
    24         <string locid="txt_rad_menu_tag_song" name="text"/>
    25     </object>
    25     </object>
    26     <object name="hv:ovi_store_action" type="HbAction">
    26     <object name="hv:ovi_store_action" type="HbAction">
    27         <string locid="txt_rad_menu_search_from_music_store" name="text"/>
    27         <string locid="txt_rad_menu_search_from_music_store" name="text"/>
    28     </object>
    28     </object>
    29     <object name="hv:search_from_other_store_action" type="HbAction">
    29     <object name="hv:other_store_action" type="HbAction">
    30         <string locid="txt_rad_menu_search_from_other_store" name="text"/>
    30         <string value="Search from Amazon" name="text"/>
    31     </object>
    31     </object>
       
    32 
    32     <widget name="view" type="HbView">
    33     <widget name="view" type="HbView">
    33         <icon name="nonTaggedIcon" iconName=":/images/qtg_mono_tag.svg" />
    34         <icon name="nonTaggedIcon" iconName=":/images/qtg_mono_tag.svg" />
    34         <icon name="taggedIcon" iconName=":/images/pri_small_tag.svg" />
    35         <icon name="taggedIcon" iconName=":/images/pri_small_tag.svg" />
    35         <widget name="hv:menu" role="HbView:menu" type="HbMenu">
       
    36             <ref object="hv:clear_list_action" role="HbMenu:addAction"/>
       
    37             <ref object="hv:add_songs_action" role="HbMenu:addAction"/>
       
    38             <ref object="loudspeaker_action" role="HbMenu:addAction"/>
       
    39             <ref object="exit_action" role="HbMenu:addAction"/>
       
    40         </widget>
       
    41         <widget name="hv:toolbar" role="HbView:toolBar" type="HbToolBar">
    36         <widget name="hv:toolbar" role="HbView:toolBar" type="HbToolBar">
    42             <enums name="orientation" value="Horizontal"/>
    37             <enums name="orientation" value="Horizontal"/>
    43             <ref object="hv:all_songs_button" role="HbToolBar:addAction"/>
    38             <ref object="hv:all_songs_button" role="HbToolBar:addAction"/>
    44             <ref object="hv:tagged_songs_button" role="HbToolBar:addAction"/>
    39             <ref object="hv:tagged_songs_button" role="HbToolBar:addAction"/>
    45         </widget>
    40         </widget>
    48                 <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Fixed" verticalStretch="0"/>
    43                 <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Fixed" verticalStretch="0"/>
    49                 <sizehint height="expr(var(hb-param-text-height-secondary)+2*var(hb-param-margin-gene-middle-vertical))" type="PREFERRED"/>
    44                 <sizehint height="expr(var(hb-param-text-height-secondary)+2*var(hb-param-margin-gene-middle-vertical))" type="PREFERRED"/>
    50                 <fontspec name="fontSpec" role="Secondary" textheight="var(hb-param-text-height-secondary)"/>
    45                 <fontspec name="fontSpec" role="Secondary" textheight="var(hb-param-text-height-secondary)"/>
    51                 <string name="heading" locid="txt_rad_subhead_play_history" />
    46                 <string name="heading" locid="txt_rad_subhead_play_history" />
    52             </widget>
    47             </widget>
    53             <widget name="hv:stacked_widget" type="HbWidget">
    48             <widget name="hv:stacked_widget" type="HbWidget" />
    54                 <widget name="hv:history_list" type="HbListView">
       
    55                     <sizehint height="320" type="PREFERRED" width="240"/>
       
    56                     <bool name="visible" value="FALSE"/>
       
    57                 </widget>
       
    58                 <widget name="hv:empty_container" type="HbWidget">
       
    59                     <widget name="hv:empty_title" type="HbLabel">
       
    60                         <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    61                         <string locid="txt_rad_info_play_history_is_empty" name="plainText"/>
       
    62                         <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    63                     </widget>
       
    64                     <widget name="hv:empty_text" type="HbLabel">
       
    65                         <enums name="textWrapping" value="TextWordWrap"/>
       
    66                         <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    67                         <sizehint height="320" type="PREFERRED" width="240"/>
       
    68                         <string locid="txt_rad_info_recently_played_songs_collects_song2" name="plainText"/>
       
    69                         <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    70                     </widget>
       
    71                     <layout orientation="Vertical" spacing="var(hb-param-margin-gene-middle-vertical)" type="linear">
       
    72                         <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)"/>
       
    73                         <stretchitem stretchfactor="2"/>
       
    74                         <linearitem itemname="hv:empty_title"/>
       
    75                         <stretchitem stretchfactor="1"/>
       
    76                         <linearitem itemname="hv:empty_text"/>
       
    77                         <stretchitem stretchfactor="2"/>
       
    78                     </layout>
       
    79                 </widget>
       
    80                 <layout type="stacked">
       
    81                     <stackitem itemname="hv:history_list"/>
       
    82                     <stackitem itemname="hv:empty_container"/>
       
    83                 </layout>
       
    84             </widget>
       
    85             <layout type="anchor">
    49             <layout type="anchor">
    86                 <anchoritem dst="hv:heading_banner" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
    50                 <anchoritem dst="hv:heading_banner" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
    87                 <anchoritem dst="hv:heading_banner" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
    51                 <anchoritem dst="hv:heading_banner" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
    88                 <anchoritem dst="hv:heading_banner" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
    52                 <anchoritem dst="hv:heading_banner" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
    89                 <anchoritem dst="hv:stacked_widget" dstEdge="TOP" spacing="0un" src="hv:heading_banner" srcEdge="BOTTOM"/>
    53                 <anchoritem dst="hv:stacked_widget" dstEdge="TOP" spacing="0un" src="hv:heading_banner" srcEdge="BOTTOM"/>
    95         <string locid="txt_rad_title_fm_radio" name="title"/>
    59         <string locid="txt_rad_title_fm_radio" name="title"/>
    96     </widget>
    60     </widget>
    97     <widget name="hv:context_menu" type="HbMenu">
    61     <widget name="hv:context_menu" type="HbMenu">
    98         <ref object="hv:toggle_tag_action" role="HbMenu:addAction"/>
    62         <ref object="hv:toggle_tag_action" role="HbMenu:addAction"/>
    99         <ref object="hv:ovi_store_action" role="HbMenu:addAction"/>
    63         <ref object="hv:ovi_store_action" role="HbMenu:addAction"/>
       
    64         <ref object="hv:other_store_action" role="HbMenu:addAction"/>
   100     </widget>
    65     </widget>
       
    66     
       
    67     <!-- Section to do lazy initialization of the view -->
       
    68     <section name="lazy_load">
       
    69         <widget name="view">
       
    70             <widget name="hv:menu" role="HbView:menu" type="HbMenu">
       
    71                 <ref object="hv:clear_list_action" role="HbMenu:addAction"/>
       
    72                 <ref object="hv:add_songs_action" role="HbMenu:addAction"/>
       
    73                 <ref object="loudspeaker_action" role="HbMenu:addAction"/>
       
    74                 <ref object="exit_action" role="HbMenu:addAction"/>
       
    75             </widget>
       
    76         </widget>
       
    77         
       
    78         <widget name="hv:stacked_widget">
       
    79             <widget name="hv:history_list" type="HbListView">
       
    80                 <sizehint height="320" type="PREFERRED" width="240"/>
       
    81             </widget>
       
    82             <widget name="hv:empty_container" type="HbWidget">
       
    83                 <bool name="visible" value="FALSE"/>
       
    84                 <widget name="hv:empty_title" type="HbLabel">
       
    85                     <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    86                     <string locid="txt_rad_info_play_history_is_empty" name="plainText"/>
       
    87                     <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    88                 </widget>
       
    89                 <widget name="hv:empty_text" type="HbLabel">
       
    90                     <enums name="textWrapping" value="TextWordWrap"/>
       
    91                     <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    92                     <sizehint height="320" type="PREFERRED" width="240"/>
       
    93                     <string locid="txt_rad_info_recently_played_songs_collects_song2" name="plainText"/>
       
    94                     <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    95                 </widget>
       
    96                 <layout orientation="Vertical" spacing="var(hb-param-margin-gene-middle-vertical)" type="linear">
       
    97                     <contentsmargins bottom="var(hb-param-margin-gene-bottom)" left="var(hb-param-margin-gene-left)" 
       
    98                                      right="var(hb-param-margin-gene-right)" top="var(hb-param-margin-gene-top)"/>
       
    99                     <stretchitem stretchfactor="2"/>
       
   100                     <linearitem itemname="hv:empty_title"/>
       
   101                     <stretchitem stretchfactor="1"/>
       
   102                     <linearitem itemname="hv:empty_text"/>
       
   103                     <stretchitem stretchfactor="2"/>
       
   104                 </layout>
       
   105             </widget>
       
   106             <layout type="stacked">
       
   107                 <stackitem itemname="hv:history_list"/>
       
   108                 <stackitem itemname="hv:empty_container"/>
       
   109             </layout>
       
   110         </widget>
       
   111     </section>
       
   112     
   101     <section name="hv:show_list">
   113     <section name="hv:show_list">
   102         <widget name="hv:history_list">
   114         <widget name="hv:history_list">
   103             <bool name="visible" value="TRUE"/>
   115             <bool name="visible" value="TRUE"/>
   104         </widget>
   116         </widget>
   105         <widget name="hv:empty_container">
   117         <widget name="hv:empty_container">