DAZ Script | |
---|---|
ItemsMode | { Selected, Unselected, Checked, NotChecked, All } |
RenameAction | { Accept, Reject } |
ResizeMode | { NoColumn, AllColumns, LastColumn } |
SelectionMode | { Single, Multi, Extended, NoSelection } |
WidthMode | { Manual, Maximum } |
DAZ Script |
---|
DzListView ( DzWidget parent ) |
Todo
The findItem() method takes a ComparisonFlags enum. ComparisonFlags is either not exposed or not documented.
The item mode types
—–
The rename action types
—–
The resize modes of list views
—–
The selection mode types for list views
—–
The width modes types
Whether or not all columns show keyboard focus.
Read-Only: The number root level children in the list view
Read-Only: The number of items in the list box
RenameAction : defaultRenameAction
The default action that is taken when the user attempts to rename an item.
The advisory margin for list view items
The resize mode for the list view
Whether or not the root level items show expand/collapse boxes.
The selection mode for the list view
Whether or not the sort indicator should be displayed.
Whether or not tool tips should be displayed.
The column that the list is sorted by
The sort order of the list view.
The number of pixels that a child item is offset from its parent
Number : addColumn( String label )
Add a column to the list view with the given label
void : clear()
Clears all the items from the list view.
void : clearSelection()
Clears the current selection in the view.
Number : columnAlignment( Number column )
Return Value:
String : columnText( Number index )
Return Value:
Number : columnWidth( Number column )
Return Value:
WidthMode : columnWidthMode( Number column )
Return Value:
DzListViewItem : currentItem()
Return Value:
void : deleteItem( DzListViewItem item )
Deletes given item from the list view.
void : ensureItemVisible( DzListViewItem item )
Ensures the the given item is visible in the view.
DzListViewItem : findItem( String text, Number column, ComparisonFlags compare=ExactMatch|CaseSensitive )
Return Value:
Return Value:
Array : getItems( ItemsMode mode )
Return an array of DzListViewItems that match the supplied ItemsMode Flag.
Parameter(s):
Return Value:
void : hideColumn( Number column )
Hide the given column
Boolean : isOpen( DzListViewItem item )
Return Value:
Boolean : isRenaming()
Return Value:
Boolean : isSelected( DzListViewItem item )
Return Value:
Return Value:
void : removeColumn( Number index )
Remove the column at index from the list view
void : setColumnAlignment( Number column, Number align )
Sets the alignment of the given column.
void : setColumnText( Number index, String label )
Change the label of the column at the given index
void : setColumnWidth( Number column, Number width )
Sets the width of the given column.
void : setColumnWidthMode( Number column, WidthMode mode )
Sets the width mode of the given column.
void : setCurrentItem( DzListViewItem item )
Set the currently highlighted item
void : setOpen( DzListViewItem item, Boolean open )
Sets whether the given item is expanded (open) or collapsed (closed)
void : setSelected( DzListViewItem item, Boolean selected )
Sets whether the given item is selected
void : setSelectionAnchor( DzListViewItem item )
Sets the selection anchor of the view to item.
void : setSorting( Number column, Boolean ascending=TRUE )
Sets the sorting column and order for the view.
void : sort()
Sort the view
void : clicked( DzListViewItem item )
Signature:“clicked(DzListViewItem*)”
Emitted when an item is clicked (mouse button pressed and released)
Parameter(s):
void : clicked( DzListViewItem item, Point pos, Number col )
Signature:“clicked(DzListViewItem*,const QPoint&,int)”
Emitted when an item is clicked (mouse button pressed and released)
Parameter(s):
void : collapsed( DzListViewItem item )
Signature:“collapsed(DzListViewItem*)”
Emitted when an item is collapsed (when item 's children are hidden)
Parameter(s):
void : contextMenuRequested( DzListViewItem item, Point pos, Number col )
Signature:“contextMenuRequested(DzListViewItem*,const QPoint&,int)”
Emitted when the user right clicks the list view, or uses a special system key, for a context menu
Parameter(s):
void : currentChanged( DzListViewItem item )
Signature:“currentChanged(DzListViewItem*)”
Emitted when the current item changes
Parameter(s):
void : doubleClicked( DzListViewItem item, Point pos, Number col )
Signature:“doubleClicked(DzListViewItem*,const QPoint&,int)”
Emitted when an item is double clicked (on the second button press, not release)
Parameter(s):
void : expanded( DzListViewItem item )
Signature:“expanded(DzListViewItem*)”
Emitted when an item is expanded (when item 's children are shown)
Parameter(s):
void : itemRenamed( DzListViewItem item, Number col, String text )
Signature:“itemRenamed(DzListViewItem*,int,const QString&)”
Emitted when an item is renamed
Parameter(s):
void : itemRenamed( DzListViewItem item, Number col )
Signature:“itemRenamed(DzListViewItem*,int)”
Emitted when an item is renamed
Parameter(s):
void : mouseButtonClicked( Number button, DzListViewItem item, Point pos, Number col )
Signature:“mouseButtonClicked(int,DzListViewItem*,const QPoint&,int)”
Emitted when an item is clicked with the a mouse button (mouse button pressed and released)
Parameter(s):
void : mouseButtonPressed( Number button, DzListViewItem item, Point pos, Number col )
Signature:“mouseButtonPressed(int,DzListViewItem*,const QPoint&,int)”
Emitted when an item is pressed with the a mouse button (mouse button pressed)
Parameter(s):
void : pressed( DzListViewItem item, Point pos, Number col )
Signature:“pressed(DzListViewItem*,const QPoint&,int)”
Emitted when an item is pressed (mouse button pressed)
Parameter(s):
void : pressed( DzListViewItem item )
Signature:“pressed(DzListViewItem*)”
Emitted when an item is pressed (mouse button pressed)
Parameter(s):
void : returnPressed( DzListViewItem item )
Signature:“returnPressed(DzListViewItem*)”
Emitted when return is pressed on the current item
Parameter(s):
void : rightButtonClicked( DzListViewItem item, Point pos, Number col )
Signature:“rightButtonClicked(DzListViewItem*,const QPoint&,int)”
Emitted when an item is clicked with the right button (mouse button pressed and released)
Parameter(s):
void : rightButtonPressed( DzListViewItem item, Point pos, Number col )
Signature:“rightButtonPressed(DzListViewItem*,const QPoint&,int)”
Emitted when an item is pressed with the right button (mouse button pressed)
Parameter(s):
void : selectionChanged()
Signature:“selectionChanged()”
Emitted when the selected item changes.
void : selectionChanged( DzListViewItem item )
Signature:“selectionChanged(DzListViewItem*)”
Emitted when the selected item changes
Parameter(s):
void : spacePressed( DzListViewItem item )
Signature:“spacePressed(DzListViewItem*)”
Emitted when the spacebar is pressed on the current item
Parameter(s):