Open CASCADE Technology 6.6.0
|
A ParamEditor gives access for edition to a list of TypedValue
(i.e. of Static too)
Its definition is made of the TypedValue to edit themselves,
and can add some constants, which can then be displayed but
not changed (for instance, system name, processor version ...)
I.E. it gives a way of editing or at least displaying
parameters as global
#include <IFSelect_ParamEditor.hxx>
Public Member Functions | |
IFSelect_ParamEditor (const Standard_Integer nbmax=100, const Standard_CString label="") | |
Creates a ParamEditor, empty, with a maximum count of params (default is 100) And a label, by default it will be "Param Editor" | |
void | AddValue (const Handle< Interface_TypedValue > &val, const Standard_CString shortname="") |
Adds a TypedValue By default, its short name equates its complete name, it can be explicited | |
void | AddConstantText (const Standard_CString val, const Standard_CString shortname, const Standard_CString completename="") |
Adds a Constant Text, it will be Read Only By default, its long name equates its shortname | |
TCollection_AsciiString | Label () const |
Returns the specific label | |
Standard_Boolean | Recognize (const Handle< IFSelect_EditForm > &form) const |
Tells if this Editor can work on this EditForm and its content (model, entity ?) | |
Handle_TCollection_HAsciiString | StringValue (const Handle< IFSelect_EditForm > &form, const Standard_Integer num) const |
Returns the value of an EditForm, for a given item (if not a list. for a list, a Null String may be returned) | |
Standard_Boolean | Load (const Handle< IFSelect_EditForm > &form, const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model) const |
Loads original values from some data, to an EditForm Remark: <ent> may be Null, this means all <model> is concerned Also <model> may be Null, if no context applies for <ent> And both <ent> and <model> may be Null, for a full static editor | |
Standard_Boolean | Apply (const Handle< IFSelect_EditForm > &form, const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model) const |
Applies modified values of the EditForm with some data Remark: <ent> may be Null, this means all <model> is concerned Also <model> may be Null, if no context applies for <ent> And both <ent> and <model> may be Null, for a full static editor | |
Static Public Member Functions | |
static Handle_IFSelect_ParamEditor | StaticEditor (const Handle< TColStd_HSequenceOfHAsciiString > &list, const Standard_CString label="") |
Returns a ParamEditor to work on the Static Parameters of which names are listed in
|
IFSelect_ParamEditor::IFSelect_ParamEditor | ( | const Standard_Integer | nbmax = 100 , |
const Standard_CString | label = "" |
||
) |
void IFSelect_ParamEditor::AddConstantText | ( | const Standard_CString | val, |
const Standard_CString | shortname, | ||
const Standard_CString | completename = "" |
||
) |
void IFSelect_ParamEditor::AddValue | ( | const Handle< Interface_TypedValue > & | val, |
const Standard_CString | shortname = "" |
||
) |
Standard_Boolean IFSelect_ParamEditor::Apply | ( | const Handle< IFSelect_EditForm > & | form, |
const Handle< Standard_Transient > & | ent, | ||
const Handle< Interface_InterfaceModel > & | model | ||
) | const [virtual] |
Implements IFSelect_Editor.
TCollection_AsciiString IFSelect_ParamEditor::Label | ( | ) | const [virtual] |
Implements IFSelect_Editor.
Standard_Boolean IFSelect_ParamEditor::Load | ( | const Handle< IFSelect_EditForm > & | form, |
const Handle< Standard_Transient > & | ent, | ||
const Handle< Interface_InterfaceModel > & | model | ||
) | const [virtual] |
Implements IFSelect_Editor.
Standard_Boolean IFSelect_ParamEditor::Recognize | ( | const Handle< IFSelect_EditForm > & | form | ) | const [virtual] |
Implements IFSelect_Editor.
static Handle_IFSelect_ParamEditor IFSelect_ParamEditor::StaticEditor | ( | const Handle< TColStd_HSequenceOfHAsciiString > & | list, |
const Standard_CString | label = "" |
||
) | [static] |
Handle_TCollection_HAsciiString IFSelect_ParamEditor::StringValue | ( | const Handle< IFSelect_EditForm > & | form, |
const Standard_Integer | num | ||
) | const [virtual] |
Implements IFSelect_Editor.