radioapp/radiowidgets/res/layout/historyview.docml
branchGCC_SURGE
changeset 37 451b2e1545b2
parent 21 6bac020dcc51
parent 33 11b6825f0862
equal deleted inserted replaced
26:6bcf277166c1 37:451b2e1545b2
    12     <object name="exit_action" type="HbAction">
    12     <object name="exit_action" type="HbAction">
    13         <string locid="txt_common_opt_exit" name="text"/>
    13         <string locid="txt_common_opt_exit" name="text"/>
    14     </object>
    14     </object>
    15     <object name="hv:all_songs_button" type="HbAction">
    15     <object name="hv:all_songs_button" type="HbAction">
    16         <bool name="checkable" value="TRUE"/>
    16         <bool name="checkable" value="TRUE"/>
       
    17         <icon iconName="qtg_mono_radio_stations" name="icon"/>
    17         <string locid="txt_rad_button_recently_played_songs" name="text"/>
    18         <string locid="txt_rad_button_recently_played_songs" name="text"/>
    18     </object>
    19     </object>
    19     <object name="hv:tagged_songs_button" type="HbAction">
    20     <object name="hv:tagged_songs_button" type="HbAction">
    20         <bool name="checkable" value="TRUE"/>
    21         <bool name="checkable" value="TRUE"/>
       
    22         <icon iconName="qtg_mono_favourites" name="icon"/>
    21         <string locid="txt_rad_button_tagged_songs" name="text"/>
    23         <string locid="txt_rad_button_tagged_songs" name="text"/>
    22     </object>
    24     </object>
    23     <object name="hv:toggle_tag_action" type="HbAction">
    25     <object name="hv:toggle_tag_action" type="HbAction">
    24         <string locid="txt_rad_menu_tag_song" name="text"/>
    26         <string locid="txt_rad_menu_tag_song" name="text"/>
    25     </object>
    27     </object>
    26     <object name="hv:search_from_ovi_store_action" type="HbAction">
    28     <object name="hv:ovi_store_action" type="HbAction">
    27         <string locid="txt_rad_menu_search_from_music_store" name="text"/>
    29         <string locid="txt_rad_menu_search_from_music_store" name="text"/>
    28     </object>
    30     </object>
    29     <object name="hv:search_from_other_store_action" type="HbAction">
    31     <object name="hv:other_store_action" type="HbAction">
    30         <string locid="txt_rad_menu_search_from_other_store" name="text"/>
    32         <string value="Search from Amazon" name="text"/>
    31     </object>
    33     </object>
    32     <widget name="view" plugin="radiowidgetsplugin" type="RadioHistoryView">
    34 
    33         <icon name="nonTaggedIcon" iconName=":/images/qtg_mono_tag.svg" />
    35     <widget name="view" type="HbView">
    34         <icon name="taggedIcon" iconName=":/images/pri_small_tag.svg" />
    36         <icon name="nonTaggedIcon" iconName="qtg_mono_tag" />
    35         <widget name="hv:menu" role="HbView:menu" type="HbMenu">
    37         <icon name="taggedIcon" iconName="qtg_small_tag_inactive" />
    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">
    38         <widget name="hv:toolbar" role="HbView:toolBar" type="HbToolBar">
    42             <enums name="orientation" value="Horizontal"/>
    39             <enums name="orientation" value="Horizontal"/>
    43             <ref object="hv:all_songs_button" role="HbToolBar:addAction"/>
    40             <ref object="hv:all_songs_button" role="HbToolBar:addAction"/>
    44             <ref object="hv:tagged_songs_button" role="HbToolBar:addAction"/>
    41             <ref object="hv:tagged_songs_button" role="HbToolBar:addAction"/>
    45         </widget>
    42         </widget>
    46         <widget name="content" role="HbView:widget" type="HbWidget">
    43         <widget name="content" role="HbView:widget" type="HbWidget">
    47             <widget name="hv:heading_banner" plugin="radiowidgetsplugin" type="RadioBannerLabel">
    44             <widget name="hv:heading_banner" type="HbGroupBox">
    48                 <sizehint height="30" type="MAXIMUM"/>
    45                 <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Fixed" verticalStretch="0"/>
    49                 <string name="plainText" locid="txt_rad_subhead_play_history" />
    46                 <sizehint height="expr(var(hb-param-text-height-secondary)+2*var(hb-param-margin-gene-middle-vertical))" type="PREFERRED"/>
    50             </widget>            
    47                 <fontspec name="fontSpec" role="Secondary" textheight="var(hb-param-text-height-secondary)"/>
    51             <widget name="hv:stacked_widget" type="HbWidget">
    48                 <string name="heading" locid="txt_rad_subhead_play_history" />
    52                 <widget name="hv:history_list" type="HbListView">
       
    53                     <sizehint height="320" type="PREFERRED" width="240"/>
       
    54                     <bool name="visible" value="FALSE"/>
       
    55                 </widget>
       
    56                 <widget name="hv:empty_container" type="HbWidget">
       
    57                     <widget name="hv:empty_title" type="HbLabel">
       
    58                         <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    59                         <string locid="txt_rad_info_play_history_is_empty" name="plainText"/>
       
    60                         <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    61                     </widget>
       
    62                     <widget name="hv:empty_text" type="HbLabel">
       
    63                         <enums name="textWrapping" value="TextWordWrap"/>
       
    64                         <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    65                         <sizehint height="320" type="PREFERRED" width="240"/>
       
    66                         <string locid="txt_rad_info_recently_played_songs_collects_song2" name="plainText"/>
       
    67                         <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    68                     </widget>
       
    69                     <layout orientation="Vertical" spacing="var(hb-param-margin-gene-middle-vertical)" type="linear">
       
    70                         <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)"/>
       
    71                         <stretchitem stretchfactor="2"/>
       
    72                         <linearitem itemname="hv:empty_title"/>
       
    73                         <stretchitem stretchfactor="1"/>
       
    74                         <linearitem itemname="hv:empty_text"/>
       
    75                         <stretchitem stretchfactor="2"/>
       
    76                     </layout>
       
    77                 </widget>
       
    78                 <layout type="stacked">
       
    79                     <stackitem itemname="hv:history_list"/>
       
    80                     <stackitem itemname="hv:empty_container"/>
       
    81                 </layout>
       
    82             </widget>
    49             </widget>
       
    50             <widget name="hv:stacked_widget" type="HbWidget" />
    83             <layout type="anchor">
    51             <layout type="anchor">
    84                 <anchoritem dst="hv:heading_banner" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
    52                 <anchoritem dst="hv:heading_banner" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
    85                 <anchoritem dst="hv:heading_banner" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
    53                 <anchoritem dst="hv:heading_banner" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
    86                 <anchoritem dst="hv:heading_banner" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
    54                 <anchoritem dst="hv:heading_banner" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
    87                 <anchoritem dst="hv:stacked_widget" dstEdge="TOP" spacing="0un" src="hv:heading_banner" srcEdge="BOTTOM"/>
    55                 <anchoritem dst="hv:stacked_widget" dstEdge="TOP" spacing="0un" src="hv:heading_banner" srcEdge="BOTTOM"/>
    92         </widget>
    60         </widget>
    93         <string locid="txt_rad_title_fm_radio" name="title"/>
    61         <string locid="txt_rad_title_fm_radio" name="title"/>
    94     </widget>
    62     </widget>
    95     <widget name="hv:context_menu" type="HbMenu">
    63     <widget name="hv:context_menu" type="HbMenu">
    96         <ref object="hv:toggle_tag_action" role="HbMenu:addAction"/>
    64         <ref object="hv:toggle_tag_action" role="HbMenu:addAction"/>
    97         <ref object="hv:search_from_ovi_store_action" role="HbMenu:addAction"/>
    65         <ref object="hv:ovi_store_action" role="HbMenu:addAction"/>
    98         <ref object="hv:search_from_other_store_action" role="HbMenu:addAction"/>
    66         <ref object="hv:other_store_action" role="HbMenu:addAction"/>
    99     </widget>
    67     </widget>
   100     <connect receiver="view" sender="exit_action" signal="triggered()" slot="quit()"/>
    68     
   101     <connect receiver="hv:tagged_songs_button" sender="hv:all_songs_button" signal="triggered()" slot="toggle()"/>
    69     <!-- Section to do lazy initialization of the view -->
   102     <connect receiver="hv:all_songs_button" sender="hv:tagged_songs_button" signal="triggered()" slot="toggle()"/>
    70     <section name="lazy_load">
   103     <connect receiver="view" sender="hv:history_list" signal="activated(QModelIndex)" slot="showContextMenu(QModelIndex)"/>
    71         <widget name="view">
   104     <connect receiver="view" sender="hv:toggle_tag_action" signal="triggered()" slot="toggleTagging()"/>
    72             <widget name="hv:menu" role="HbView:menu" type="HbMenu">
   105     <connect receiver="view" sender="hv:search_from_ovi_store_action" signal="triggered()" slot="openOviStore()"/>
    73                 <ref object="hv:clear_list_action" role="HbMenu:addAction"/>
   106     <connect receiver="view" sender="hv:search_from_other_store_action" signal="triggered()" slot="openOtherStore()"/>
    74                 <ref object="hv:add_songs_action" role="HbMenu:addAction"/>
       
    75                 <ref object="loudspeaker_action" role="HbMenu:addAction"/>
       
    76                 <ref object="exit_action" role="HbMenu:addAction"/>
       
    77             </widget>
       
    78         </widget>
       
    79         
       
    80         <widget name="hv:stacked_widget">
       
    81             <widget name="hv:history_list" type="HbListView">
       
    82                 <sizehint height="320" type="PREFERRED" width="240"/>
       
    83             </widget>
       
    84             <widget name="hv:empty_container" type="HbWidget">
       
    85                 <bool name="visible" value="FALSE"/>
       
    86                 <widget name="hv:empty_title" type="HbLabel">
       
    87                     <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    88                     <string locid="txt_rad_info_play_history_is_empty" name="plainText"/>
       
    89                     <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    90                 </widget>
       
    91                 <widget name="hv:empty_text" type="HbLabel">
       
    92                     <enums name="textWrapping" value="TextWordWrap"/>
       
    93                     <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
       
    94                     <sizehint height="320" type="PREFERRED" width="240"/>
       
    95                     <string locid="txt_rad_info_recently_played_songs_collects_song2" name="plainText"/>
       
    96                     <fontspec name="fontSpec" role="Title" textheight="33.5"/>
       
    97                 </widget>
       
    98                 <layout orientation="Vertical" spacing="var(hb-param-margin-gene-middle-vertical)" type="linear">
       
    99                     <contentsmargins bottom="var(hb-param-margin-gene-bottom)" left="var(hb-param-margin-gene-left)" 
       
   100                                      right="var(hb-param-margin-gene-right)" top="var(hb-param-margin-gene-top)"/>
       
   101                     <stretchitem stretchfactor="2"/>
       
   102                     <linearitem itemname="hv:empty_title"/>
       
   103                     <stretchitem stretchfactor="1"/>
       
   104                     <linearitem itemname="hv:empty_text"/>
       
   105                     <stretchitem stretchfactor="2"/>
       
   106                 </layout>
       
   107             </widget>
       
   108             <layout type="stacked">
       
   109                 <stackitem itemname="hv:history_list"/>
       
   110                 <stackitem itemname="hv:empty_container"/>
       
   111             </layout>
       
   112         </widget>
       
   113     </section>
       
   114     
   107     <section name="hv:show_list">
   115     <section name="hv:show_list">
   108         <widget name="hv:history_list">
   116         <widget name="hv:history_list">
   109             <bool name="visible" value="TRUE"/>
   117             <bool name="visible" value="TRUE"/>
   110         </widget>
   118         </widget>
   111         <widget name="hv:empty_container">
   119         <widget name="hv:empty_container">
   135         </object>
   143         </object>
   136         <widget name="hv:empty_text">
   144         <widget name="hv:empty_text">
   137             <string locid="txt_rad_info_recently_played_songs_collects_song2" name="plainText"/>
   145             <string locid="txt_rad_info_recently_played_songs_collects_song2" name="plainText"/>
   138         </widget>
   146         </widget>
   139         <widget name="hv:heading_banner">
   147         <widget name="hv:heading_banner">
   140             <string name="plainText" locid="txt_rad_subhead_play_history" />
   148             <string name="heading" locid="txt_rad_subhead_play_history" />
   141         </widget>
   149         </widget>
   142     </section>
   150     </section>
   143     <section name="hv:tagged_mode">
   151     <section name="hv:tagged_mode">
   144         <object name="hv:all_songs_button">
   152         <object name="hv:all_songs_button">
   145             <bool name="checked" value="FALSE"/>
   153             <bool name="checked" value="FALSE"/>
   149         </object>
   157         </object>
   150         <widget name="hv:empty_text">
   158         <widget name="hv:empty_text">
   151             <string locid="txt_rad_info_you_can_add_song_to_the_tagged_songs" name="plainText"/>
   159             <string locid="txt_rad_info_you_can_add_song_to_the_tagged_songs" name="plainText"/>
   152         </widget>
   160         </widget>
   153         <widget name="hv:heading_banner">
   161         <widget name="hv:heading_banner">
   154             <string name="plainText" locid="txt_rad_button_tagged_songs" />
   162             <string name="heading" locid="txt_rad_button_tagged_songs" />
   155         </widget>
   163         </widget>
   156     </section>
   164     </section>
   157     <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
   165     <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
   158         <uistate name="Common ui state" sections="#common"/>
   166         <uistate name="Common ui state" sections="#common"/>
   159         <dummydata objectName="hv:history_list" section="#common" value="app_list_template5"/>
   167         <dummydata objectName="hv:history_list" section="#common" value="app_list_template5"/>