Symbian3/SDK/Source/GUID-771AF721-E2D7-41C8-BF97-5BD30D1A28AD.dita
changeset 7 51a74ef9ed63
child 8 ae94777fff8f
equal deleted inserted replaced
6:43e37759235e 7:51a74ef9ed63
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <concept id="GUID-771AF721-E2D7-41C8-BF97-5BD30D1A28AD" xml:lang="en"><title> Status
       
    13 pane</title><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <p>The Status pane displays status information of the current application
       
    15 and state, as well as general information about the device status, such as
       
    16 signal strength and battery charge. The Status pane may also be totally left
       
    17 out in certain applications or situations. </p>
       
    18 <p>There are three different variations of the Status pane:<ul>
       
    19 <li><p>Normal status pane (includes both Title and Navi pane). </p></li>
       
    20 <li><p>Flat status pane (includes only the Title pane).</p></li>
       
    21 <li><p>Thin status pane (special status pane used, for example, in the Browser
       
    22 application)</p></li>
       
    23 </ul>Flat and thin Status panes can be used in cases where it is important
       
    24 to maximize Main pane area (for example, Browser). </p>
       
    25 <p>The Status pane contains the following sub-panes:</p>
       
    26 <ul>
       
    27 <li><p>Title pane</p></li>
       
    28 <li><p>Navi pane</p></li>
       
    29 <li><p>Signal pane</p></li>
       
    30 <li><p>Battery pane</p></li>
       
    31 <li><p>Universal indicator pane</p></li>
       
    32 </ul>
       
    33 <fig id="GUID-770A54B6-9F18-4BC3-92A7-AFB4D9E40199">
       
    34 <title>Status pane areas</title>
       
    35 <image href="GUID-F2F19F40-E87B-4FF2-ABE8-4E14AE728364_d0e72186_href.png" placement="inline"/>
       
    36 </fig>
       
    37 <section id="GUID-681C48E1-D94F-4960-8BC4-DEB5C8B677DF"><title>Using
       
    38 the status pane in C++ applications</title><p>The API to use for the status
       
    39 pane is the <xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html" scope="peer">Status pane API</xref>. For implementation information, see <xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3" scope="peer">Using the status pane API</xref>.</p><p>Use the Status pane API
       
    40 for the following tasks:</p><ul>
       
    41 <li><p><xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3.1" scope="peer">Creating the status pane using a resource file</xref></p></li>
       
    42 <li><p><xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3.2" scope="peer">Accessing the status pane</xref></p></li>
       
    43 <li><p><xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3.3" scope="peer">Accessing controls in the status pane's subpanes</xref></p></li>
       
    44 <li><p><xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3.4" scope="peer">Showing and hiding the status pane</xref></p></li>
       
    45 <li><p><xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3.5" scope="peer">Dynamically changing status pane layout </xref></p></li>
       
    46 <li><p><xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html#Status_Pane_API_Specification.topic3.6" scope="peer">Observing status pane events</xref></p></li>
       
    47 </ul><p>Applications can define and modify the title and navi sub-panes. For
       
    48 implementation information on the sub-panes in the status pane, see the following
       
    49 APIs:</p><ul>
       
    50 <li><p>Title pane API for the title pane</p></li>
       
    51 <li><p><xref format="html" href="specs/guides/Navigation_Pane_API_Specification/Navigation_Pane_API_Specification.html" scope="peer">Navigation pane API</xref> for the navi pane</p></li>
       
    52 </ul><p>Use the method <xref href="GUID-DFA80461-F732-30E8-B76A-B04C58CC1DD5.dita#GUID-DFA80461-F732-30E8-B76A-B04C58CC1DD5/GUID-98441932-C5BD-3743-B98F-BC8B7C40D2DA"><apiname>CEikStatusPaneBase::IsAppOwned()</apiname></xref> in
       
    53 the class <xref href="GUID-DFA80461-F732-30E8-B76A-B04C58CC1DD5.dita#GUID-DFA80461-F732-30E8-B76A-B04C58CC1DD5/GUID-18905F65-84C6-3085-865C-489041B36886"><apiname>CEikStatusPaneBase::TPaneCapabilities()</apiname></xref> to test
       
    54 whether the pane is owned by the application or the server. Applications can
       
    55 only interact directly with application owned subpanes.</p><p><xref href="GUID-4B3EDBA0-8849-37DE-9693-4A2DB23A2101.dita"><apiname>CEikStatusPane</apiname></xref> is
       
    56 the interface through which applications use the status pane. This class synchronizes
       
    57 the status pane layout with the server side status pane object. To do this,
       
    58 the method <xref href="GUID-4B3EDBA0-8849-37DE-9693-4A2DB23A2101.dita#GUID-4B3EDBA0-8849-37DE-9693-4A2DB23A2101/GUID-F5265585-3EE1-389F-ADF5-ADDDE96D0C28"><apiname>CEikStatusPane::ApplyCurrentSettingsL()</apiname></xref> must
       
    59 be called whenever the owner application switches to the foreground. </p><p><draft-comment time="2008-05-23T11:14" translate="no">Relationship between events/similar for entire status
       
    60 pane and sub-panes: should be clearer on what's done where</draft-comment></p><p> The
       
    61 following options are available for modifying the default behavior of the
       
    62 status pane:  </p><ul>
       
    63 <li><p>Since the status pane is a compound control, it can be made visible
       
    64 or invisible like an other control with <codeph>CCoeControl::MakeVisible()</codeph>. <codeph>CCoeControl::MakeVisible()</codeph> can
       
    65 be called before or after the control is activated. An example of a call to
       
    66 make the status pane invisible is as follows:  </p><codeblock xml:space="preserve">CEikStatusPane* sp = StatusPane();// Gets a pointer to the status pane in the UI controller 
       
    67 StatusPane()-&gt;MakeVisible(EFalse); //make pane invisible somewhere in your code</codeblock></li>
       
    68 <li><p>Accessing and modifying controls inside the status pane.</p><p> The
       
    69 Status Pane API provides methods for accessing the status pane control and
       
    70 modifying the status pane layout.   </p><p>If you wish to modify panes within
       
    71 the status pane, you need to get a pointer to the status pane and then use
       
    72 one of the following classes and methods: </p><ul>
       
    73 <li><p><xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknTitlePane.html" format="application/java-archive"><codeph>CAknTitlePane</codeph></xref> for
       
    74 the title sub-pane</p></li>
       
    75 <li><p>Methods defined by the <xref format="html" href="specs/guides/Navigation_Pane_API_Specification/Navigation_Pane_API_Specification.html" scope="peer">Navigation pane API</xref> for accessing the navi sub-pane </p></li>
       
    76 <li><p>The <xref format="html" href="specs/guides/Tabs_API_Specification/Tabs_API_Specification.html" scope="peer">Tabs API</xref> for accessing tabs in the navi sub-pane.</p></li>
       
    77 </ul></li>
       
    78 <li><p>Defining new resources for the status pane to override the default
       
    79 behavior</p><p> Once you have defined your resources, you may need to use
       
    80 some of the status pane APIs to achieve the desired effect in your application.
       
    81  </p><p>For more information, see the <xref format="html" href="specs/guides/Status_Pane_API_Specification/Status_Pane_API_Specification.html" scope="peer">Status pane API</xref> and <xref format="html" href="specs/guides/Navigation_Pane_API_Specification/Navigation_Pane_API_Specification.html" scope="peer">Navigation pane API</xref> reference documentation.   </p></li>
       
    82 <li><p>You can also derive your own classes from the available classes or
       
    83 their base classes to customize your own controls. </p></li>
       
    84 </ul></section>
       
    85 <example><p>For more information on the panes, refer the following:</p></example>
       
    86 </conbody><related-links id="GUID-0FBC10E3-6A44-4AB4-BD42-A23539C4F148">
       
    87 <linklist><title>Related APIs</title>
       
    88 <link format="html" href="specs/guides/Skins_API_Specification/Skins_API_Specification.html" scope="peer"><linktext>Skins API</linktext>
       
    89 <desc> for providing themes support for the status pane</desc>
       
    90 </link>
       
    91 </linklist>
       
    92 </related-links></concept>