MeVisLab Scripting Reference
|
Inherits QObject.
Public Slots | |
Scripting access. | |
| |
QString | text (int column) const |
QStringList | texts () const |
void | setText (int column, const QString &text) |
void | setTexts (const QStringList &list) |
QVariant | value (int column) const |
QVariantList | values () const |
void | setValue (int column, const QVariant &value) |
void | setValues (const QVariantList &list) |
void | setPixmapFile (int column, const QString &pixmapfile) |
void | setPixmap (int column, const QPixmap &pixmap) |
bool | hasPixmap (int column) const |
QPixmap | pixmap (int column) const |
void | setForegroundColor (int column, const QColor &color) |
QColor | foregroundColor (int column) const |
void | setBackgroundColor (int column, const QColor &color) |
QColor | backgroundColor (int column) const |
void | setBoldFont (int column, bool bold=true) |
bool | isBoldFont (int column) |
void | setItalicFont (int column, bool italic=true) |
bool | isItalicFont (int column) |
void | setRelativeFontSize (int column, int relSize) |
void | setToolTip (int column, const QString &toolTip) |
QString | toolTip (int column) const |
void | setUserData (const QVariant &data) |
QVariant | userData () const |
int | childCount () const |
int | numChildren () const |
MLABListViewItem * | appendItem (const QStringList &texts) |
MLABListViewItem * | insertItem (MLABListViewItem *after, const QStringList &texts) |
QList< MLABListViewItem * > | children () const |
MLABListViewItem * | firstChild () |
MLABListViewItem * | nextSibling () |
MLABListViewItem * | parent () |
MLABListViewItem * | itemAbove () |
MLABListViewItem * | itemBelow () |
void | setEnabled (bool b) |
bool | isEnabled () const |
void | setMultiLinesEnabled (bool b) |
void | setVisible (bool flag) |
bool | isVisible () const |
void | setExpanded (bool flag) |
bool | isExpanded () const |
void | setSelected (bool flag) |
bool | isSelected () const |
void | setEditable (int column, bool flag) |
bool | isEditable (int column) const |
void | startEditing (int column) |
void | showChildren (bool flag) |
bool | isFiltered () const |
int | id () const |
void | setSortData (int column, QVariant sortData) |
CheckBox scripting access. | |
| |
bool | isCheckBox () const |
bool | isOn (int column=0) const |
void | setOn (bool flag) |
void | setCheckBoxOn (int column, bool flag) |
void | setAutomaticCheckBox (int column, bool flag=true) |
Deprecated | |
| |
void | setOpen (bool flag) |
bool | isOpen () const |
void | setRenameEnabled (int column, bool flag) |
bool | isRenameEnabled (int column) const |
void | startRename (int column) |
A single ListView item that contains texts and images for each column used in an MLABListViewControl.
New items can be created via the insertItem() and insertChildItem() methods. You can use MLABListViewItem::setUserData() to store any Python object as part of the list view items.
MDL reference: ListView
Each item has a unique ID within the ListViewControl, which can be retrieved via id().
|
slot |
Appends a new child item to the end of the children list.
|
slot |
Returns the background color for the column
, is invalid if not set.
|
slot |
Returns the number of child items.
|
slot |
Returns a list of the direct children.
|
inlineslot |
Returns the first child if any, NULL otherwise.
|
slot |
Returns the foreground color for the column
, is invalid if not set.
|
slot |
Returns whether an item in a column
has a pixmap.
|
inlineslot |
Returns a unique integer ID for this item (unique in this list view).
|
slot |
Inserts a new child item after
the given item.
The after
item needs to have this item as its parent.
|
slot |
Returns whether the font is bold at column
.
|
inlineslot |
Returns whether the item is a check box (or a radio item).
|
slot |
Returns whether editing is enabled on the given column
.
|
inlineslot |
Returns whether this item is enabled.
|
slot |
Returns whether the item is expanded (if it has children).
|
slot |
Returns whether the item is filtered away by a filter set on the control with setItemFilter.
setVisible, setOpen, setSelected will have no effect, isVisible, isOpen, and isSelected will return false.
|
slot |
Returns whether the font is italic at column
.
|
slot |
Returns the checked state of the check box.
|
inlineslot |
|
inlineslot |
|
slot |
Returns whether the item is selected.
|
slot |
Returns whether the item is visible (doesn't mean it's visible on the screen at all, the panel could be moved out of the screen).
|
slot |
Returns the visible item above this item (only works if this item is visible), NULL otherwise.
|
slot |
Returns the visible item below this item (only works if this item is visible), NULL otherwise.
|
inlineslot |
Returns the next sibling.
|
inlineslot |
Returns the number of child items.
|
slot |
Returns the parent if any, NULL otherwise.
|
slot |
Returns the pixmap at column
.
|
slot |
Makes given column an automatic check box representing its child item's check boxes in the same column.
A 'partial' state may be displayed if child check boxes have different states. Clicking the check box will change its child item's states (as will a call to setOn or setCheckBoxOn).
Note: Because of their update behavior, automatic check boxes will be slower if they have a lot of child items (quadratic behavior).
isOn will return whether any child item has a checked check box for automatic check boxes. The checkListItemChangedCommand will not be called for automatic check boxes, only for its children.
|
slot |
Sets the background color
for the column
.
|
slot |
Sets whether the column
to be displayed in bold font.
|
slot |
Sets the checked state of the check box for any column
(shows a new check box if there wasn't one yet).
|
slot |
Enables the editing for given column
of the item.
|
slot |
Sets whether this item is enabled (disabled items are grayed out).
|
slot |
Sets whether the item is expanded (if it has children).
|
slot |
Sets the foreground color
for the column
.
|
slot |
Sets whether the column
to be displayed in italic font.
|
slot |
Enables multiline texts.
|
slot |
Sets the checked state of the check box.
|
inlineslot |
|
slot |
Sets a pixmap from pixmap for column
.
|
slot |
Sets a pixmap from file for column
.
|
slot |
Sets the column
to be displayed in a smaller/larger font, according to relSize.
A relative size of 0 means unchanged.
|
inlineslot |
|
slot |
Sets whether the item is selected.
|
inlineslot |
Sets the data that is used when sorting the items. By default, if no sort data is set, the item text is used.
|
slot |
Sets the text
for column
.
|
slot |
Sets all texts from column 0 to n.
|
slot |
Sets the tool tip text for the column
.
|
slot |
Sets a user data
object.
This can store any QVariant, even a Python object provided by the caller.
|
slot |
Sets the value for column - the value
can be (practically) a string type or a numerical type.
|
slot |
Sets all values from column 0 to n.
|
slot |
Sets whether the item is visible.
|
slot |
Shows/hides the children of this item (default is that items are shown, new items that are added are always shown).
This has the same effect as calling setVisible(flag) on each child item.
|
slot |
Starts the editing by placing the cursor in the given column
, only works if setEditable() was set to true
for that column.
|
inlineslot |
|
slot |
Returns the text for column
.
|
slot |
Returns all texts from column 0 to n.
|
slot |
Returns the tool tip text for the column
.
|
slot |
Returns the user data object set by user.
|
slot |
Returns the value for column
.
|
slot |
Returns all values from column 0 to n.