📄 class_c_multi_views_app_ui.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>CMultiViewsAppUi Class Reference</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 3rd Edition SDK FP1 for Symbian OS </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>CMultiViewsAppUi Class Reference</h1><!-- doxytag: class="CMultiViewsAppUi" --><!-- doxytag: inherits="CAknViewAppUi" --><code>#include <<a class="el" href="multiviewsappui_8h-source.html">multiviewsappui.h</a>></code><p>Inherits CAknViewAppUi.<p>Inheritance diagram for CMultiViewsAppUi:<p><center><img src="class_c_multi_views_app_ui__inherit__graph.png" border="0" usemap="#_c_multi_views_app_ui__inherit__map" alt="Inheritance graph"></center><a href="class_c_multi_views_app_ui-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>CMultiViewsAppUi application UI class. An instance of class CMultiViewsAppUi is the UserInterface part of the AVKON application framework for the MultiViews example application <p><p>Definition at line <a class="el" href="multiviewsappui_8h-source.html#l00037">37</a> of file <a class="el" href="multiviewsappui_8h-source.html">multiviewsappui.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_app_ui.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_app_ui.html#a682d228622cea7790645ce10f591242">HandleCommandL</a> (TInt aCommand)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_app_ui.html#6acdbe8a9b57446075bf46d035e751eb">HandleResourceChangeL</a> (TInt aType)</td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_multi_views_view1.html">CMultiViewsView1</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_app_ui.html#9ede97c8a6390986ae00e2002948871d">iAppView1</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_multi_views_view2.html">CMultiViewsView2</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_multi_views_app_ui.html#635ce286110f567451730ddc017b5132">iAppView2</a></td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="9ce34ba0b947863222da3c63d0481044"></a><!-- doxytag: member="CMultiViewsAppUi::ConstructL" ref="9ce34ba0b947863222da3c63d0481044" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CMultiViewsAppUi::ConstructL </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>ConstructL. 2nd phase constructor. <p>Definition at line <a class="el" href="multiviewsappui_8cpp-source.html#l00033">33</a> of file <a class="el" href="multiviewsappui_8cpp-source.html">multiviewsappui.cpp</a>.<p>References <a class="el" href="multiviewsappui_8h-source.html#l00070">iAppView1</a>, <a class="el" href="multiviewsappui_8h-source.html#l00076">iAppView2</a>, <a class="el" href="multiviewsview2_8cpp-source.html#l00045">CMultiViewsView2::NewL()</a>, and <a class="el" href="multiviewsview1_8cpp-source.html#l00046">CMultiViewsView1::NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00034"></a>00034 {<a name="l00035"></a>00035 <span class="comment">// Initialise app UI</span><a name="l00036"></a>00036 BaseConstructL(EAknEnableSkin);<a name="l00037"></a>00037 <a name="l00038"></a>00038 <a class="code" href="class_c_multi_views_app_ui.html#9ede97c8a6390986ae00e2002948871d">iAppView1</a> = <a class="code" href="class_c_multi_views_view1.html#990716240ccf3341f7fdbf289ec927ad">CMultiViewsView1::NewL</a>();<a name="l00039"></a>00039 <a class="code" href="class_c_multi_views_app_ui.html#635ce286110f567451730ddc017b5132">iAppView2</a> = <a class="code" href="class_c_multi_views_view2.html#990716240ccf3341f7fdbf289ec927ad">CMultiViewsView2::NewL</a>();<a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="comment">// Transfer ownership to base class</span><a name="l00042"></a>00042 AddViewL( <a class="code" href="class_c_multi_views_app_ui.html#9ede97c8a6390986ae00e2002948871d">iAppView1</a> );<a name="l00043"></a>00043 AddViewL( <a class="code" href="class_c_multi_views_app_ui.html#635ce286110f567451730ddc017b5132">iAppView2</a> );<a name="l00044"></a>00044 <a name="l00045"></a>00045 SetDefaultViewL( *<a class="code" href="class_c_multi_views_app_ui.html#9ede97c8a6390986ae00e2002948871d">iAppView1</a> );<a name="l00046"></a>00046 }</pre></div><p> </td> </tr></table><a class="anchor" name="a682d228622cea7790645ce10f591242"></a><!-- doxytag: member="CMultiViewsAppUi::HandleCommandL" ref="a682d228622cea7790645ce10f591242" args="(TInt aCommand)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CMultiViewsAppUi::HandleCommandL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>HandleCommandL Takes care of command handling. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aCommand</em> </td><td>Command to be handled. </td></tr> </table></dl><p>Definition at line <a class="el" href="multiviewsappui_8cpp-source.html#l00053">53</a> of file <a class="el" href="multiviewsappui_8cpp-source.html">multiviewsappui.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00054"></a>00054 {<a name="l00055"></a>00055 <span class="keywordflow">switch</span> ( aCommand )<a name="l00056"></a>00056 {<a name="l00057"></a>00057 <span class="keywordflow">case</span> EEikCmdExit:<a name="l00058"></a>00058 <span class="keywordflow">case</span> EAknSoftkeyExit:<a name="l00059"></a>00059 Exit();<a name="l00060"></a>00060 <span class="keywordflow">break</span>;<a name="l00061"></a>00061 <span class="keywordflow">default</span>:<a name="l00062"></a>00062 Panic( EMultiViewsBasicUi );<a name="l00063"></a>00063 <span class="keywordflow">break</span>;<a name="l00064"></a>00064 }<a name="l00065"></a>00065 }</pre></div><p> </td> </tr></table><a class="anchor" name="6acdbe8a9b57446075bf46d035e751eb"></a><!-- doxytag: member="CMultiViewsAppUi::HandleResourceChangeL" ref="6acdbe8a9b57446075bf46d035e751eb" args="(TInt aType)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void CMultiViewsAppUi::HandleResourceChangeL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aType</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><a class="el" href="class_c_multi_views_app_ui.html#6acdbe8a9b57446075bf46d035e751eb">HandleResourceChangeL()</a> Called by framework when layout is changed. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aType</em> </td><td>The type of resources that have changed. </td></tr> </table></dl><p>Definition at line <a class="el" href="multiviewsappui_8cpp-source.html#l00072">72</a> of file <a class="el" href="multiviewsappui_8cpp-source.html">multiviewsappui.cpp</a>.<p>References <a class="el" href="multiviewsview2_8cpp-source.html#l00159">CMultiViewsView2::HandleSizeChange()</a>, <a class="el" href="multiviewsview1_8cpp-source.html#l00149">CMultiViewsView1::HandleSizeChange()</a>, <a class="el" href="multiviewsappui_8h-source.html#l00070">iAppView1</a>, and <a class="el" href="multiviewsappui_8h-source.html#l00076">iAppView2</a>.<div class="fragment"><pre class="fragment"><a name="l00073"></a>00073 {<a name="l00074"></a>00074 CAknAppUi::HandleResourceChangeL( aType );<a name="l00075"></a>00075 <a name="l00076"></a>00076 <span class="keywordflow">if</span> ( aType==KEikDynamicLayoutVariantSwitch )<a name="l00077"></a>00077 {<a name="l00078"></a>00078 <a class="code" href="class_c_multi_views_app_ui.html#9ede97c8a6390986ae00e2002948871d">iAppView1</a>-><a class="code" href="class_c_multi_views_view1.html#64981e38a948501cd02bc05adb30be05">HandleSizeChange</a>(aType);<a name="l00079"></a>00079 <a class="code" href="class_c_multi_views_app_ui.html#635ce286110f567451730ddc017b5132">iAppView2</a>-><a class="code" href="class_c_multi_views_view2.html#64981e38a948501cd02bc05adb30be05">HandleSizeChange</a>(aType);<a name="l00080"></a>00080 } <a name="l00081"></a>00081 }</pre></div><p> </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="9ede97c8a6390986ae00e2002948871d"></a><!-- doxytag: member="CMultiViewsAppUi::iAppView1" ref="9ede97c8a6390986ae00e2002948871d" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="class_c_multi_views_view1.html">CMultiViewsView1</a>* <a class="el" href="class_c_multi_views_app_ui.html#9ede97c8a6390986ae00e2002948871d">CMultiViewsAppUi::iAppView1</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>iAppView1, The application view 1 Not owned by CMultiViewsAppUi object. <p>Definition at line <a class="el" href="multiviewsappui_8h-source.html#l00070">70</a> of file <a class="el" href="multiviewsappui_8h-source.html">multiviewsappui.h</a>.<p>Referenced by <a class="el" href="multiviewsappui_8cpp-source.html#l00033">ConstructL()</a>, and <a class="el" href="multiviewsappui_8cpp-source.html#l00072">HandleResourceChangeL()</a>. </td> </tr></table><a class="anchor" name="635ce286110f567451730ddc017b5132"></a><!-- doxytag: member="CMultiViewsAppUi::iAppView2" ref="635ce286110f567451730ddc017b5132" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="class_c_multi_views_view2.html">CMultiViewsView2</a>* <a class="el" href="class_c_multi_views_app_ui.html#635ce286110f567451730ddc017b5132">CMultiViewsAppUi::iAppView2</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>iAppView2, The application view 2 Not owned by CMultiViewsAppUi object. <p>Definition at line <a class="el" href="multiviewsappui_8h-source.html#l00076">76</a> of file <a class="el" href="multiviewsappui_8h-source.html">multiviewsappui.h</a>.<p>Referenced by <a class="el" href="multiviewsappui_8cpp-source.html#l00033">ConstructL()</a>, and <a class="el" href="multiviewsappui_8cpp-source.html#l00072">HandleResourceChangeL()</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="multiviewsappui_8h-source.html">multiviewsappui.h</a><li><a class="el" href="multiviewsappui_8cpp-source.html">multiviewsappui.cpp</a></ul><hr><table x-use-null-cells style="x-cell-content-align: top; width: 100%; border-spacing: 0px; border-spacing: 0px;" cellspacing=0 width=100%> <col style="width: 50%;"> <col style="width: 50%;"> <tr style="x-cell-content-align: top;" valign=top> <td style="width: 50%; padding-right: 10px; padding-left: 10px; border-right-style: None; border-left-style: None; border-top-style: None; border-bottom-style: None;" width=50%> <p style="font-family: Arial;"><small style="font-size: smaller;">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -