📄 class_n_o_c_r_utils_1_1_c_layout_form.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>NOCRUtils::CLayoutForm 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 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 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><div class="nav"><a class="el" href="namespace_n_o_c_r_utils.html">NOCRUtils</a>::<a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html">CLayoutForm</a></div><h1>NOCRUtils::CLayoutForm Class Reference</h1><!-- doxytag: class="NOCRUtils::CLayoutForm" --><!-- doxytag: inherits="CAknForm" --><code>#include <<a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a>></code><p><p>Inheritance diagram for NOCRUtils::CLayoutForm:<p><center><img src="class_n_o_c_r_utils_1_1_c_layout_form.png" usemap="#NOCRUtils::CLayoutForm_map" border="0" alt=""></center><map name="NOCRUtils::CLayoutForm_map"></map><a href="class_n_o_c_r_utils_1_1_c_layout_form-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html">CLayoutForm</a> is a tailored form-dialog to read various settings from user. In OCR Example application forms are used to inquiry settings in layout analysis and block recognition operations. This same form-class can be used in all three cases. The whole operation is executed with one static function.<p>This form sets up a dialog for choosing correct settings for operation, and the dialog has only Ok-softkey enabled. When user presses Ok, the current settings are saved to appropriate datastructure. <p><p>Definition at line <a class="el" href="_layout_form_8h-source.html#l00041">41</a> of file <a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#570327852c83286fdc8be676cebfdcf6">ExecuteFormLD</a> (TOCRLayoutBlockInfo &aInfo, TInt aResourceId)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#be8bc02fe85141f6f3845a7a560c892a">ExecuteFormLD</a> (TOCRLayoutSetting &aInfo, TInt aResourceId)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#83db139026b37032575def1cbfb43041">ExecuteFormLD</a> (TRegionInfo &aInfo, TInt aResourceId)</td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#d65e32fb478bc9c86bf796a9d4de2f64">OkToExitL</a> (TInt aButtonId)</td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#b90bd30d42503d5f0464e9ff1ce3b830">SaveFormDataL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#b40f031bc0388961c4e5786379324608">QuerySaveChangesL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#dcea2120ef0873285457baf6937a9e97">CLayoutForm</a> (TOCRLayoutBlockInfo *aLayoutBlockInfo, TOCRLayoutSetting *aLayoutSetting=NULL, TRegionInfo *aRegionInfo=NULL)</td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TOCRLayoutBlockInfo * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#20e11952d4df5d2b7e5fdd908f10eeb1">iBlock</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TOCRLayoutSetting * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#469d1270eb5ecae82cc8f0f3ebf995bb">iLayout</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TRegionInfo * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#275c7177e06295b749bfaafcdb7cbc03">iRegion</a></td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="dcea2120ef0873285457baf6937a9e97"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::CLayoutForm" ref="dcea2120ef0873285457baf6937a9e97" args="(TOCRLayoutBlockInfo *aLayoutBlockInfo, TOCRLayoutSetting *aLayoutSetting=NULL, TRegionInfo *aRegionInfo=NULL)" --><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">NOCRUtils::CLayoutForm::CLayoutForm </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TOCRLayoutBlockInfo * </td> <td class="mdname" nowrap> <em>aLayoutBlockInfo</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TOCRLayoutSetting * </td> <td class="mdname" nowrap> <em>aLayoutSetting</em> = <code>NULL</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TRegionInfo * </td> <td class="mdname" nowrap> <em>aRegionInfo</em> = <code>NULL</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline, private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>constructor note that only one data-structure is allowed <p>Definition at line <a class="el" href="_layout_form_8h-source.html#l00102">102</a> of file <a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a>.<p>Referenced by <a class="el" href="_layout_form_8cpp-source.html#l00030">ExecuteFormLD()</a>.<div class="fragment"><pre class="fragment"><a name="l00105"></a>00105 : <a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#20e11952d4df5d2b7e5fdd908f10eeb1">iBlock</a>(aLayoutBlockInfo)<a name="l00106"></a>00106 , <a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#469d1270eb5ecae82cc8f0f3ebf995bb">iLayout</a>(aLayoutSetting)<a name="l00107"></a>00107 , <a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#275c7177e06295b749bfaafcdb7cbc03">iRegion</a>(aRegionInfo)<a name="l00108"></a>00108 {}</pre></div><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="570327852c83286fdc8be676cebfdcf6"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::ExecuteFormLD" ref="570327852c83286fdc8be676cebfdcf6" args="(TOCRLayoutBlockInfo &aInfo, TInt aResourceId)" --><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">TInt CLayoutForm::ExecuteFormLD </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TOCRLayoutBlockInfo & </td> <td class="mdname" nowrap> <em>aInfo</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TInt </td> <td class="mdname" nowrap> <em>aResourceId</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates, executes and destroys the form dialog. This variant is used to ask settings for Layout Analysis. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aInfo</em> </td><td>data-structure to store settings </td></tr> <tr><td valign="top"></td><td valign="top"><em>aResourceId</em> </td><td>resource-id of the form-dialog resource </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>status from ExecuteLD() </dd></dl><p>Definition at line <a class="el" href="_layout_form_8cpp-source.html#l00030">30</a> of file <a class="el" href="_layout_form_8cpp-source.html">LayoutForm.cpp</a>.<p>References <a class="el" href="_layout_form_8h-source.html#l00102">CLayoutForm()</a>.<p>Referenced by <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00461">COcrExampleImageView::AnalyzeImageLayoutL()</a>, <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00553">COcrExampleImageView::RecognizeBlockL()</a>, and <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00613">COcrExampleImageView::RecognizeSpecialRegionL()</a>.<div class="fragment"><pre class="fragment"><a name="l00031"></a>00031 {<a name="l00032"></a>00032 <a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html">CLayoutForm</a>* <span class="keyword">self</span> = <span class="keyword">new</span> (ELeave) <a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#dcea2120ef0873285457baf6937a9e97">CLayoutForm</a>(&aInfo);<a name="l00033"></a>00033 CleanupStack::PushL(<span class="keyword">self</span>);<a name="l00034"></a>00034 <span class="keyword">self</span>->ConstructL();<a name="l00035"></a>00035 CleanupStack::Pop(<span class="keyword">self</span>);<a name="l00036"></a>00036 <span class="keywordflow">return</span> <span class="keyword">self</span>->ExecuteLD(aResourceId);<a name="l00037"></a>00037 }</pre></div><p> </td> </tr></table><a class="anchor" name="be8bc02fe85141f6f3845a7a560c892a"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::ExecuteFormLD" ref="be8bc02fe85141f6f3845a7a560c892a" args="(TOCRLayoutSetting &aInfo, TInt aResourceId)" --><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">TInt CLayoutForm::ExecuteFormLD </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TOCRLayoutSetting & </td> <td class="mdname" nowrap> <em>aInfo</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TInt </td> <td class="mdname" nowrap> <em>aResourceId</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -