/[eiffelstudio]/trunk/Delivery/xmldoc/libraries/preferences/samples/index.xml
ViewVC logotype

Contents of /trunk/Delivery/xmldoc/libraries/preferences/samples/index.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63849 - (show annotations)
Mon Sep 25 19:25:28 2006 UTC (13 years, 4 months ago) by patrickr
File MIME type: text/xml
File size: 2570 byte(s)
removed version numbers from library index page
updated sample documentations of most libraries
1 <document title="Preferences Sample">
2 <meta_data>
3 <help>
4 <toc>
5 <envision_location>EiffelEnvision\Examples\Preferences</envision_location>
6 <envision_title>Preferences</envision_title>
7 </toc>
8 </help>
9 </meta_data>
10 <paragraph>
11 <line_break/>
12 <line_break/>
13 <heading>
14 <size>2</size>Compiling
15 </heading>
16 <paragraph>
17 <list ordered="false">
18 <item>Launch EiffelStudio. </item>
19 <item>Click <bold>Add project</bold></item>
20 <item>Browse to
21 <italic>$ISE_EIFFEL\examples\preferences\</italic>.
22 </item>
23 <item>Choose <italic>preferences_example.ecf</italic></item>
24 <item>Choose the location where the project will be compiled, by default the same directory containing the configuration file. </item>
25 <item>Choose the target: <italic>registry</italic> (Windows only) will use the registry to store the preferences, <italic>xml</italic> will use a xml file to store the preferences.</item>
26 <item>Click
27 <bold>OK</bold>.
28 </item>
29 </list>
30 </paragraph>
31 <heading>
32 <size>2</size>Running
33 </heading>
34 <paragraph> After launching the application, you will see a window displayed with 2 buttons. When clicked each will display a window showing the preferences, one is the default view provided with the library, the other is a custom view for purposes of example. The default view looks like:</paragraph>
35 <paragraph>
36 <image>
37 <url>normal.png</url>
38 <alt_text>preferences_example_normal_view</alt_text>
39 </image>
40 </paragraph>
41 <paragraph>
42 The custom view looks like:
43 </paragraph>
44 <paragraph>
45 <image>
46 <url>custom.png</url>
47 <alt_text>preferences_example_normal_view</alt_text>
48 </image>
49 </paragraph>
50 <paragraph> In each dialog you can select the preferences and alter the values.
51 <heading>
52 <size>2</size>Under the Hood
53 </heading>
54 <paragraph>
55 This example shows you how to achieve the following tasks:
56
57 </paragraph>
58 <paragraph>
59 <list ordered="false"><item>Create preferences using the library supplied preference types and associated views</item>
60 <item>Use the default widget for viewing preferences and manipulating their values</item>
61 <item>Create a custom preference (a preference for storing correctly formatted directory path names)</item>
62 <item>Create a widget to view and change the custom preference type value</item>
63 <item>Create a custom manager to register custom types to the system</item>
64 <item>Create a custom dialog for viewing all the preferences</item>
65 </list></paragraph>
66
67 </paragraph>
68 </paragraph></document>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23