File indexing completed on 2025-01-18 10:03:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IFSelect_ParamEditor_HeaderFile
0018 #define _IFSelect_ParamEditor_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TCollection_AsciiString.hxx>
0024 #include <IFSelect_Editor.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TColStd_HSequenceOfHAsciiString.hxx>
0027 class Interface_TypedValue;
0028 class IFSelect_EditForm;
0029 class TCollection_HAsciiString;
0030 class Standard_Transient;
0031 class Interface_InterfaceModel;
0032
0033 class IFSelect_ParamEditor;
0034 DEFINE_STANDARD_HANDLE(IFSelect_ParamEditor, IFSelect_Editor)
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044 class IFSelect_ParamEditor : public IFSelect_Editor
0045 {
0046
0047 public:
0048
0049
0050
0051
0052 Standard_EXPORT IFSelect_ParamEditor(const Standard_Integer nbmax = 100, const Standard_CString label = "");
0053
0054
0055
0056 Standard_EXPORT void AddValue (const Handle(Interface_TypedValue)& val,
0057 const Standard_CString shortname = "");
0058
0059
0060
0061 Standard_EXPORT void AddConstantText (const Standard_CString val, const Standard_CString shortname, const Standard_CString completename = "");
0062
0063 Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
0064
0065 Standard_EXPORT Standard_Boolean Recognize (const Handle(IFSelect_EditForm)& form) const Standard_OVERRIDE;
0066
0067 Standard_EXPORT Handle(TCollection_HAsciiString) StringValue (const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const Standard_OVERRIDE;
0068
0069 Standard_EXPORT Standard_Boolean Load (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
0070
0071 Standard_EXPORT Standard_Boolean Apply (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
0072
0073
0074
0075
0076 Standard_EXPORT static Handle(IFSelect_ParamEditor) StaticEditor (const Handle(TColStd_HSequenceOfHAsciiString)& list, const Standard_CString label = "");
0077
0078 DEFINE_STANDARD_RTTIEXT(IFSelect_ParamEditor,IFSelect_Editor)
0079
0080 private:
0081
0082 TCollection_AsciiString thelabel;
0083
0084 };
0085
0086 #endif