IModelEditor.h
Go to the documentation of this file.
1 #ifndef imod_IModelEditor_included
2 #define imod_IModelEditor_included
3 
4 
5 // ACF includes
6 #include <istd/IPolymorphic.h>
7 #include <istd/IChangeable.h>
8 #include <imod/imod.h>
9 
10 
11 namespace imod
12 {
13 
19 class IModelEditor: virtual public istd::IPolymorphic
20 {
21 public:
26  {
30  CF_INIT_EDITOR = 0x3720694
31  };
32 
38  virtual void UpdateEditor(const istd::IChangeable::ChangeSet& changeSet) = 0;
39 
44  virtual void UpdateModelFromEditor() const = 0;
45 
49  virtual bool IsReadOnly() const = 0;
50 
55  virtual void SetReadOnly(bool state) = 0;
56 };
57 
58 
59 } // namespace imod
60 
61 
62 #endif // !imod_IModelEditor_included
63 
virtual void UpdateModelFromEditor() const =0
Updates model from editor.
Called at begin of editor initialization.
Definition: IModelEditor.h:30
Common interface for an model editor.
Definition: IModelEditor.h:19
virtual void SetReadOnly(bool state)=0
Set flag that the model data can be changed.
virtual bool IsReadOnly() const =0
Returns true if the model data can be changed.
virtual void UpdateEditor(const istd::IChangeable::ChangeSet &changeSet)=0
Updates editor with model data.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
ChangeFlags
Data model change notification flags.
Definition: IModelEditor.h:25
Set of change flags (its IDs).
Definition: IChangeable.h:30

© 2007-2017 Witold Gantzke and Kirill Lepskiy