AfrProperties Interface CATIEditProperties
Usage: you can reimplement this interface by deriving the supplied CATEditor adapter class.
interface CATIEditProperties
Interface to create an Edit Properties property page.
Role: Each property page of the Edit Properties
command corresponds to an implementation of the
CATIEditProperties interface.
Step by step: CATEditorManager implements the IMyPropertyEdtFactory factory interface.
This Factory creates a MyPropertyEdt instance class. This class implements the
CATIEditProperties interface.
- Create the factory IMyPropertyEdtFactory interface which
derives from
- Implement this factory interface using macros
This implementation, MyPropertyEdtFactory, is done in the module myModule
thanks to 2 macros:
and
- The header file MyPropertyEdtFactory.h must contain these two lines:
#include "CATEditorFactory.h"
#include "MyPropertyEdt.h"
#define ExportedByNOTHING
CAT_EDITOR_DECLARE_FACTORY(NOTHING, MyPropertyEdt, MyPropertyEdt);
- The source file MyPropertyEdtFactory.cpp must contain these lines:
#include "MyPropertyEdtFactory.h"
CAT_EDITOR_DEFINE_FACTORY(MyPropertyEdt, MyPropertyEdt);
#include "TIE_IMyPropertyEdtFactory.h"
TIE_IMyPropertyEdtFactory(MyPropertyEdtFactory);
- To declare that CATEditorManager implements IMyPropertyEdtFactory,
insert the following line in the interface dictionary:
CATEditorManager IMyPropertyEdtFactory myModule
- To declare that the factory creates an instance of the MyPropertyEdt class,
insert the following line in the factory dictionary:
MyPropertyEdt IMyPropertyEdtFactory
- Implement the CATIEditProperties interface, describe here, with a class which
derives from the adapter class
BOA information: this interface CANNOT be implemented
using the BOA (Basic Object Adapter).
To know more about the BOA, refer to the CAA Encyclopedia home page.
Click Middleware at the bottom left, then click the Object Modeler tab page.
Several articles deal with the BOA.
Method Index
- o
BuildEditor(CATEditorPage*)
- Constructs the dialog objects of the editor.
- o
CancelModification(CATLISTV(CATBaseUnknown_var)&)
- Cancels a modification when closing the panel.
- o
CheckPropertyValues(CATBoolean&)
- Check the Property Values
- o
CloseWindowFromEditor()
- Closes dialog object open by the editor.
- o
CommitModification(CATLISTV(CATBaseUnknown_var)&)
- Validates modifications done on objects from iExtract.
- o
ExtractFromSelection(CATLISTV(CATBaseUnknown_var)&,CATLISTV(CATBaseUnknown_var)*)
- Extracts from the selection the objects which can be managed.
- o
GetEditorTitle()
- Returns the editor title.
- o
GetListOfUnexpectedTabpages()
- Returns the list of unexpected tab pages.
- o
GetUndoFromEditor()
- Records an undo action from the editor.
- o
OKToRepaintOnCommit(int&)
- Sets the behaviour of the dialog objects during the update of tabpages when applying modifications.
- o
SetEditorSize(int&)
- Sets editor's size.
- o
SetPropertyValue(CATLISTV(CATBaseUnknown_var)&,ModeReadWrite)
- Valuates the dialog objects.
- o
ValuePropertyOnOK(CATBoolean&)
- Sets the behaviour of the dialog objects when applying modifications by OK.
Methods
o BuildEditor
public virtual BuildEditor( | | iMyPage) |
-
Constructs the dialog objects of the editor.
- Parameters:
-
- iMyPage
- to specify a tab page.
o CancelModification
public virtual CancelModification( | | iExtract) |
-
Cancels a modification when closing the panel.
- Parameters:
-
- iExtract
- list of objects supposed to be managed.
o CheckPropertyValues
public virtual CheckPropertyValues( | | oStatus) |
-
Check the Property Values
- Parameters:
-
- oStatus
-
Legal Values :
FALSE : There is some error in the values
TRUE : The Values are Proper
o CloseWindowFromEditor
public virtual CloseWindowFromEditor( | ) |
-
Closes dialog object open by the editor.
o CommitModification
public virtual CommitModification( | | iExtract) |
-
Validates modifications done on objects from iExtract.
- Parameters:
-
- iExtract
- list of objects supposed to be managed.
o ExtractFromSelection
public virtual ExtractFromSelection( | | oExtract, |
| const | iSelection | =NULL ) |
-
Extracts from the selection the objects which can be managed.
- Parameters:
-
- oExtract
- list of objects which can be managed
- iSelection
- list of objects of current CSO.
o GetEditorTitle
public virtual GetEditorTitle( | ) |
-
Returns the editor title.
o GetListOfUnexpectedTabpages
public virtual GetListOfUnexpectedTabpages( | ) |
-
Returns the list of unexpected tab pages.
o GetUndoFromEditor
public virtual GetUndoFromEditor( | ) |
-
Records an undo action from the editor.
o OKToRepaintOnCommit
public virtual OKToRepaintOnCommit( | | oStatus) |
-
Sets the behaviour of the dialog objects during the update of tabpages when applying modifications.
Useful for tab pages depending on each other
- Parameters:
-
- oStatus
-
Legal Values :
0 if no repaint is required : for each tabpage, methods CommitModification and SetPropertyValue are called one after the other
1 otherwise : default behaviour - for each tabpage method CommitModification is applied. Then, for each tabpage method SetPropertyValue is called.
o SetEditorSize
public virtual SetEditorSize( | | ioSize) |
-
Sets editor's size.
- Parameters:
-
- ioSize
- size of the editor
Legal Values :
1 (smallest)
2
3 (largest)
o SetPropertyValue
public virtual SetPropertyValue( | | iExtract, |
| | iMode) |
-
Valuates the dialog objects.
- Parameters:
-
- iExtract
- list of objects supposed to be managed.
- iMode
- ReadOnly or Write mode
o ValuePropertyOnOK
public virtual ValuePropertyOnOK( | | oStatus) |
-
Sets the behaviour of the dialog objects when applying modifications by OK.
- Parameters:
-
- oStatus
-
Legal Values :
FALSE : SetPropertyValue method is not called after OK is pressed.
TRUE otherwise : default behaviour - SetPropertyValue method is called when APPLY or/and OK are pressed.
This object is included in the file: CATIEditProperties.h
If needed, your Imakefile.mk should include the module: CATAfrProperties
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.