DzListViewItem Class Reference
[Interface Widget Objects]

DAZ Script list view item. More...

Inheritance diagram for DzListViewItem:

QObject Object DzCheckListItem List of all members.

Properties

Boolean dragEnabled
Boolean dropEnabled
Boolean enabled
Boolean expandable
Number height
Number id
Boolean multiLinesEnabled
Boolean open
Boolean selectable
Boolean selected
Boolean visible

Methods

void addDataItem (String key, Object val)
Number childCount ()
Number compare (DzListViewItem item, Number column, Boolean ascending)
void deleteItem (DzListViewItem item)
Number depth ()
DzListViewItem firstChild ()
Object getDataItem (String key)
Number getNumDataItems ()
void insertItem (DzListViewItem newChild)
DzListViewItem itemAbove ()
DzListViewItem itemBelow ()
String key (Number column, Boolean ascending)
DzListView listView ()
void moveItem (DzListViewItem item)
DzListViewItem nextSibling ()
DzListViewItem parent ()
Pixmap pixmap (Number column)
void removeItem (DzListViewItem item)
Boolean renameEnabled (Number column)
void setPixmap (Number column, Pixmap pm)
void setRenameEnabled (Number column, Boolean yesNo)
void setText (Number column, String text)
void sort ()
void sortChildItems (Number column, Boolean ascending)
void startRename (Number column)
String text (Number column)

Constructors

 DzListViewItem (DzListViewItem parent, Number id=-1)
 DzListViewItem (DzListView parent, Number id=-1)

Detailed Description

DAZ Script list view item.

This class is not a widget, but a helper class for working with DzListView. Each DzListViewItem represents a single item in a list view - add items to a list view by creating a new DzListViewItem that is a child of the list view, or a child of another list view item in the list view.


Constructor & Destructor Documentation

DzListViewItem::DzListViewItem ( DzListView  parent,
Number  id = -1 
)

Creates a list view item at the root level of the given list view

Parameters:
parent The listview to create this item as a child of
id The identifier for this item

DzListViewItem::DzListViewItem ( DzListViewItem  parent,
Number  id = -1 
)

Creates a list view item as a child of the given list view item

Parameters:
parent The item to create this item as a child of
id The identifier for this item


Member Function Documentation

void DzListViewItem::addDataItem ( String  key,
Object  val 
)

Adds an arbitrary data item to be stored with the item

Number DzListViewItem::childCount (  ) 

Returns:
The number of children in this item.

Number DzListViewItem::compare ( DzListViewItem  item,
Number  column,
Boolean  ascending 
)

Compares the given listview item with this item

void DzListViewItem::deleteItem ( DzListViewItem  item  ) 

Deletes given item from the list view item's list of children items.

Number DzListViewItem::depth (  ) 

Returns:
The depth of this item

DzListViewItem DzListViewItem::firstChild (  ) 

Returns:
The first child of this list view item

Object DzListViewItem::getDataItem ( String  key  ) 

Returns:
The value of an arbitrary data item

Number DzListViewItem::getNumDataItems (  ) 

Returns:
The number of data items on the item

void DzListViewItem::insertItem ( DzListViewItem  newChild  ) 

Insert the item as a child of this item

DzListViewItem * DzListViewItem::itemAbove (  ) 

Returns:
The item above this list view item

DzListViewItem * DzListViewItem::itemBelow (  ) 

Returns:
The item below this list view item

String DzListViewItem::key ( Number  column,
Boolean  ascending 
)

Sets the column and order that determines how the list is sorted

DzListView DzListViewItem::listView (  ) 

Returns:
The list view that this item resides in

void DzListViewItem::moveItem ( DzListViewItem  item  ) 

Moves this item to be after the given item, which must be one of its siblings

DzListViewItem DzListViewItem::nextSibling (  ) 

Returns:
The next sibling of this list view item

DzListViewItem DzListViewItem::parent (  ) 

Returns:
The parent of this list view item

Pixmap DzListViewItem::pixmap ( Number  column  ) 

Returns:
The pixmap for this item in the given column

void DzListViewItem::removeItem ( DzListViewItem  item  ) 

Remove the item from the children of this item

Boolean DzListViewItem::renameEnabled ( Number  column  ) 

Returns:
Whether or not the text in the given column can be changed by the user.

void DzListViewItem::setPixmap ( Number  column,
Pixmap  pm 
)

Sets the pixmap for this item in the given column

void DzListViewItem::setRenameEnabled ( Number  column,
Boolean  yesNo 
)

Sets whether or not the text in the given column can be changed by the user.

void DzListViewItem::setText ( Number  column,
String  text 
)

Set the text for this list view item in the given column

void DzListViewItem::sort (  ) 

Sorts the children of this item according to the current sorting column and order.

void DzListViewItem::sortChildItems ( Number  column,
Boolean  ascending 
)

Sorts the children items of this item by the given column in the given order.

void DzListViewItem::startRename ( Number  column  ) 

Starts a rename operation.

String DzListViewItem::text ( Number  column  ) 

Returns:
The text for this list view item in the given column


Member Data Documentation

bool DzListViewItem::dragEnabled

Holds whether the item can be dragged

bool DzListViewItem::dropEnabled

Holds whether the item can have other items dropped on it

Boolean DzListViewItem::enabled

Holds whether the item can be enabled

Boolean DzListViewItem::expandable

Holds whether the item can be expanded (opened)

Number DzListViewItem::height

Holds the height of the item.

Reimplemented in DzCheckListItem.

Number DzListViewItem::id

Holds the identifier for this item. (Read Only)

bool DzListViewItem::multiLinesEnabled

Holds whether the item can be displayed on multiple lines

Boolean DzListViewItem::open

Holds whether the item is expanded (open) or collapsed (closed)

Boolean DzListViewItem::selectable

Holds whether the item can be selected

Boolean DzListViewItem::selected

Holds whether the item is selected

Boolean DzListViewItem::visible

Holds whether the item is visible


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.