24 <object name="sv:delete_action" type="HbAction"> |
24 <object name="sv:delete_action" type="HbAction"> |
25 <string name="text" locid="txt_common_menu_delete" /> |
25 <string name="text" locid="txt_common_menu_delete" /> |
26 </object> |
26 </object> |
27 <object name="sv:local_stations_button" type="HbAction"> |
27 <object name="sv:local_stations_button" type="HbAction"> |
28 <bool name="checkable" value="TRUE"/> |
28 <bool name="checkable" value="TRUE"/> |
29 <icon iconName=":/images/removefavoriteicon.png" name="icon"/> |
29 <icon iconName="qtg_mono_radio_stations" name="icon"/> |
30 <string name="text" locid="txt_rad_button_local_stations" /> |
30 <string name="text" locid="txt_rad_button_local_stations" /> |
31 </object> |
31 </object> |
32 <object name="sv:favorite_stations_button" type="HbAction"> |
32 <object name="sv:favorite_stations_button" type="HbAction"> |
33 <bool name="checkable" value="TRUE"/> |
33 <bool name="checkable" value="TRUE"/> |
34 <icon iconName=":/images/setfavoriteicon.png" name="icon"/> |
34 <icon iconName="qtg_mono_favourites" name="icon"/> |
35 <string name="text" locid="txt_rad_button_favourites" /> |
35 <string name="text" locid="txt_rad_button_favourites" /> |
36 </object> |
36 </object> |
37 <widget name="view" plugin="radiowidgetsplugin" type="RadioStationsView"> |
37 <widget name="view" type="HbView"> |
38 <icon name="nowPlayingIcon" iconName=":/images/nowplayingicon.png" /> |
38 <icon name="nowPlayingIcon" iconName="qtg_mono_play" /> |
39 <icon name="favoriteIcon" iconName=":/images/setfavoriteicon.png" /> |
39 <icon name="favoriteIcon" iconName="qtg_small_favorite" /> |
40 <widget name="mMenu" role="HbView:menu" type="HbMenu"> |
40 <widget name="mMenu" role="HbView:menu" type="HbMenu"> |
41 <ref object="sv:scan_action" role="HbMenu:addAction"/> |
41 <ref object="sv:scan_action" role="HbMenu:addAction"/> |
42 <ref object="sv:clear_list_action" role="HbMenu:addAction"/> |
42 <ref object="sv:clear_list_action" role="HbMenu:addAction"/> |
43 <ref object="loudspeaker_action" role="HbMenu:addAction"/> |
43 <ref object="loudspeaker_action" role="HbMenu:addAction"/> |
44 <ref object="exit_action" role="HbMenu:addAction"/> |
44 <ref object="exit_action" role="HbMenu:addAction"/> |
47 <enums name="orientation" value="Horizontal"/> |
47 <enums name="orientation" value="Horizontal"/> |
48 <ref object="sv:local_stations_button" role="HbToolBar:addAction"/> |
48 <ref object="sv:local_stations_button" role="HbToolBar:addAction"/> |
49 <ref object="sv:favorite_stations_button" role="HbToolBar:addAction"/> |
49 <ref object="sv:favorite_stations_button" role="HbToolBar:addAction"/> |
50 </widget> |
50 </widget> |
51 <widget name="content" role="HbView:widget" type="HbWidget"> |
51 <widget name="content" role="HbView:widget" type="HbWidget"> |
52 <widget name="sv:heading_banner" plugin="radiowidgetsplugin" type="RadioBannerLabel"> |
52 <widget name="sv:heading_banner" type="HbGroupBox"> |
53 <sizehint height="30" type="MAXIMUM"/> |
53 <sizepolicy horizontalPolicy="Expanding" horizontalStretch="0" verticalPolicy="Fixed" verticalStretch="0"/> |
54 <string name="plainText" locid="txt_rad_subhead_all_stations" /> |
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" /> |
55 </widget> |
57 </widget> |
56 <widget name="sv:stacked_widget" type="HbWidget"> |
58 <widget name="sv:stacked_widget" type="HbWidget"> |
57 <widget name="sv:scan_button" type="HbPushButton"> |
59 <widget name="sv:scan_button" type="HbPushButton"> |
58 <bool name="visible" value="TRUE"/> |
60 <bool name="visible" value="FALSE"/> |
59 </widget> |
61 </widget> |
60 <widget name="sv:empty_container" type="HbWidget"> |
62 <widget name="sv:empty_container" type="HbWidget"> |
61 <bool name="visible" value="FALSE"/> |
63 <bool name="visible" value="FALSE"/> |
62 <widget name="sv:empty_title" type="HbLabel"> |
64 <widget name="sv:empty_title" type="HbLabel"> |
63 <enums name="alignment" value="AlignVCenter|AlignHCenter"/> |
65 <enums name="alignment" value="AlignVCenter|AlignHCenter"/> |
100 <anchoritem dst="sv:stacked_widget" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/> |
102 <anchoritem dst="sv:stacked_widget" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/> |
101 </layout> |
103 </layout> |
102 </widget> |
104 </widget> |
103 <string name="title" locid="txt_rad_title_fm_radio"/> |
105 <string name="title" locid="txt_rad_title_fm_radio"/> |
104 </widget> |
106 </widget> |
105 <connect receiver="view" sender="sv:scan_action" signal="triggered()" slot="startScanning()"/> |
|
106 <connect receiver="view" sender="sv:scan_button" signal="clicked()" slot="startScanning()"/> |
|
107 <connect receiver="view" sender="exit_action" signal="triggered()" slot="quit()"/> |
|
108 <connect receiver="view" sender="sv:stations_list" signal="pressed(QModelIndex)" slot="listItemClicked(QModelIndex)"/> |
|
109 <connect receiver="view" sender="sv:stations_list" signal="longPressed(HbAbstractViewItem*,const QPointF)" slot="listItemLongPressed(HbAbstractViewItem*,const QPointF)"/> |
|
110 <connect receiver="sv:favorite_stations_button" sender="sv:local_stations_button" signal="triggered()" slot="toggle()"/> |
|
111 <connect receiver="sv:local_stations_button" sender="sv:favorite_stations_button" signal="triggered()" slot="toggle()"/> |
|
112 |
107 |
113 <widget name="sv:context_menu" type="HbMenu"> |
108 <widget name="sv:context_menu" type="HbMenu"> |
114 <ref object="sv:play_action" role="HbMenu:addAction" /> |
109 <ref object="sv:play_action" role="HbMenu:addAction" /> |
115 <ref object="sv:rename_action" role="HbMenu:addAction" /> |
110 <ref object="sv:rename_action" role="HbMenu:addAction" /> |
116 <ref object="sv:toggle_favorite_action" role="HbMenu:addAction" /> |
111 <ref object="sv:toggle_favorite_action" role="HbMenu:addAction" /> |
117 <ref object="sv:delete_action" role="HbMenu:addAction" /> |
112 <ref object="sv:delete_action" role="HbMenu:addAction" /> |
118 </widget> |
113 </widget> |
119 <connect receiver="view" sender="sv:rename_action" signal="triggered()" slot="rename()"/> |
|
120 <connect receiver="view" sender="sv:toggle_favorite_action" signal="triggered()" slot="toggleFavorite()"/> |
|
121 <connect receiver="view" sender="sv:delete_action" signal="triggered()" slot="deleteStation()"/> |
|
122 |
114 |
123 <section name="show_scan_text"> |
115 <section name="show_scan_text"> |
124 <widget name="sv:stations_list"> |
116 <widget name="sv:stations_list"> |
125 <bool name="visible" value="FALSE"/> |
117 <bool name="visible" value="FALSE"/> |
126 </widget> |
118 </widget> |
127 <widget name="sv:empty_container"> |
119 <widget name="sv:empty_container"> |
128 <bool name="visible" value="TRUE"/> |
120 <bool name="visible" value="TRUE"/> |
129 </widget> |
121 </widget> |
|
122 <widget name="sv:scan_button"> |
|
123 <bool name="visible" value="TRUE"/> |
|
124 </widget> |
130 </section> |
125 </section> |
131 <section name="hide_scan_text"> |
126 <section name="hide_scan_text"> |
132 <widget name="sv:stations_list"> |
127 <widget name="sv:stations_list"> |
133 <bool name="visible" value="TRUE"/> |
128 <bool name="visible" value="TRUE"/> |
134 </widget> |
129 </widget> |
135 <widget name="sv:empty_container"> |
130 <widget name="sv:empty_container"> |
|
131 <bool name="visible" value="FALSE"/> |
|
132 </widget> |
|
133 <widget name="sv:scan_button"> |
136 <bool name="visible" value="FALSE"/> |
134 <bool name="visible" value="FALSE"/> |
137 </widget> |
135 </widget> |
138 </section> |
136 </section> |
139 <section name="show_all_stations"> |
137 <section name="show_all_stations"> |
140 <object name="sv:local_stations_button"> |
138 <object name="sv:local_stations_button"> |
142 </object> |
140 </object> |
143 <object name="sv:favorite_stations_button"> |
141 <object name="sv:favorite_stations_button"> |
144 <bool name="checked" value="FALSE"/> |
142 <bool name="checked" value="FALSE"/> |
145 </object> |
143 </object> |
146 <widget name="sv:heading_banner"> |
144 <widget name="sv:heading_banner"> |
147 <string name="plainText" locid="txt_rad_subhead_all_stations" /> |
145 <string name="heading" locid="txt_rad_subhead_all_stations" /> |
148 </widget> |
146 </widget> |
149 <widget name="sv:scan_button"> |
147 <widget name="sv:scan_button"> |
150 <bool name="visible" value="TRUE"/> |
148 <bool name="visible" value="TRUE"/> |
151 </widget> |
149 </widget> |
152 <widget name="sv:empty_title"> |
150 <widget name="sv:empty_title"> |
162 </object> |
160 </object> |
163 <object name="sv:favorite_stations_button"> |
161 <object name="sv:favorite_stations_button"> |
164 <bool name="checked" value="TRUE"/> |
162 <bool name="checked" value="TRUE"/> |
165 </object> |
163 </object> |
166 <widget name="sv:heading_banner"> |
164 <widget name="sv:heading_banner"> |
167 <string name="plainText" locid="txt_rad_subhead_favorite_stations" /> |
165 <string name="heading" locid="txt_rad_subhead_favorite_stations" /> |
168 </widget> |
166 </widget> |
169 <widget name="sv:scan_button"> |
167 <widget name="sv:scan_button"> |
170 <bool name="visible" value="FALSE"/> |
168 <bool name="visible" value="FALSE"/> |
171 </widget> |
169 </widget> |
172 <widget name="sv:empty_title"> |
170 <widget name="sv:empty_title"> |