summaryrefslogtreecommitdiff
path: root/inc/IFSelect_ParamEditor.hxx
blob: 1a0b4ea018fd513f2981127e94ed2c74fbac1afc (plain)
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
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IFSelect_ParamEditor_HeaderFile
#define _IFSelect_ParamEditor_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IFSelect_ParamEditor_HeaderFile
#include <Handle_IFSelect_ParamEditor.hxx>
#endif

#ifndef _TCollection_AsciiString_HeaderFile
#include <TCollection_AsciiString.hxx>
#endif
#ifndef _IFSelect_Editor_HeaderFile
#include <IFSelect_Editor.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Handle_Interface_TypedValue_HeaderFile
#include <Handle_Interface_TypedValue.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_IFSelect_EditForm_HeaderFile
#include <Handle_IFSelect_EditForm.hxx>
#endif
#ifndef _Handle_TCollection_HAsciiString_HeaderFile
#include <Handle_TCollection_HAsciiString.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Handle_Interface_InterfaceModel_HeaderFile
#include <Handle_Interface_InterfaceModel.hxx>
#endif
#ifndef _Handle_TColStd_HSequenceOfHAsciiString_HeaderFile
#include <Handle_TColStd_HSequenceOfHAsciiString.hxx>
#endif
class Interface_TypedValue;
class TCollection_AsciiString;
class IFSelect_EditForm;
class TCollection_HAsciiString;
class Standard_Transient;
class Interface_InterfaceModel;
class TColStd_HSequenceOfHAsciiString;


//! A ParamEditor gives access for edition to a list of TypedValue <br>
//!           (i.e. of Static too) <br>
//!           Its definition is made of the TypedValue to edit themselves, <br>
//!           and can add some constants, which can then be displayed but <br>
//!           not changed (for instance, system name, processor version ...) <br>
//! <br>
//!           I.E. it gives a way of editing or at least displaying <br>
//!           parameters as global <br>
class IFSelect_ParamEditor : public IFSelect_Editor {

public:

  //! Creates a ParamEditor, empty, with a maximum count of params <br>
//!           (default is 100) <br>
//!           And a label, by default it will be "Param Editor" <br>
  Standard_EXPORT   IFSelect_ParamEditor(const Standard_Integer nbmax = 100,const Standard_CString label = "");
  //! Adds a TypedValue <br>
//!           By default, its short name equates its complete name, it can <br>
//!           be explicited <br>
  Standard_EXPORT     void AddValue(const Handle(Interface_TypedValue)& val,const Standard_CString shortname = "") ;
  //! Adds a Constant Text, it will be Read Only <br>
//!           By default, its long name equates its shortname <br>
  Standard_EXPORT     void AddConstantText(const Standard_CString val,const Standard_CString shortname,const Standard_CString completename = "") ;
  
  Standard_EXPORT     TCollection_AsciiString Label() const;
  
  Standard_EXPORT     Standard_Boolean Recognize(const Handle(IFSelect_EditForm)& form) const;
  
  Standard_EXPORT     Handle_TCollection_HAsciiString StringValue(const Handle(IFSelect_EditForm)& form,const Standard_Integer num) const;
  
  Standard_EXPORT     Standard_Boolean Load(const Handle(IFSelect_EditForm)& form,const Handle(Standard_Transient)& ent,const Handle(Interface_InterfaceModel)& model) const;
  
  Standard_EXPORT     Standard_Boolean Apply(const Handle(IFSelect_EditForm)& form,const Handle(Standard_Transient)& ent,const Handle(Interface_InterfaceModel)& model) const;
  //! Returns a ParamEditor to work on the Static Parameters of <br>
//!           which names are listed in <list> <br>
//!           Null Handle if <list> is null or empty <br>
  Standard_EXPORT   static  Handle_IFSelect_ParamEditor StaticEditor(const Handle(TColStd_HSequenceOfHAsciiString)& list,const Standard_CString label = "") ;




  DEFINE_STANDARD_RTTI(IFSelect_ParamEditor)

protected:




private: 


TCollection_AsciiString thelabel;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif