Objects of this class have additional functions for comfortable user interaction. For example the undo- management is more easy usable, also the connection to the user interface can be done more automatic.
More...
|
| | EditableObject (Document *doc) |
| | Default constructor.
|
| |
| virtual void | regenerate () |
| | Determines that the visual representation should be renewed for this object in the next run.
|
| |
| virtual void | regenerationDone () |
| | This method should be called by the regeneration method after the visual representation of this object has been updated.
|
| |
| virtual bool | shouldRegenerate () const |
| | Returns the regeneration status.
|
| |
| Document * | document () const |
| | Returns the document this object belongs to.
|
| |
| virtual Status | setMember (String *pointer, const String &value) |
| | The method set the value to the member the pointer references.
|
| |
| virtual Status | setMember (int64 *pointer, int64 value, int64 rangeMin=INT64_MIN, int64 rangeMax=INT64_MAX) |
| | The method set the value to the member the pointer references.
|
| |
| virtual Status | setMember (double *pointer, double value) |
| | The method set the value to the member the pointer references.
|
| |
| virtual Status | setMember (bool *pointer, bool value) |
| |
| virtual Status | setMember (uint8 *pointer, uint8 value) |
| |
| virtual Status | setMember (int16 *pointer, int16 value) |
| |
| virtual Status | setMember (size_t *pointer, size_t value) |
| |
| virtual Status | setMember (Vertex2 *pointer, const Vertex2 &value) |
| |
| virtual Status | setMember (Vertex3 *pointer, const Vertex3 &value) |
| |
| Status | openTransaction () |
| | Begins an editing transaction;.
|
| |
| Status | closeTransaction () |
| | Closes an transaction;.
|
| |
| | Object () noexcept |
| | Constructor.
|
| |
| virtual | ~Object () noexcept |
| | Destructor.
|
| |
| void | release () noexcept |
| | Decreases the reference counter and releases the object immediately when the reference counter becomes 0.
|
| |
| Object * | retain () noexcept |
| | Increases the reference counter of this object by 1.
|
| |
| Object * | autorelease () noexcept |
| | Same function as release(), but releases the object with a delay if the reference counter is 0. AutoreleasePool::drain() must be called in the to release the object.
|
| |
| int32 | referenceCount () const noexcept |
| | Returns the value of the reference counter.
|
| |
| virtual bool | equals (const Object *other) const |
| | Comparison of objects.
|
| |
| virtual String | displayName () const |
| | Returns the display name of the object intended to present to a user.
|
| |
| virtual void | printDiffInfo (DiffOperation operation, Object *other) const |
| | Output method for outputting the diff results for the diff algorithm.
|
| |
| void | setHighBit (bool status) noexcept |
| |
| bool | highBit () const noexcept |
| |
Objects of this class have additional functions for comfortable user interaction. For example the undo- management is more easy usable, also the connection to the user interface can be done more automatic.
| virtual Status jm::EditableObject::setMember |
( |
int64 * |
pointer, |
|
|
int64 |
value, |
|
|
int64 |
rangeMin = INT64_MIN, |
|
|
int64 |
rangeMax = INT64_MAX |
|
) |
| |
|
virtual |
The method set the value to the member the pointer references.
The pointer must point to a member which is part of this or derived object. Here also the Undo-Manager is called for registering the change.
With the range values, a specified range for the input can be defined. For example, if you set rangeMin to 0, this method only accept positive numbers.
- Parameters
-
| pointer | The pointer to the Integer member. |
| value | The new value for the member. |
| rangeMin | Minimum valid value. Default is INT64_MIN |
| rangeMax | Maximum valid value. Default is INT64_MAX |
- Returns
- jm::Status::eOK on success ur if value is equal to current value and jm::Status::eInvalidInput, if value is out of range.