Workspace 6.21.5
|
Event emitted when a WorkspaceNoteItem has been moved.
#include <Workspace/Presentation/workspacenoteitemevents.h>
Public Member Functions | |
MoveNoteItemEvent (const QUuid ¬eItemId, const QPointF &delta, bool allowSnapToGrid=true) | |
bool | getAllowSnapToGrid () const |
const QPointF & | getDelta () const |
const QUuid & | getNoteItemId () const |
Public Member Functions inherited from ObservableEventType< MoveNoteItemEvent > | |
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::AllObservableEvents > & | eventID () |
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::ProgressEvent > & | eventID () |
const EventIDSingleton< MoveNoteItemEvent > & | getEventID () const override |
Public Member Functions inherited from ObservableEvent | |
virtual | ~ObservableEvent ()=default |
virtual const EventID & | getEventID () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from ObservableEventType< MoveNoteItemEvent > | |
static const EventIDSingleton< MoveNoteItemEvent > & | eventID () |
Protected Member Functions inherited from ObservableEventType< MoveNoteItemEvent > | |
ObservableEventType ()=default | |
|
inline |
noteItemId | The id of the note item to move. |
delta | The amount to move the specified note item relative to its current position. |
allowSnapToGrid | If true, the note item will be forced to the nearest grid point after shifting it by delta. Set this to false in situations where the exact delta must be applied, such as when undoing a move event. |
|
inline |
|
inline |
|
inline |