org.kde.koala
public class KListView extends QListView
UNKNOWN: This Widget extends the functionality of QListView to honor the system wide settings for Single Click/Double Click mode, AutoSelection and ChangeCursorOverLink (TM).
Field Summary | |
---|---|
static int | Extended |
static int | FileManager |
static int | Multi |
static int | NoSelection |
static int | Single
Possible selection modes.
|
Constructor Summary | |
---|---|
protected | KListView(Class dummy) |
KListView(QWidget parent, String name)
Constructor.
| |
KListView(QWidget parent) | |
KListView() |
Method Summary | |
---|---|
protected boolean | acceptDrag(QDropEvent event) |
protected void | activateAutomaticSelection()
In FileManager selection mode: explicitly activate the mode
in which the current item is automatically selected. |
int | addColumn(String label, int width)
Reimplemented for full width support |
int | addColumn(String label) |
int | addColumn(QIconSet iconset, String label, int width)
Reimplemented for full width support |
int | addColumn(QIconSet iconset, String label) |
QColor | alternateBackground() |
boolean | ascendingSort() |
protected boolean | automaticSelection()
In FileManager selection mode: return whether it is currently in the mode
where the current item is selected automatically.
|
boolean | autoOpen() |
protected boolean | below(QRect rect, QPoint p)
Determine whether a drop on position p would count as
being above or below the QRect rect. |
protected boolean | below(QListViewItem i, QPoint p)
An overloaded version of below(QRect, QPoint).
|
String | className() |
protected void | cleanDropVisualizer()
Repaint the rect where I was drawing the drop line. |
protected void | cleanItemHighlighter()
Repaint the rect where I was drawing the drop rectangle. |
int | columnSorted() |
protected void | contentsDragEnterEvent(QDragEnterEvent arg1)
Reimplemented for internal reasons.
|
protected void | contentsDragLeaveEvent(QDragLeaveEvent event)
Reimplemented for internal reasons.
|
protected void | contentsDragMoveEvent(QDragMoveEvent event)
Reimplemented for internal reasons.
|
protected void | contentsDropEvent(QDropEvent arg1)
Reimplemented for internal reasons.
|
protected void | contentsMouseDoubleClickEvent(QMouseEvent e)
Reimplemented for internal reasons.
|
protected void | contentsMouseMoveEvent(QMouseEvent e)
Reimplemented for internal reasons.
|
protected void | contentsMousePressEvent(QMouseEvent e)
Reimplemented for internal reasons.
|
protected void | contentsMouseReleaseEvent(QMouseEvent arg1)
Reimplemented for internal reasons.
|
protected void | deactivateAutomaticSelection()
In FileManager selection mode: explicitly deactivate the mode
in which the current item is automatically selected. |
protected int | depthToPixels(int depth)
Convert the depth of an item into its indentation in pixels |
protected void | disableAutoSelection()
Disable AutoSelection. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | doneEditing(QListViewItem item, int row) |
boolean | dragEnabled() |
protected QDragObject | dragObject() |
protected QRect | drawDropVisualizer(QPainter p, QListViewItem parent, QListViewItem after)
Paint the drag line. |
protected QRect | drawItemHighlighter(QPainter painter, QListViewItem item)
Paint the drag rectangle. |
boolean | dropHighlighter() |
boolean | dropVisualizer() |
int | dropVisualizerWidth()
The dropVisualizerWidth defaults to 4. |
protected void | emitContextMenu(QListViewItem arg1, QPoint arg2, int arg3)
Emit the contextMenu signal. |
protected void | emitContextMenu(KListView arg1, QListViewItem arg2)
Emit the contextMenu signal. |
protected void | emitExecute(QListViewItem item, QPoint pos, int c)
Emit signal executed. |
boolean | event(QEvent arg1)
Reimplemented to reload the alternate background in palette changes. |
protected void | fileManagerKeyPressEvent(QKeyEvent arg1)
A special keyPressEvent (for FileManager selection mode). |
protected void | finalize() Deletes the wrapped C++ instance |
protected void | findDrop(QPoint pos, QListViewItem parent, QListViewItem after)
Where is the nearest QListViewItem that I'm going to drop?
|
protected void | focusInEvent(QFocusEvent fe)
Reimplemented for internal reasons.
|
protected void | focusOutEvent(QFocusEvent fe)
Reimplemented for internal reasons.
|
boolean | fullWidth()
Returns whether the last column is set to fit the available width. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isExecuteArea(QPoint point)
This function determines whether the given coordinates are within the
execute area. |
boolean | isExecuteArea(int x)
Same thing, but from an x coordinate only. |
boolean | isRenameable(int column) |
QListViewItem | itemAtIndex(int index)
Returns the item of index within the item tree or 0 if
index doesn't exist in this list view. |
int | itemIndex(QListViewItem item)
Returns the index of item within the item tree or -1 if
item doesn't exist in this list view. |
boolean | itemsMovable() |
boolean | itemsRenameable() |
protected void | keyPressEvent(QKeyEvent arg1)
Reimplemented for internal reasons.
|
QListViewItem | lastChild() |
QListViewItem | lastItem() |
protected void | leaveEvent(QEvent e)
Reimplemented for internal reasons.
|
QMetaObject | metaObject() |
protected void | movableDropEvent(QListViewItem parent, QListViewItem afterme)
Handle dropEvent when itemsMovable() is set to true. |
void | moveItem(QListViewItem item, QListViewItem parent, QListViewItem after)
Arbitrarily move item to parent , positioned immediately after item after.
If after is 0, item is made the first child of parent.
(Un-deprecated in kde-3.4) |
void | removeColumn(int index)
Reimplemented for full width support |
void | rename(QListViewItem item, int c)
Rename column c of item. |
KLineEdit | renameLineEdit() |
protected void | resetAutoSelection()
Reset AutoSelection to the system wide setting. |
void | restoreLayout(KConfig config, String group)
Reads the list view's layout from a KConfig group as stored with
saveLayout |
void | saveLayout(KConfig config, String group)
Saves the list view's layout (column widtsh, column order, sort column)
to a KConfig group |
int | selectionModeExt() |
void | setAcceptDrops(boolean arg1)
Reimplemented for internal reasons.
|
void | setAlternateBackground(QColor c)
sets the alternate background background color.
|
void | setAutoOpen(boolean b)
Enable/Disable AutoOpen (not implemented currently). |
void | setDragEnabled(boolean b)
Enable/Disable the dragging of items.
|
void | setDropHighlighter(boolean b)
Enable/Disable the drawing of a drop-highlighter
(a rectangle around the item under the mouse cursor).
|
void | setDropVisualizer(boolean b)
Enable/Disable the drawing of a drop-visualizer
(a bar that shows where a dropped item would be inserted).
|
void | setDropVisualizerWidth(int w)
Set the width of the (default) drop-visualizer.
|
void | setFullWidth(boolean fullWidth)
Let the last column fit exactly all the available width. |
void | setItemsMovable(boolean b)
Set whether items in the list view can be moved.
|
void | setItemsRenameable(boolean b)
Enables inplace-renaming of items.
|
void | setRenameable(int column, boolean yesno)
By default, if you called setItemsRenameable(true),
only the first column is renameable.
|
void | setRenameable(int column) |
void | setSelectionModeExt(int mode)
Set the selection mode.
|
void | setShadeSortColumn(boolean shadeSortColumn)
Set to true if the currently sorted column should be drawn shaded. |
void | setSorting(int column, boolean ascending)
Reimplemented to remember the current sort column and order. |
void | setSorting(int column) |
void | setTabOrderedRenaming(boolean b)
Enable/disable tabbing between editable cells |
void | setTooltipColumn(int column)
Set which column should be used for automatic tooltips. |
boolean | shadeSortColumn()
See if the sort column should be drawn shaded |
protected boolean | showTooltip(QListViewItem item, QPoint pos, int column) |
protected void | slotAutoSelect()
Process AutoSelection. |
protected void | slotDragExpand() |
protected void | slotHeaderChanged()
Reacts to header changes in full width mode |
protected void | slotMouseButtonClicked(int btn, QListViewItem item, QPoint pos, int c) |
protected void | slotOnItem(QListViewItem item)
Accessory slot for AutoSelect |
protected void | slotOnViewport()
Accessory slot for AutoSelect/ChangeCursorOverItem |
protected void | slotSettingsChanged(int arg1)
Update internal settings whenever the global ones change. |
protected void | startDrag()
This method calls dragObject() and starts the drag.
|
boolean | tabOrderedRenaming()
Returns whether tab ordered renaming is enabled |
void | takeItem(QListViewItem i)
Reimplemented for internal reasons. |
protected String | tooltip(QListViewItem item, int column) |
int | tooltipColumn() |
protected void | viewportPaintEvent(QPaintEvent arg1)
Reimplemented for internal reasons.
|
protected void | viewportResizeEvent(QResizeEvent e)
Reimplemented for setFullWidth() |
UNKNOWN: Possible selection modes.
parent
and name
are handled by
QListView, as usual.UNKNOWN: Constructor.
Returns: true if the event
provides some acceptable
format.
A common mistake is to forget the "const" in your reimplementation
UNKNOWN:
UNKNOWN: In FileManager selection mode: explicitly activate the mode in which the current item is automatically selected.
See Also: KListView
UNKNOWN: Reimplemented for full width support
UNKNOWN: Reimplemented for full width support
Returns: whether the current sort is ascending (or descending)
UNKNOWN:
UNKNOWN: In FileManager selection mode: return whether it is currently in the mode where the current item is selected automatically.
p
would count as
being above or below the QRect rect.
Parameters: rect is the rectangle we examine. p is the point located in the rectangle, p is assumed to be in viewport coordinates.
UNKNOWN: Determine whether a drop on position p
would count as being above or below the QRect rect.
Parameters: i the item whose rect() is passed to the above function. p is translated from contents coordinates to viewport coordinates before being passed to the above function.
UNKNOWN: An overloaded version of below(QRect, QPoint).
UNKNOWN: Repaint the rect where I was drawing the drop line.
UNKNOWN: Repaint the rect where I was drawing the drop rectangle.
Returns: the currently sorted column, or -1 if none is sorted
UNKNOWN:
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: In FileManager selection mode: explicitly deactivate the mode in which the current item is automatically selected.
UNKNOWN: Convert the depth of an item into its indentation in pixels
See Also: KListView
UNKNOWN: Disable AutoSelection.
Returns: the rectangle that you painted to.
UNKNOWN: Paint the drag line.
Returns: the rectangle that you painted to.
UNKNOWN: Paint the drag rectangle.
Returns: true if drawing of the drop-highlighter has been enabled. False by default.
See Also: KListView
UNKNOWN:
Returns: true if drawing of the drop-visualizer has been enabled. True by default.
See Also: KListView
UNKNOWN:
Returns: the current width of the drop-visualizer.
See Also: KListView
UNKNOWN: The dropVisualizerWidth defaults to 4.
UNKNOWN: Emit the contextMenu signal.
UNKNOWN: Emit the contextMenu signal.
UNKNOWN: Emit signal executed.
UNKNOWN: Reimplemented to reload the alternate background in palette changes.
UNKNOWN: A special keyPressEvent (for FileManager selection mode).
UNKNOWN: Where is the nearest QListViewItem that I'm going to drop?
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
See Also: KListView
UNKNOWN: Returns whether the last column is set to fit the available width.
Returns: true if point is inside execute area of an item, false in all other cases including the case that it is over the viewport.
UNKNOWN: This function determines whether the given coordinates are within the execute area.
UNKNOWN: Same thing, but from an x coordinate only.
index
within the item tree or 0 if
index
doesn't exist in this list view. This function takes
all items into account not only the visible ones.UNKNOWN: Returns the item of index
within the item tree or 0 if index
doesn't exist in this list view.
item
within the item tree or -1 if
item
doesn't exist in this list view. This function takes
all items into account not only the visible ones.UNKNOWN: Returns the index of item
within the item tree or -1 if item
doesn't exist in this list view.
Returns: if it is legal to move items in the list view. True by default.
UNKNOWN:
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Handle dropEvent when itemsMovable() is set to true.
item
to parent
, positioned immediately after item after.
If after is 0, item
is made the first child of parent.
(Un-deprecated in kde-3.4)UNKNOWN: Arbitrarily move item
to parent
, positioned immediately after item after.
See Also: KListView
UNKNOWN: Reimplemented for full width support
c
of item.
UNKNOWN: Rename column c
of item.
Returns: the lineedit used for inline renaming. Use that to setup a KCompletion or QValidator for the lineedit
UNKNOWN:
See Also: KListView
UNKNOWN: Reset AutoSelection to the system wide setting.
Parameters: config the KConfig object to read from group the config group to use
UNKNOWN: Reads the list view's layout from a KConfig group as stored with saveLayout
Parameters: config the KConfig object to write to group the config group to use
UNKNOWN: Saves the list view's layout (column widtsh, column order, sort column) to a KConfig group
Returns: the "extended" selection mode of this listview.
See Also: SelectionModeExt KListView
UNKNOWN:
UNKNOWN: Reimplemented for internal reasons.
Parameters: c the color to use for every other item. Set to an invalid color to disable alternate colors.
See Also: KListView
UNKNOWN: sets the alternate background background color.
UNKNOWN: Enable/Disable AutoOpen (not implemented currently).
UNKNOWN: Enable/Disable the dragging of items.
UNKNOWN: Enable/Disable the drawing of a drop-highlighter (a rectangle around the item under the mouse cursor).
UNKNOWN: Enable/Disable the drawing of a drop-visualizer (a bar that shows where a dropped item would be inserted).
UNKNOWN: Set the width of the (default) drop-visualizer.
See Also: KListView
UNKNOWN: Let the last column fit exactly all the available width.
See Also: KListView
UNKNOWN: Set whether items in the list view can be moved.
UNKNOWN: Enables inplace-renaming of items.
UNKNOWN: By default, if you called setItemsRenameable(true), only the first column is renameable.
UNKNOWN: Set the selection mode.
Parameters: shadeSortColumn True if sort column should be shaded.
UNKNOWN: Set to true if the currently sorted column should be drawn shaded.
Parameters: column is the column to be sorted, or -1 to sort in order of insertion ascending whether to sort ascending (or descending)
UNKNOWN: Reimplemented to remember the current sort column and order.
UNKNOWN: Enable/disable tabbing between editable cells
Parameters: column is the column for which tooltips will be shown. Set -1 to disable this feature.
UNKNOWN: Set which column should be used for automatic tooltips.
Returns: true if the sort column should be shaded
UNKNOWN: See if the sort column should be drawn shaded
Returns: whether the tooltip for column
of item
shall be shown at point pos.
UNKNOWN:
UNKNOWN: Process AutoSelection.
UNKNOWN: Reacts to header changes in full width mode
UNKNOWN: Accessory slot for AutoSelect
UNKNOWN: Accessory slot for AutoSelect/ChangeCursorOverItem
UNKNOWN: Update internal settings whenever the global ones change.
UNKNOWN: This method calls dragObject() and starts the drag.
UNKNOWN: Returns whether tab ordered renaming is enabled
UNKNOWN: Reimplemented for internal reasons.
Returns: the tooltip for column
of item.
UNKNOWN:
Returns: the column for which tooltips are displayed (or -1 if none set).
See Also: KListView
UNKNOWN:
UNKNOWN: Reimplemented for internal reasons.
UNKNOWN: Reimplemented for setFullWidth()