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: Add detailed description.
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
Holds whether or not all columns show keyboard focus.
Holds the number root level children in the list view. (Read Only)
Holds the number of items in the list box. (Read Only)
RenameAction : defaultRenameAction
Holds the default action that is taken when the user attempts to rename an item.
Holds the advisory margin for list view items.
Holds the resize mode for the list view.
Holds whether or not the root level items show expand/collapse boxes.
Holds the selection mode for the list view.
Holds whether or not the sort indicator should be displayed.
Holds whether or not tool tips should be displayed.
Holds the column that the list is sorted by.
Holds the sort order of the list view.
Holds the number of pixels that a child item is offset from its parent.
DzListView( DzWidget parent )
Creates a list view widget with the specified parent widget
Parameter(s):
Number : addColumn( String label )
Adds a column to the list view.
Parameter(s):
void : clear()
Clears all items from the list view.
void : clearSelection()
Clears the current selection in the view.
Number : columnAlignment( Number column )
Parameter(s):
Return Value:
String : columnText( Number column )
Parameter(s):
Return Value:
Number : columnWidth( Number column )
Parameter(s):
Return Value:
WidthMode : columnWidthMode( Number column )
Parameter(s):
Return Value:
DzListViewItem : currentItem()
Return Value:
void : deleteItem( DzListViewItem item )
Deletes an item from the list view.
Parameter(s):
void : ensureItemVisible( DzListViewItem item )
Ensures an item is visible in the view.
Parameter(s):
DzListViewItem : findItem( String text, Number column, Number compare=ExactMatch|CaseSensitive )
Parameter(s):
Return Value:
Return Value:
Array : getItems( ItemsMode mode )
Parameter(s):
Return Value:
Return Value:
void : hideColumn( Number column )
Hide the specified column
Parameter(s):
Boolean : isOpen( DzListViewItem item )
Parameter(s):
Return Value:
true
if the specified item is expanded (open), or false
if it is collapsed (closed).Boolean : isRenaming()
Return Value:
true
if the view is currently in a renaming operation, otherwise false
.Boolean : isSelected( DzListViewItem item )
Parameter(s):
Return Value:
true
if the specified item is selected, otherwise false
.Return Value:
void : removeColumn( Number column )
Removes a column from the list view.
Parameter(s):
DzListViewItem : selectedItem()
Return Value:
void : setColumnAlignment( Number column, Number align )
Sets the alignment of a column.
Parameter(s):
void : setColumnText( Number column, String label )
Changes the label of a column in the list view.
Parameter(s):
void : setColumnWidth( Number column, Number width )
Sets the width of a column.
Parameter(s):
void : setColumnWidthMode( Number column, WidthMode mode )
Sets the width mode of a column.
Parameter(s):
void : setCurrentItem( DzListViewItem item )
Sets the currently highlighted item
Parameter(s):
void : setOpen( DzListViewItem item, Boolean open )
Sets whether or not an item is expanded (open) or collapsed (closed).
Parameter(s):
void : setSelected( DzListViewItem item, Boolean selected )
Sets whether or not an item is selected.
Parameter(s):
void : setSelectionAnchor( DzListViewItem item )
Sets the selection anchor of the view.
Parameter(s):
void : setSorting( Number column, Boolean ascending=true )
Sets the sorting column and order for the view.
Parameter(s):
true
, ascending. If false
, descending.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):
item
is 0)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):
item
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):
item
is 0)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):
item
is 0)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):
item
is 0)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 space bar is pressed on the current item
Parameter(s):