uidesigner/com.nokia.carbide.cpp.uidesigner.doc.user/html/tasks/uidesign/task_uid_enable_view_switching.htm
changeset 308 2cf1147ef3f9
parent 0 fb279309251b
--- a/uidesigner/com.nokia.carbide.cpp.uidesigner.doc.user/html/tasks/uidesign/task_uid_enable_view_switching.htm	Thu Jun 25 13:45:49 2009 -0500
+++ b/uidesigner/com.nokia.carbide.cpp.uidesigner.doc.user/html/tasks/uidesign/task_uid_enable_view_switching.htm	Fri Jun 26 11:16:29 2009 -0500
@@ -1,81 +1,86 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
-<meta http-equiv="Content-Style-Type" content="text/css" />
-<title>Enabling Avkon View Switching</title>
-<link rel="StyleSheet" href="../../../book.css" type="text/css"/></head>
-<body bgcolor="#FFFFFF">
-<h2>Enabling Avkon View Switching</h2>
-
-<p>The New Project wizard allows you to <a href="../projects/task_proj_new-07.htm">specify that you want automated support for Avkon View Switching in your project</a>. This option must be set when the project is first created or the UI Designer will not generate the AppUi level code necessary to support view switching. Checking this option is sufficient to implement view switching automatically within projects that you have created with the wizard. </p>
-<p>Legacy applications may already be configured to support view switching. If your legacy application is so configured, a few relatively simple manual edits to UI designs created with the S60 UI design wizard will add them to the switching group.</p>
-<div class="step">
-  <h4>Implementing Avkon View Switching in a Project </h4>
-  <ol>
-<li>Add Avkon View initialization code to &lt;<em>ProjectName</em>&gt;AppUi::ConstructL(). </li>
-    <p>You must manually instantiate your view, and register it with the View Server.</p>
-    <p>Adopt the following code for your view's name, and add it to the ConstructL() method of your &lt;<em>ProjectName</em>&gt;AppUi class.</p>
-    <p class="code">iMyView =  CMyView::NewL();<br />
-      AddViewL( iMyView );<br />
-    <em>SetDefaultViewL(  *iMyView );  // if this  view is the default</em></p>
-    <li>Add an enumerator for your view to the view id enumeration. </li>
-    <p>Open the &lt;<em>ProjectName</em>&gt;.hrh file.  It will look something like this:</p>
-    <p>/*<br />
-      ============================================================================<br />
-      Descriptive Information <br />
-      ============================================================================<br />
-      */<br />
-      #ifndef __LEGACYPROJ_HRH__<br />
-      #define __LEGACYPROJ_HRH__</p>
-    <p>// LegacyProj enumerate command codes<br />
-      enum TLegacyProjIds <br />
-		{ <br />
-		ECommand1 = 0x6001, // start value must not be 0 <br />
-		ECommand2 <br />
-		} </p>
-
-		<p>// LegacyProj view identifiers <br />
-		enum TLegacyProjViewUids <br />
-		{ <br />
-		ELegacyViewUid = 1 <br />
-		}; </p>
-    <p>#endif // __LEGACYPROJ_HRH__</p>
-    <p>You must manually edit this file to add a Uid for your view to the enumeration. Add your new identifier to the end of the list. After editing the file, it could look like this: </p>
-    <p>/*<br />
-      ============================================================================<br />
-      Descriptive Information <br />
-      ============================================================================<br />
-      */<br />
-      #ifndef __LEGACYPROJ_HRH__<br />
-      #define __LEGACYPROJ_HRH__</p>
-    <p>// LegacyProj enumerate command codes<br />
-      enum TLegacyProjIds <br />
-		{ <br />
-		ECommand1 = 0x6001, // start value must not be 0 <br />
-		ECommand2 <br />
-		} </p>
-
-		<p>// LegacyProj view identifiers <br />
-		enum TLegacyProjViewUids <br />
-		{ <br />
-		ELegacyViewUid = 1, <br />
-		EMyDesignViewUid // UID for new view, named E<design name>ViewUid<br />
-		}; </p>
-    <p>#endif // __LEGACYPROJ_HRH__</p>
-</ol>
-  <p>When you have completed these steps, the view-switching aspects of this design should build and operate successfully.</p>
-</div>
-<h5>Related tasks</h5>
-<ul>
-  <li><a href="../projects/task_proj_new.htm">Creating New GUI Projects for the UI Designer</a></li>
-</ul>
-<h5>Related references</h5>
-<ul>
-  <li><a href="../../reference/projects/ref_new_proj_wizard.htm">New Project Wizard</a></li>
-</ul>
-
-<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
-
-</body>
-</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" />
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<title>Enabling Avkon View Switching</title>
+<link rel="StyleSheet" href="../../../book.css" type="text/css"/>
+</head>
+<body bgcolor="#FFFFFF">
+<h2>Enabling Avkon View Switching</h2>
+
+<p>The New Project wizard allows you to <a href="../projects/task_proj_new-07.htm">specify that you want automated support for Avkon View Switching in your project</a>. This option must be set when the project is first created or the UI Designer will not generate the AppUi level code necessary to support view switching. Checking this option is sufficient to implement view switching automatically within projects that you have created with the wizard. </p>
+<p>Legacy applications may already be configured to support view switching. If your legacy application is so configured, a few relatively simple manual edits to UI designs created with the S60 UI design wizard will add them to the switching group.</p>
+<div class="step">
+  <h4>Implementing Avkon View Switching in a Project </h4>
+  <ol>
+<li>Add Avkon View initialization code to &lt;<em>ProjectName</em>&gt;AppUi::ConstructL(). </li>
+    <p>You must manually instantiate your view, and register it with the View Server.</p>
+    <p>Adopt the following code for your view's name, and add it to the ConstructL() method of your &lt;<em>ProjectName</em>&gt;AppUi class.</p>
+    <p class="listing">iMyView =  CMyView::NewL();<br />
+      AddViewL( iMyView );<br />
+    <i>SetDefaultViewL(  *iMyView );  // if this  view is the default</i></p>
+    <li>Add an enumerator for your view to the view id enumeration. </li>
+    <p>Open the &lt;<em>ProjectName</em>&gt;.hrh file.  It will look something like this:</p>
+    <p class="listing">/*<br />
+      ============================================================================<br />
+      Descriptive Information <br />
+      ============================================================================<br />
+      */<br />
+      #ifndef __LEGACYPROJ_HRH__<br />
+      #define __LEGACYPROJ_HRH__<br>
+      <br>
+      // LegacyProj enumerate command codes<br />
+      enum TLegacyProjIds <br />
+      { <br />
+      ECommand1 = 0x6001, // start value must not be 0 <br />
+      ECommand2 <br />
+    }<br>
+    <br>
+    // LegacyProj view identifiers <br />
+	  enum TLegacyProjViewUids <br />
+	  { <br />
+	  ELegacyViewUid = 1 <br />
+    };<br>
+    #endif // __LEGACYPROJ_HRH__</p>
+    <p>You must manually edit this file to add a Uid for your view to the enumeration. Add your new identifier to the end of the list. After editing the file, it could look like this: </p>
+    <p class="listing">/*<br />
+      ============================================================================<br />
+      Descriptive Information <br />
+      ============================================================================<br />
+      */<br />
+      #ifndef __LEGACYPROJ_HRH__<br />
+      #define __LEGACYPROJ_HRH__<br>
+      <br>
+      // LegacyProj enumerate command codes<br />
+      enum TLegacyProjIds <br />
+		{ <br />
+		ECommand1 = 0x6001, // start value must not be 0 <br />
+		ECommand2 <br />
+	  }<br>
+	  <br>
+	  // LegacyProj view identifiers <br />
+	  enum TLegacyProjViewUids <br />
+	  { <br />
+	  ELegacyViewUid = 1, <br />
+	  EMyDesignViewUid // UID for new view, named E
+	  <design name>
+	  ViewUid<br />
+	  };<br>
+	  #endif // __LEGACYPROJ_HRH__</p>
+  </ol>
+  <p>When you have completed these steps, the view-switching aspects of this design should build and operate successfully.</p>
+</div>
+<h5>Related tasks</h5>
+<ul>
+  <li><a href="../projects/task_proj_new.htm">Creating New GUI Projects for the UI Designer</a></li>
+</ul>
+<h5>Related references</h5>
+<ul>
+  <li><a href="../../reference/projects/ref_new_proj_wizard.htm">New Project Wizard</a></li>
+</ul>
+
+<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
+
+</body>
+</html>