?? _h_w_r_m_test_app_container_8cpp-source.html
字號:
<a name="l00086"></a>00086 <span class="keyword"> </span>{<a name="l00087"></a>00087 <span class="keywordflow">switch</span> ( aIndex )<a name="l00088"></a>00088 {<a name="l00089"></a>00089 <span class="keywordflow">case</span> 0:<a name="l00090"></a>00090 <span class="keywordflow">return</span> <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>;<a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="keywordflow">default</span>:<a name="l00093"></a>00093 <span class="keywordflow">return</span> NULL;<a name="l00094"></a>00094 }<a name="l00095"></a>00095 }<a name="l00096"></a>00096 <a name="l00097"></a>00097 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00098"></a>00098 <span class="comment">// CHWRMTestAppContainer::Draw</span><a name="l00099"></a>00099 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00100"></a>00100 <span class="comment">//</span><a name="l00101"></a><a class="code" href="class_c_h_w_r_m_test_app_container.html#67f946ca7848ec78de4961c5bcefdb72">00101</a> <span class="keywordtype">void</span> <a class="code" href="class_c_h_w_r_m_test_app_container.html#67f946ca7848ec78de4961c5bcefdb72">CHWRMTestAppContainer::Draw</a>(<span class="keyword">const</span> TRect& <span class="comment">/*aRect*/</span>)<span class="keyword"> const</span><a name="l00102"></a>00102 <span class="keyword"> </span>{<a name="l00103"></a>00103 }<a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00106"></a>00106 <span class="comment">// CHWRMTestAppContainer::HandleControlEventL</span><a name="l00107"></a>00107 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00108"></a>00108 <span class="comment">//</span><a name="l00109"></a><a class="code" href="class_c_h_w_r_m_test_app_container.html#35c34ef4a35ad96d9807406d16606b29">00109</a> <span class="keywordtype">void</span> <a class="code" href="class_c_h_w_r_m_test_app_container.html#35c34ef4a35ad96d9807406d16606b29">CHWRMTestAppContainer::HandleControlEventL</a>(<a name="l00110"></a>00110 CCoeControl* <span class="comment">/*aControl*/</span>,TCoeEvent <span class="comment">/*aEventType*/</span>)<a name="l00111"></a>00111 {<a name="l00112"></a>00112 <span class="comment">// TODO: Add your control event handler code here</span><a name="l00113"></a>00113 }<a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00116"></a>00116 <span class="comment">// CHWRMTestAppContainer::AddMessageL</span><a name="l00117"></a>00117 <span class="comment">// Add message to editor window in the container</span><a name="l00118"></a>00118 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00119"></a>00119 <span class="comment">//</span><a name="l00120"></a><a class="code" href="class_c_h_w_r_m_test_app_container.html#45759a6cea2bc386241e603bd3ab50ed">00120</a> <span class="keywordtype">void</span> <a class="code" href="class_c_h_w_r_m_test_app_container.html#45759a6cea2bc386241e603bd3ab50ed">CHWRMTestAppContainer::AddMessageL</a>( <span class="keyword">const</span> TDesC& aMsg )<span class="keyword"> const</span><a name="l00121"></a>00121 <span class="keyword"> </span>{<a name="l00122"></a>00122 <a name="l00123"></a>00123 CPlainText* text = <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>->Text();<a name="l00124"></a>00124 text->InsertL( text->DocumentLength(), aMsg );<a name="l00125"></a>00125 text->InsertL( text->DocumentLength(), CEditableText::ELineBreak );<a name="l00126"></a>00126 <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>->HandleTextChangedL();<a name="l00127"></a>00127 <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>->SetSelectionL( text->DocumentLength(), text->DocumentLength() );<a name="l00128"></a>00128 <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>->SetFocus( ETrue );<a name="l00129"></a>00129 }<a name="l00130"></a>00130 <a name="l00131"></a>00131 <a name="l00132"></a>00132 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00133"></a>00133 <span class="comment">// CHWRMTestAppContainer::OfferKeyEventL</span><a name="l00134"></a>00134 <span class="comment">// Pass key event to appropriate controls</span><a name="l00135"></a>00135 <span class="comment">// -----------------------------------------------------------------------------</span><a name="l00136"></a>00136 <span class="comment">//</span><a name="l00137"></a><a class="code" href="class_c_h_w_r_m_test_app_container.html#6775621e6d3ce05d6685555c939c7706">00137</a> TKeyResponse <a class="code" href="class_c_h_w_r_m_test_app_container.html#6775621e6d3ce05d6685555c939c7706">CHWRMTestAppContainer::OfferKeyEventL</a>( <span class="keyword">const</span> TKeyEvent& aKeyEvent,TEventCode aType )<a name="l00138"></a>00138 {<a name="l00139"></a>00139 <span class="keywordflow">return</span> <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>->OfferKeyEventL( aKeyEvent, aType );<a name="l00140"></a>00140 }<a name="l00141"></a>00141 <a name="l00142"></a>00142 <span class="comment">// ---------------------------------------------------------</span><a name="l00143"></a>00143 <span class="comment">// CHWRMTestAppContainer::HandleResourceChange()</span><a name="l00144"></a>00144 <span class="comment">// Called by framework when layout is changed.</span><a name="l00145"></a>00145 <span class="comment">// ---------------------------------------------------------</span><a name="l00146"></a>00146 <span class="comment">//</span><a name="l00147"></a><a class="code" href="class_c_h_w_r_m_test_app_container.html#389d15aa1abc22fb211d040f034e4e31">00147</a> <span class="keywordtype">void</span> <a class="code" href="class_c_h_w_r_m_test_app_container.html#389d15aa1abc22fb211d040f034e4e31">CHWRMTestAppContainer::HandleResourceChange</a>(TInt aType)<a name="l00148"></a>00148 {<a name="l00149"></a>00149 CCoeControl::HandleResourceChange(aType);<a name="l00150"></a>00150 <a name="l00151"></a>00151 <span class="comment">// ADDED FOR SCALABLE UI SUPPORT</span><a name="l00152"></a>00152 <span class="comment">// *****************************</span><a name="l00153"></a>00153 <span class="keywordflow">if</span> ( aType==KEikDynamicLayoutVariantSwitch )<a name="l00154"></a>00154 {<a name="l00155"></a>00155 TRect rect;<a name="l00156"></a>00156 AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect);<a name="l00157"></a>00157 SetRect(rect);<a name="l00158"></a>00158 }<a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="comment">// Redraw the editor window</span><a name="l00161"></a>00161 <a class="code" href="class_c_h_w_r_m_test_app_container.html#c9e2f84a17af92b121d3a9d6f9eba772">iEdwin</a>->DrawNow();<a name="l00162"></a>00162 }<a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="comment">// End of File </span><a name="l00165"></a>00165 </pre></div><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 + -