cbs/cbsui/resources/Copy of cbs_app.docml
author hgs
Fri, 06 Aug 2010 13:08:23 +0300
changeset 36 7c428525956b
parent 33 8d5d7fcf9b59
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
hgs
parents:
diff changeset
     1
<hbdocument version="0.1" context="cbs_app_xml">
 <object name="t:config" type="QObject">
    <object name="t:settings" type="HbAction">
    <localizedstring name="text" value="Settings" comment="txt_cbs_settings" /> 
    </object>
    <object name="t:exit" type="HbAction">
    <localizedstring name="text" value="Exit" comment="txt_cbs_exit" /> 
    </object>
    <object name="t:help" type="HbAction">
    <localizedstring name="text" value="Help" comment="txt_cbs_help" /> 
    </object>
    <object name="t:toggle_reception" type="HbAction">
    <localizedstring name="text" value="Activate" comment="txt_cbs_activate" /> 
    </object>
    <object name="t:add_topic" type="HbAction">
    <localizedstring name="text" value="Add topic" comment="txt_cbs_add_topic" /> 
    </object>
    </object>

    <object name="t:open" type="HbAction">
    <localizedstring name="text" value="Open" comment="txt_cbs_open" /> 
    </object>
    
    <object name="t:subscribe" type="HbAction">
    <localizedstring name="text" value="Subscribe" comment="txt_cbs_subscribe" /> 
    </object>
    
    <object name="t:unsubscribe" type="HbAction">
    <localizedstring name="text" value="Unsubscribe" comment="txt_cbs_unsubscribe" /> 
    </object>
    <object name="t:hotmark" type="HbAction">
    <localizedstring name="text" value="Hotmark" comment="txt_cbs_hotmark"/> 
    </object>
        <object name="t:unhotmark" type="HbAction">
    <localizedstring name="text" value="Unhotmark" comment="txt_cbs_unhotmark"/> 
    </object>
    <object name="t:delete" type="HbAction">
    <localizedstring name="text" value="Delete" comment="txt_cbs_delete"/> 
    </object>

    <object name="t:edit" type="HbAction">
    <localizedstring name="text" value="Edit" comment="txt_cbs_edit"/> 
    </object>
  
      <!-- Main view -->
    <widget name="t:view" type="CbsUiTopicListView">
        <localizedstring name="title" value="Cell broadcast" comment="txt_cbs_title"/>
        <widget name="t:menu" type="HbMenu" role="HbView:menu">
            <ref object="t:settings" role="HbMenu:addAction" /> 
            <ref object="t:help" role="HbMenu:addAction" /> 
            <ref object="t:exit" role="HbMenu:addAction" /> 
        </widget>
        <widget name="t:toolbar" type="HbToolBar" role="HbView:toolBar">
            <ref object="t:toggle_reception" role="HbToolBar:addAction" /> 
            <ref object="t:add_topic" role="HbToolBar:addAction" /> 
        </widget>
        <widget name="content" role="HbView:widget" type="HbWidget">
            <widget name="t:topicIndex" type="HbListWidget">
                <sizepolicy verticalPolicy="MinimumExpanding" verticalStretch="0" />
                <sizepolicy horizontalPolicy="MinimumExpanding" horizontalStretch="0" />
                <sizehint type="MINIMUM" width="360" />
                <sizehint type="MAXIMUM" width="640" />
                <sizehint type="PREFERRED" width="360" /> 
                <sizehint type="FIXED" height="50" />
            </widget>
            <widget name="t:label" type="HbLabel">
                <localizedstring name="text" value="Topics" comment="txt_cbs_topics"/>   
            </widget>
            <widget name="t:ListWidget" type="HbListWidget">
                <sizepolicy verticalPolicy="Expanding" verticalStretch="1" />
                <sizepolicy horizontalPolicy="MinimumExpanding" horizontalStretch="0" />
                <sizehint type="MINIMUM" width="360" />
                <sizehint type="MAXIMUM" width="640" />
                <sizehint type="PREFERRED" width="360" /> 
                <sizehint type="PREFERRED" height="500" />
            </widget>
        </widget>
  </widget>
        
  <!-- portrait layout -->
    <section name="portrait">
        <widget name="content">
            <layout type="anchor">
                <anchoritem src="" srcEdge="TOP" dst="t:topicIndex" dstEdge="TOP" spacing="0" />
                <anchoritem src="" srcEdge="LEFT" dst="t:topicIndex" dstEdge="LEFT" spacing="0" />
                <anchoritem src="t:topicIndex" srcEdge="BOTTOM" dst="t:label" dstEdge="TOP" spacing="0" />               
                <anchoritem src="t:label" srcEdge="BOTTOM" dst="t:ListWidget" dstEdge="TOP" spacing="0" />
                <anchoritem src="" srcEdge="BOTTOM" dst="t:toolbar" dstEdge="TOP" spacing="0" />
                <anchoritem src="" srcEdge="CENTERH" dst="t:toolbar" dstEdge="CENTERH" spacing="0" />            
                </layout>
        </widget>
    </section>

  <!-- Connect toolbar signals -->
  <connect sender="t:add_topic" signal="triggered(bool)" receiver="t:view" slot="addNewTopic()" />
  <connect sender="t:toggle_reception" signal="triggered(bool)" receiver="t:view" slot="toggleReception()" />
</hbdocument>