mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
Author:admin
Date:2008-09-19T07:54:43.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@25 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
[[Property:title|Preferences Sample]]
|
||||
[[Property:link_title|EiffelPreferences Sample]]
|
||||
[[Property:weight|2]]
|
||||
[[Property:uuid|f492e71c-07a8-9b1d-f72a-d59330acbf16]]
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
==Compiling==
|
||||
|
||||
* Launch EiffelStudio.
|
||||
* Click '''Add project'''
|
||||
* Browse to ''$ISE_EIFFEL\examples\preferences\''.
|
||||
* Choose ''preferences_example.ecf''
|
||||
* Choose the location where the project will be compiled, by default the same directory containing the configuration file.
|
||||
* Choose the target: ''registry'' (Windows only) will use the registry to store the preferences, ''xml'' will use a xml file to store the preferences.
|
||||
* Click '''OK'''.
|
||||
|
||||
|
||||
==Running==
|
||||
|
||||
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:
|
||||
|
||||
[[Image:normal|preferences_example_normal_view]]
|
||||
|
||||
The custom view looks like:
|
||||
|
||||
[[Image:custom|preferences_example_normal_view]]
|
||||
|
||||
In each dialog you can select the preferences and alter the values.
|
||||
==Under the Hood==
|
||||
|
||||
This example shows you how to achieve the following tasks:
|
||||
|
||||
* Create preferences using the library supplied preference types and associated views
|
||||
* Use the default widget for viewing preferences and manipulating their values
|
||||
* Create a custom preference (a preference for storing correctly formatted directory path names)
|
||||
* Create a widget to view and change the custom preference type value
|
||||
* Create a custom manager to register custom types to the system
|
||||
* Create a custom dialog for viewing all the preferences
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[[Property:title|Preference Library]]
|
||||
[[Property:link_title|EiffelPreferences Tutorial]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|0c717db7-fb53-80b3-e32f-cc8356afa5f8]]
|
||||
The preference library is a platform independent library that can be used to add preference and configuration settings to your application. Briefly, the library provides support for creating fully configurable preference values, on per application or per user basis. It also provides a graphical interface for manipulation of these values, and a easily extendible design for you to add your own custom preference types.
|
||||
* [[Overview|Overview]]
|
||||
* [[Initialization|Initialization]]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[[Property:title|Initialization]]
|
||||
[[Property:weight|1]]
|
||||
[[Property:uuid|2f69a1b5-b5fd-57be-46e0-60eb2406ff5d]]
|
||||
This document details how to setup preferences for your application.
|
||||
|
||||
==Initializating the preferences==
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[[Property:title|Interface for preferences]]
|
||||
[[Property:weight|2]]
|
||||
[[Property:uuid|6f4964b1-8cf6-d9d4-0778-94d8a3737cad]]
|
||||
This document describes the use of graphical widgets to display and manipulate preferences.
|
||||
|
||||
The preference library contains a cluster called <eiffel>interface</eiffel>. This cluster provides some basic classes which can be used to graphically display and manipulate the <eiffel>PREFERENCE</eiffel> types used by the library. There are various widget classes which correspond to particular types of preferences and can be used to view and change the values of an associated preference. The table below illustrates which widgets are used to display each of the known preference types:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[[Property:title|Overview]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|8f90ea04-493b-0e00-1327-c707a49e1c04]]
|
||||
This document gives a brief overview of the preference library.
|
||||
|
||||
==Introduction==
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[[Property:title|EiffelPreference Library]]
|
||||
[[Property:link_title|EiffelPreferences]]
|
||||
[[Property:weight|1]]
|
||||
[[Property:uuid|f56ec405-6032-67dd-55e1-5a5ff7a4193c]]
|
||||
Type: Library <br/>
|
||||
Platform: Any <br/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user