MeVisLab Scripting Reference
|
A network model item that is used for putting notes onto a network. More...
Inherits MLABNetworkModelItem.
Public Slots | |
Scripting methods | |
void | setText (const QString &text) |
void | setTitle (const QString &title) |
QColor | backgroundColor () const |
void | setBackgroundColor (const QColor &color) |
QString | text () const |
QString | title () const |
void | setIsCollapsed (bool collapsed) |
bool | isCollapsed () const |
void | setTitleFrame (const QRect &titleFrame) |
QRect | titleFrame () const |
void | toggleCollapseExpand () |
void | editTextWithDialog () |
void | editColorWithDialog () |
void | remove () |
QString | groupName () |
void | addToGroup (const QString &groupName) |
A network model item that is used for putting notes onto a network.
void MLABNoteItem::addToGroup | ( | const QString & | groupName | ) | [slot] |
Adds the item to the given group (if groupName is empty, the item is removed from any group it was in) If groupName does not yet exist, a new group with that name is created.
QColor MLABNoteItem::backgroundColor | ( | ) | const [inline, slot] |
Returns the note's background color.
void MLABNoteItem::editColorWithDialog | ( | ) | [slot] |
Shows color dialog for editing the color.
void MLABNoteItem::editTextWithDialog | ( | ) | [slot] |
Edits title and text with a dialog.
QString MLABNoteItem::groupName | ( | ) | [slot] |
Returns the name of the group the item is in.
bool MLABNoteItem::isCollapsed | ( | ) | const [inline, slot] |
Returns whether this note item is collapsed (or expanded).
void MLABNoteItem::remove | ( | ) | [slot] |
Deletes the note.
void MLABNoteItem::setBackgroundColor | ( | const QColor & | color | ) | [inline, slot] |
Sets the background color to the given color.
void MLABNoteItem::setIsCollapsed | ( | bool | collapsed | ) | [inline, slot] |
Sets whether this note item is collapsed (or expanded).
void MLABNoteItem::setText | ( | const QString & | text | ) | [slot] |
Sets the note's text.
void MLABNoteItem::setTitle | ( | const QString & | title | ) | [slot] |
Sets the note's title text.
void MLABNoteItem::setTitleFrame | ( | const QRect & | titleFrame | ) | [inline, slot] |
Sets the title frame.
QString MLABNoteItem::text | ( | ) | const [inline, slot] |
Returns the note's text.
QString MLABNoteItem::title | ( | ) | const [inline, slot] |
Returns the note's title text.
QRect MLABNoteItem::titleFrame | ( | ) | const [inline, slot] |
Returns the title frame.
void MLABNoteItem::toggleCollapseExpand | ( | ) | [inline, slot] |
Toggles the current state of the collapsed/expanded.