This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfirst_project.html
166 lines (125 loc) · 5.35 KB
/
first_project.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mobile Widgets</title>
<link rel="stylesheet" href="style/style.css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="js/StructureElts.js"></script>
<script type="text/javascript" src="js/Structure.js"></script>
<script type="text/javascript" src="js/DocElements.js"></script>
</head>
<body>
<script type="text/javascript">
<!--
idCurrentPage = "first_project";
beginPage();
//-->
</script>
<h1 class="title">First project</h1>
<script type="text/javascript">
<!--
addIndex();
//-->
</script>
<script type="text/javascript">addTitle("The \"Hello world!\" project", 1);</script>
<p>We start with a very simply project: the " <b>Hello world!</b> " project.</p>
<p>" <b>Hello world!</b> " project displays " <i><b>My personnal Hello world!</b></i> " message.</p>
<br/>
<script type="text/javascript">addTitle("Creation project", 1);</script>
<p>From <b>eclipse</b> folder, launch "<b> eclipse.exe </b>" file to open <b>Eclipse</b>.</p>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_01.png" /></p>
<p>To create a new project on Eclipse, click on the " <b>New Mobile Widget</b> " button on the Toolbar (marked in blue).</p>
<br/>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_02.png" /></p>
<p>"<b> New Mobile Widget Project - Create a new Mobile Widget Project </b>" dialog box is opened.<br/>
<p>Complete all textfields for new Mobile Widget project by:
<ul>
<li>Project name: <b>MyWidgetHelloWorld</b> (for example)</li>
<li>Widget name: <b>MyWidgetHelloWorld</b> (automatically completed)</li>
<li>Widget version: <b>1.0.0</b></li>
<li>Widget category: <b>Fun & Game</b></li>
<li>Widget description: <b><i>(optional)</i></b></li>
</ul>
Select "<b> <u>N</u>ext > </b>" button to continue.</p>
</p>
<br/>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_03.png" /></p>
<p>"<b> New Mobile Widget Project - Choose VRML Model </b>" dialog box is opened.<br/>
Select an "<b> available models </b>" for the "<b> VRML Model </b>". A picture shows the Model. (Here for example " <b>Info</b> ").<br/>
Select "<b> <u>F</u>inish </b>" button to continue.</p>
</p>
<br/>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_05.png" /></p>
<p>"<b> Open Associated Perspective? </b>" pop up is opened only the first time.<br/>
Select "<b> <u>Y</u>es </b>" button to continue.</p>
</p>
<br/>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_06.png" /></p>
<p>Congratulations! Your project "<b> MyWidgetHelloWord </b>" is created.</p>
<br/>
<script type="text/javascript">addTitle("Modify project", 1);</script>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_07.png" /></p>
<p>Open "<b> mywidgethelloworld.wrl </b>" file (in " <b>src</b> " folder under " <b>MyWidgetHelloWorld</b> " folder).</p>
<p>In Eclipse editor :<br/>
<ul>
<li>Select the contain of "<b> mywidgethelloworld.wrl </b>" file and delete it,</li>
<li>Copy and paste following VRML code in "<b> mywidgethelloworld.wrl </b>" file .</li>
</ul>
</p>
<textarea readonly="readonly" rows="13" cols="80">
#VRML V2.0 utf8
# hello world text
Shape {
appearance Appearance {
material Material2D {
emissiveColor 0 0 0
}
}
geometry WrapText {
string [ "My personal Hello World!" ]
}
}
</textarea>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_08.png" /></p>
<p class="note info">
<b>Note:</b><br/>
Meaning of this VRML code is explained in the <a href="widgets_development_nodes_ref.html">VRML nodes reference</a> part.</p>
<p>Save "<b> mywidgethelloworld.wrl </b>" file (use "<b> Ctrl + S </b>" shortcut).</p>
<br/>
<a name="launch"></a>
<script type="text/javascript">addTitle("Launch project", 1);</script>
<p>To launch the running of the project and MicroEmulator, 3 possibilities:</p>
<ul>
<li> 1- By right click on a "<b> MyWidgetHelloWorld</b> " in "<b> Project Explorer "</b> :</li>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_09.png" /></p>
<ul>
<li>right click on a "<b> MyWidgetHelloWorld</b> ",</li>
<li>select "<b> Run As </b>",</li>
<li>select "<b> Mobile Widget </b>".</li>
</ul>
<li> 2- By using ("<b> Alt + Shift + X </b>" and " <b>W</b> ") shortcut.</li>
<ul>
<li>select "<b> MyWidgetHelloWorld</b> " in "<b> Project Explorer "</b>,</li>
<li>use ("<b> Alt + Shift + X </b>" and " <b>W</b> ") shortcut.</li>
</ul>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_37.png" /></p>
<li> 3- Select the " <b> Run Mobile Widget Application </b>" button of the Toolbar (marked in blue) is clicked.</li>
</ul>
<br/><br/>
<p><img alt="Widgets SKD" src="images/widgets_sdk/user_manual_10.png" /></p>
<p>Congratulations! Your project is launched.</p>
<script type="text/javascript">
<!--
addBackPageNavigator ('installation_sdk', 'widgets_development');
//-->
</script>
<script type="text/javascript">
<!--
endPage();
//-->
</script>
</body>
</html>