⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_c_ocr_example_app_ui.html

📁 基于symbian 平台 ocr 示例程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>COcrExampleAppUi 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 5th Edition SDK v0.9 </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&nbsp;Page</span></a></li>    <li><a href="namespaces.html"><span>Namespaces</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&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>COcrExampleAppUi Class Reference</h1><!-- doxytag: class="COcrExampleAppUi" --><!-- doxytag: inherits="CAknViewAppUi" --><code>#include &lt;<a class="el" href="_ocr_example_appui_8h-source.html">OcrExampleAppui.h</a>&gt;</code><p><p>Inheritance diagram for COcrExampleAppUi:<p><center><img src="class_c_ocr_example_app_ui.png" usemap="#COcrExampleAppUi_map" border="0" alt=""></center><map name="COcrExampleAppUi_map"></map><a href="class_c_ocr_example_app_ui-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Application UI class. This is the main application UI for the OCR Example. It manages the three different views in the app:<ul><li>the image-view (i.e. the main-view),</li><li>settings view, and</li><li>text view displaying the analyze and recognition results </li></ul><p><p>Definition at line <a class="el" href="_ocr_example_appui_8h-source.html#l00038">38</a> of file <a class="el" href="_ocr_example_appui_8h-source.html">OcrExampleAppui.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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#9ce34ba0b947863222da3c63d0481044">ConstructL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#6bd2acae033090d9d8b2f1c3f1cbd391">~COcrExampleAppUi</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#6acdbe8a9b57446075bf46d035e751eb">HandleResourceChangeL</a> (TInt aType)</td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#3ae77c2aed5e1270a13c14bd5aa415fe">DynInitMenuPaneL</a> (TInt aResourceId, CEikMenuPane *aMenuPane)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#a682d228622cea7790645ce10f591242">HandleCommandL</a> (TInt aCommand)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual TKeyResponse&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#0664643ad6fd66cf11afb7fdf7f5c6cc">HandleKeyEventL</a> (const TKeyEvent &amp;aKeyEvent, TEventCode 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="struct_t_text_container_data.html">TTextContainerData</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#1f042a3778633150ee122bad7a8e17e2">iTextData</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#30d9af36f960ced9d66f76546ff72dc2">iSettingsData</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_ocr_example_image_view.html">COcrExampleImageView</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#8ead615b97f5ee1f7fe6a5d7bb5d04ac">iImageView</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_n_o_c_r_utils_1_1_c_simple_view.html">NOCRUtils::CSimpleView</a>&lt; <a class="el" href="class_c_ocr_example_settings_container.html">COcrExampleSettingsContainer</a>,<br> <a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> &gt; *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#45daf228a0ae14c3ca696598dbabc211">iSettingsView</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_n_o_c_r_utils_1_1_c_simple_view.html">NOCRUtils::CSimpleView</a>&lt; <a class="el" href="class_c_ocr_example_text_container.html">COcrExampleTextContainer</a>,<br> <a class="el" href="struct_t_text_container_data.html">TTextContainerData</a> &gt; *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_app_ui.html#e437fcd21ae7c4d5aab29592539872c5">iTextView</a></td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="6bd2acae033090d9d8b2f1c3f1cbd391"></a><!-- doxytag: member="COcrExampleAppUi::~COcrExampleAppUi" ref="6bd2acae033090d9d8b2f1c3f1cbd391" 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">COcrExampleAppUi::~COcrExampleAppUi           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Destructor. <p>Definition at line <a class="el" href="_ocr_example_appui_8cpp-source.html#l00066">66</a> of file <a class="el" href="_ocr_example_appui_8cpp-source.html">OcrExampleAppui.cpp</a>.<p>References <a class="el" href="_ocr_example_appui_8h-source.html#l00095">iImageView</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00099">iSettingsView</a>, and <a class="el" href="_ocr_example_appui_8h-source.html#l00102">iTextView</a>.<div class="fragment"><pre class="fragment"><a name="l00067"></a>00067     {<a name="l00068"></a>00068     <a class="code" href="class_c_ocr_example_app_ui.html#45daf228a0ae14c3ca696598dbabc211">iSettingsView</a> = NULL;<a name="l00069"></a>00069     <a class="code" href="class_c_ocr_example_app_ui.html#8ead615b97f5ee1f7fe6a5d7bb5d04ac">iImageView</a> = NULL;<a name="l00070"></a>00070     <a class="code" href="class_c_ocr_example_app_ui.html#e437fcd21ae7c4d5aab29592539872c5">iTextView</a> = NULL;<a name="l00071"></a>00071     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="9ce34ba0b947863222da3c63d0481044"></a><!-- doxytag: member="COcrExampleAppUi::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 COcrExampleAppUi::ConstructL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Symbian default constructor. <p>Definition at line <a class="el" href="_ocr_example_appui_8cpp-source.html#l00035">35</a> of file <a class="el" href="_ocr_example_appui_8cpp-source.html">OcrExampleAppui.cpp</a>.<p>References <a class="el" href="_ocr_example_appui_8h-source.html#l00095">iImageView</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00092">iSettingsData</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00099">iSettingsView</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00089">iTextData</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00102">iTextView</a>, <a class="el" href="_simple_view_8h-source.html#l00134">NOCRUtils::CSimpleView&lt; T, D &gt;::NewL()</a>, and <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00057">COcrExampleImageView::NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00036"></a>00036     {<a name="l00037"></a>00037     BaseConstructL(EAknEnableSkin);<a name="l00038"></a>00038 <a name="l00039"></a>00039     <a class="code" href="class_c_ocr_example_app_ui.html#8ead615b97f5ee1f7fe6a5d7bb5d04ac">iImageView</a> = <a class="code" href="class_c_ocr_example_image_view.html#301a5b741381c9ed497a7d8f7f10f782">COcrExampleImageView::NewL</a>(<a class="code" href="class_c_ocr_example_app_ui.html#30d9af36f960ced9d66f76546ff72dc2">iSettingsData</a>);<a name="l00040"></a>00040     AddViewL(<a class="code" href="class_c_ocr_example_app_ui.html#8ead615b97f5ee1f7fe6a5d7bb5d04ac">iImageView</a>);<a name="l00041"></a>00041 <a name="l00042"></a>00042     <a class="code" href="class_c_ocr_example_app_ui.html#45daf228a0ae14c3ca696598dbabc211">iSettingsView</a> =<a name="l00043"></a>00043         <a class="code" href="class_n_o_c_r_utils_1_1_c_simple_view.html#f82712d9bbd47a3fbb8579fff98069d8">NOCRUtils::CSimpleView&lt; COcrExampleSettingsContainer, TOcrExampleSettingsData &gt;::NewL</a>(<a name="l00044"></a>00044                 R_OCR_EXAMPLE_SETTINGS_VIEW,<a name="l00045"></a>00045                 KUidSettingsView,<a name="l00046"></a>00046                 <a class="code" href="class_c_ocr_example_app_ui.html#30d9af36f960ced9d66f76546ff72dc2">iSettingsData</a>);<a name="l00047"></a>00047     AddViewL(<a class="code" href="class_c_ocr_example_app_ui.html#45daf228a0ae14c3ca696598dbabc211">iSettingsView</a>);<a name="l00048"></a>00048 <a name="l00049"></a>00049     <a class="code" href="class_c_ocr_example_app_ui.html#e437fcd21ae7c4d5aab29592539872c5">iTextView</a> =<a name="l00050"></a>00050         <a class="code" href="class_n_o_c_r_utils_1_1_c_simple_view.html#f82712d9bbd47a3fbb8579fff98069d8">NOCRUtils::CSimpleView&lt; COcrExampleTextContainer, TTextContainerData &gt;::NewL</a>(<a name="l00051"></a>00051                 R_OCR_EXAMPLE_TEXT_VIEW,<a name="l00052"></a>00052                 KUidTextView,<a name="l00053"></a>00053                 <a class="code" href="class_c_ocr_example_app_ui.html#1f042a3778633150ee122bad7a8e17e2">iTextData</a>);<a name="l00054"></a>00054     AddViewL(<a class="code" href="class_c_ocr_example_app_ui.html#e437fcd21ae7c4d5aab29592539872c5">iTextView</a>);<a name="l00055"></a>00055 <a name="l00056"></a>00056     <span class="comment">//set the main app view as the default view</span><a name="l00057"></a>00057     SetDefaultViewL(*<a class="code" href="class_c_ocr_example_app_ui.html#8ead615b97f5ee1f7fe6a5d7bb5d04ac">iImageView</a>);<a name="l00058"></a>00058     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="6acdbe8a9b57446075bf46d035e751eb"></a><!-- doxytag: member="COcrExampleAppUi::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 COcrExampleAppUi::HandleResourceChangeL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aType</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><a class="el" href="class_c_ocr_example_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>&nbsp;</td><td>the type of resources that have changed </td></tr>  </table></dl><p>Definition at line <a class="el" href="_ocr_example_appui_8cpp-source.html#l00118">118</a> of file <a class="el" href="_ocr_example_appui_8cpp-source.html">OcrExampleAppui.cpp</a>.<p>References <a class="el" href="_simple_view_8h-source.html#l00185">NOCRUtils::CSimpleView&lt; T, D &gt;::HandleSizeChange()</a>, <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00243">COcrExampleImageView::HandleSizeChange()</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00095">iImageView</a>, <a class="el" href="_ocr_example_appui_8h-source.html#l00099">iSettingsView</a>, and <a class="el" href="_ocr_example_appui_8h-source.html#l00102">iTextView</a>.<div class="fragment"><pre class="fragment"><a name="l00119"></a>00119     {<a name="l00120"></a>00120     <span class="comment">// base-class call also</span><a name="l00121"></a>00121     CAknViewAppUi::HandleResourceChangeL(aType);<a name="l00122"></a>00122 <a name="l00123"></a>00123     <span class="keywordflow">if</span> (aType == KEikDynamicLayoutVariantSwitch)<a name="l00124"></a>00124         {<a name="l00125"></a>00125         <a class="code" href="class_c_ocr_example_app_ui.html#8ead615b97f5ee1f7fe6a5d7bb5d04ac">iImageView</a>-&gt;<a class="code" href="class_c_ocr_example_image_view.html#04bbd31ba9f2f99b17c69030e5cf96cb">HandleSizeChange</a>();<a name="l00126"></a>00126         <a class="code" href="class_c_ocr_example_app_ui.html#45daf228a0ae14c3ca696598dbabc211">iSettingsView</a>-&gt;<a class="code" href="class_n_o_c_r_utils_1_1_c_simple_view.html#04bbd31ba9f2f99b17c69030e5cf96cb">HandleSizeChange</a>();<a name="l00127"></a>00127         <a class="code" href="class_c_ocr_example_app_ui.html#e437fcd21ae7c4d5aab29592539872c5">iTextView</a>-&gt;<a class="code" href="class_n_o_c_r_utils_1_1_c_simple_view.html#04bbd31ba9f2f99b17c69030e5cf96cb">HandleSizeChange</a>();<a name="l00128"></a>00128         }<a name="l00129"></a>00129     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="3ae77c2aed5e1270a13c14bd5aa415fe"></a><!-- doxytag: member="COcrExampleAppUi::DynInitMenuPaneL" ref="3ae77c2aed5e1270a13c14bd5aa415fe" args="(TInt aResourceId, CEikMenuPane *aMenuPane)" --><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 COcrExampleAppUi::DynInitMenuPaneL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname" nowrap> <em>aResourceId</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>CEikMenuPane *&nbsp;</td>          <td class="mdname" nowrap> <em>aMenuPane</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>From MEikMenuObserver <a class="el" href="class_c_ocr_example_app_ui.html#3ae77c2aed5e1270a13c14bd5aa415fe">COcrExampleAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)</a> This function is called by the EIKON framework just before it displays a menu pane. Its default implementation is empty, and by overriding it, the application can set the state of menu items dynamically according to the state of application data. <p>Definition at line <a class="el" href="_ocr_example_appui_8cpp-source.html#l00081">81</a> of file <a class="el" href="_ocr_example_appui_8cpp-source.html">OcrExampleAppui.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00082"></a>00082     {<a name="l00083"></a>00083     }</pre></div><p>    </td>  </tr></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -