Workspace 6.21.5
Public Member Functions | List of all members
AddNoteItem Class Reference

Command class for adding a note item.

#include <Workspace/Presentation/UndoCommands/addnoteitem.h>

Inheritance diagram for AddNoteItem:
[legend]

Public Member Functions

 AddNoteItem (DataExecution::Workspace &workspace, const QPointF &point, qreal width=250.0, const QString &text="Empty note")
 
const QUuid & getNoteId () const
 
void redo () override
 
void undo () override
 

Constructor & Destructor Documentation

◆ AddNoteItem()

AddNoteItem ( DataExecution::Workspace workspace,
const QPointF &  point,
qreal  width = 250.0,
const QString &  text = "Empty note" 
)

Member Function Documentation

◆ getNoteId()

const QUuid & getNoteId ( ) const
inline
Returns
The ID of the note created by redo(). Note that this function must not be called before redo() has been called at least once.

◆ redo()

void redo ( )
override

◆ undo()

void undo ( )
override