MLABIconViewControl Class Reference
[GUI ControlsCommon GUI Controls]

IconView control. More...

Inherits MLABSimpleWidgetControl.

List of all members.

Public Slots

Scripting access
void changeItem (int idx, const QString &pixmapFile, const QString &text)
void changeItemPixmap (int idx, const QString &pixmapFile)
void changeItemText (int idx, const QString &text)
void clearItems ()
int countItems ()
int currentItem ()
void insertItem (const QString &pixmap, const QString &text, int after)
void insertItem (const QString &pixmap, const QString &text)
void insertItems (const QStringList &pixmaps, const QStringList &texts, int after)
void insertItems (const QStringList &pixmaps, const QStringList &texts)
bool isItemSelected (int idx)
QString itemText (int idx)
void removeItem (int idx)
int selectedItem ()
void selectItem (int idx, bool selected)
void setCurrentItem (int idx)
void setSelectedItem (int idx)
void sort (bool ascending)


Detailed Description

IconView control.

Control for showing an IconView.

MDL reference: IconView


Member Function Documentation

void MLABIconViewControl::changeItem ( int  idx,
const QString &  pixmapFile,
const QString &  text 
) [slot]

change item text and pixmap

void MLABIconViewControl::changeItemPixmap ( int  idx,
const QString &  pixmapFile 
) [slot]

change pixmap of item

void MLABIconViewControl::changeItemText ( int  idx,
const QString &  text 
) [slot]

change text of item

void MLABIconViewControl::clearItems (  )  [slot]

clear all items

int MLABIconViewControl::countItems (  )  [slot]

returns number of items

int MLABIconViewControl::currentItem (  )  [slot]

index of current item

void MLABIconViewControl::insertItem ( const QString &  pixmap,
const QString &  text,
int  after 
) [slot]

insert new item with absolute pixmap path and the given text, insert after given index

void MLABIconViewControl::insertItem ( const QString &  pixmap,
const QString &  text 
) [slot]

insert new item with absolute pixmap path and the given text

void MLABIconViewControl::insertItems ( const QStringList &  pixmaps,
const QStringList &  texts,
int  after 
) [slot]

insert given items with absolute pixmap paths and the given texts, insert after given index

void MLABIconViewControl::insertItems ( const QStringList &  pixmaps,
const QStringList &  texts 
) [slot]

insert given items with absolute pixmap paths and the given texts

bool MLABIconViewControl::isItemSelected ( int  idx  )  [slot]

returns if item is selected

QString MLABIconViewControl::itemText ( int  idx  )  [slot]

get text at index

void MLABIconViewControl::removeItem ( int  idx  )  [slot]

remove item

int MLABIconViewControl::selectedItem (  )  [slot]

index of selected item

void MLABIconViewControl::selectItem ( int  idx,
bool  selected 
) [slot]

select an item (on/off)

void MLABIconViewControl::setCurrentItem ( int  idx  )  [slot]

set the current item

void MLABIconViewControl::setSelectedItem ( int  idx  )  [slot]

select an item

void MLABIconViewControl::sort ( bool  ascending  )  [slot]

sort the items alphabetically (changes index order), needs to be called after each insert


Generated on Sat Sep 3 18:38:02 2011 for MeVisLab Scripting Reference by  doxygen 1.5.8