1 -- File: IFSelect_ParamEditor.cdl
2 -- Created: Thu Jul 30 15:59:48 1998
3 -- Author: Christian CAILLET
4 -- <cky@heliox.paris1.matra-dtv.fr>
5 ---Copyright: Matra Datavision 1998
8 class ParamEditor from IFSelect inherits Editor from IFSelect
10 ---Purpose : A ParamEditor gives access for edition to a list of TypedValue
11 -- (i.e. of Static too)
12 -- Its definition is made of the TypedValue to edit themselves,
13 -- and can add some constants, which can then be displayed but
14 -- not changed (for instance, system name, processor version ...)
16 -- I.E. it gives a way of editing or at least displaying
17 -- parameters as global
19 uses CString, Transient, AsciiString, HAsciiString, HSequenceOfHAsciiString,
20 InterfaceModel, EditForm, TypedValue
24 Create (nbmax : Integer = 100; label : CString = "") returns ParamEditor;
25 ---Purpose : Creates a ParamEditor, empty, with a maximum count of params
27 -- And a label, by default it will be "Param Editor"
29 AddValue (me : mutable; val : TypedValue; shortname : CString = "");
30 ---Purpose : Adds a TypedValue
31 -- By default, its short name equates its complete name, it can
34 AddConstantText (me : mutable; val : CString;
35 shortname : CString; completename : CString = "");
36 ---Purpose : Adds a Constant Text, it will be Read Only
37 -- By default, its long name equates its shortname
40 Label (me) returns AsciiString;
42 Recognize (me; form : EditForm) returns Boolean;
44 StringValue (me; form : EditForm; num : Integer)
45 returns HAsciiString from TCollection;
47 Load (me; form : EditForm; ent : Transient; model : InterfaceModel)
50 Apply (me; form : EditForm; ent : Transient; model : InterfaceModel)
55 StaticEditor (myclass; list : HSequenceOfHAsciiString;
56 label : CString = "") returns ParamEditor;
57 ---Purpose : Returns a ParamEditor to work on the Static Parameters of
58 -- which names are listed in <list>
59 -- Null Handle if <list> is null or empty
63 thelabel : AsciiString;