radioapp/radiowidgets/res/layout/stationsview.docml
author Pat Downey <patd@symbian.org>
Tue, 11 May 2010 12:31:43 +0100
changeset 17 2cf3bab7c5c6
child 21 6bac020dcc51
permissions -rw-r--r--
Add missing docml files.

<?xml version="1.0" encoding="UTF-8"?>
<hbdocument context="RadioStationsView" version="0.9">
    <object name="sv:scan_action" type="HbAction">
        <string name="text" locid="txt_rad_opt_search_all_stations" />
    </object>
    <object name="sv:clear_list_action" type="HbAction">
        <string name="text" locid="txt_rad_opt_clear_list" />
    </object>
    <object name="loudspeaker_action" type="HbAction">
        <string name="text" locid="txt_common_opt_activate_loudspeaker" />
    </object>
    <object name="exit_action" type="HbAction">
        <string name="text" locid="txt_common_opt_exit" />
    </object>
    <object name="sv:play_action" type="HbAction">
        <string name="text" locid="txt_common_menu_play_music" />
    </object>
    <object name="sv:rename_action" type="HbAction">
        <string name="text" locid="txt_common_menu_rename_item" />
    </object>
    <object name="sv:toggle_favorite_action" type="HbAction">
        <string name="text" locid="txt_rad_menu_add_to_favourites" />
    </object>
    <object name="sv:delete_action" type="HbAction">
        <string name="text" locid="txt_common_menu_delete" />
    </object>    
    <object name="sv:local_stations_button" type="HbAction">
        <bool name="checkable" value="TRUE"/>
        <icon iconName=":/images/removefavoriteicon.png" name="icon"/>
        <string name="text" locid="txt_rad_button_local_stations" />
    </object>
    <object name="sv:favorite_stations_button" type="HbAction">
        <bool name="checkable" value="TRUE"/>
        <icon iconName=":/images/setfavoriteicon.png" name="icon"/>
        <string name="text" locid="txt_rad_button_favourites" />
    </object>
    <widget name="view" plugin="radiowidgetsplugin" type="RadioStationsView">
        <icon name="nowPlayingIcon" iconName=":/images/nowplayingicon.png" />
        <icon name="favoriteIcon" iconName=":/images/setfavoriteicon.png" />
        <widget name="mMenu" role="HbView:menu" type="HbMenu">
            <ref object="sv:scan_action" role="HbMenu:addAction"/>
            <ref object="sv:clear_list_action" role="HbMenu:addAction"/>
            <ref object="loudspeaker_action" role="HbMenu:addAction"/>
            <ref object="exit_action" role="HbMenu:addAction"/>
        </widget>
        <widget name="sv:toolbar" role="HbView:toolBar" type="HbToolBar">
            <enums name="orientation" value="Horizontal"/>
            <ref object="sv:local_stations_button" role="HbToolBar:addAction"/>
            <ref object="sv:favorite_stations_button" role="HbToolBar:addAction"/>
        </widget>
        <widget name="content" role="HbView:widget" type="HbWidget">
            <widget name="sv:heading_banner" plugin="radiowidgetsplugin" type="RadioBannerLabel">
                <sizehint height="30" type="MAXIMUM"/>
                <string name="text" locid="txt_rad_subhead_all_stations" />
            </widget>
            <widget name="sv:stacked_widget" type="HbWidget">
                <widget name="sv:stations_list" type="HbListView">
                    <sizehint height="320" type="PREFERRED" width="240"/>
                    <bool name="visible" value="FALSE"/>
                </widget>
                <widget name="sv:scan_button" type="HbPushButton">
                    <string name="text" locid="txt_rad_info_no_stations_search_stations_automat" />                    
                    <string name="state" value="normal"/>
                    <icon name="background" value=" " />
                </widget>
                <layout type="stacked">
                    <stackitem itemname="sv:stations_list"/>
                    <stackitem itemname="sv:scan_button"/>
                </layout>
            </widget>
            <layout type="anchor">
                <anchoritem dst="sv:heading_banner" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
                <anchoritem dst="sv:heading_banner" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
                <anchoritem dst="sv:heading_banner" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
                <anchoritem dst="sv:stacked_widget" dstEdge="TOP" spacing="0un" src="sv:heading_banner" srcEdge="BOTTOM"/>
                <anchoritem dst="sv:stacked_widget" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
                <anchoritem dst="sv:stacked_widget" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
                <anchoritem dst="sv:stacked_widget" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
            </layout>
        </widget>
        <string name="title" locid="txt_rad_title_fm_radio"/>
    </widget>
    <connect receiver="view" sender="sv:scan_action" signal="triggered()" slot="startScanning()"/>
    <connect receiver="view" sender="sv:scan_button" signal="clicked()" slot="startScanning()"/>
    <connect receiver="view" sender="exit_action" signal="triggered()" slot="quit()"/>
    <connect receiver="view" sender="sv:stations_list" signal="pressed(QModelIndex)" slot="listItemClicked(QModelIndex)"/>
    <connect receiver="view" sender="sv:stations_list" signal="longPressed(HbAbstractViewItem*,const QPointF)" slot="listItemLongPressed(HbAbstractViewItem*,const QPointF)"/>
    <connect receiver="sv:favorite_stations_button" sender="sv:local_stations_button" signal="triggered()" slot="toggle()"/>
    <connect receiver="sv:local_stations_button" sender="sv:favorite_stations_button" signal="triggered()" slot="toggle()"/>

    <widget name="sv:context_menu" type="HbMenu">
        <ref object="sv:play_action" role="HbMenu:addAction" />
        <ref object="sv:rename_action" role="HbMenu:addAction" />
        <ref object="sv:toggle_favorite_action" role="HbMenu:addAction" />
        <ref object="sv:delete_action" role="HbMenu:addAction" />
    </widget>
    <connect receiver="view" sender="sv:rename_action" signal="triggered()" slot="rename()"/>
    <connect receiver="view" sender="sv:toggle_favorite_action" signal="triggered()" slot="toggleFavorite()"/>
    <connect receiver="view" sender="sv:delete_action" signal="triggered()" slot="deleteStation()"/>
    <section name="show_scan_text">
        <widget name="sv:stations_list">
            <bool name="visible" value="FALSE"/>
        </widget>
        <widget name="sv:scan_button">
            <bool name="visible" value="TRUE"/>
        </widget>
    </section>
    <section name="hide_scan_text">
        <widget name="sv:stations_list">
            <bool name="visible" value="TRUE"/>
        </widget>
        <widget name="sv:scan_button">
            <bool name="visible" value="FALSE"/>
        </widget>
    </section>
    <section name="show_all_stations">
        <object name="sv:local_stations_button">
            <bool name="checked" value="TRUE"/>
        </object>
        <object name="sv:favorite_stations_button">
            <bool name="checked" value="FALSE"/>
        </object>
        <widget name="sv:heading_banner">
            <string name="plainText" locid="txt_rad_subhead_all_stations" />
        </widget>
        <widget name="sv:scan_button">
            <string name="text" locid="txt_rad_info_no_stations_search_stations_automat" />                                                            
        </widget>        
    </section>
    <section name="show_favorites">
        <object name="sv:local_stations_button">
            <bool name="checked" value="FALSE"/>
        </object>
        <object name="sv:favorite_stations_button">
            <bool name="checked" value="TRUE"/>
        </object>
        <widget name="sv:heading_banner">
            <string name="plainText" locid="txt_rad_subhead_favorite_stations" />
        </widget>
        <widget name="sv:scan_button">
            <string name="text" locid="txt_rad_info_no_favourite_stations" />                                                            
        </widget>
    </section>
    <metadata activeUIState="Common ui state" display="NHD portrait" unit="un">
        <uistate name="Common ui state" sections="#common"/>
    </metadata>
</hbdocument>