org.kde.koala

Interface KListViewSignals

public interface KListViewSignals

Method Summary
voidaboutToMove()
Connect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting This is sent only once per each groups of moves.
voidcontextMenu(KListView l, QListViewItem i, QPoint p)
This signal is emitted whenever a context-menu should be shown for item i. It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).
voiddropped(QDropEvent e, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
voiddropped(KListView list, QDropEvent e, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
voiddropped(KListView list, QDropEvent e, QListViewItem parent, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
voiddropped(QDropEvent e, QListViewItem parent, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview.
voidexecuted(QListViewItem item)
This signal is emitted whenever the user executes an listview item.
voidexecuted(QListViewItem item, QPoint pos, int c)
This signal is emitted whenever the user executes an listview item.
voiditemAdded(QListViewItem item)
voiditemRemoved(QListViewItem item)
voiditemRenamed(QListViewItem item, String str, int col)
This signal gets emitted when an item is renamed via in-place renaming.
voiditemRenamed(QListViewItem item)
Same as above, but without the extra information.
voidmenuShortCutPressed(KListView list, QListViewItem item)
This signal is emitted when the shortcut key for popup-menus is pressed.
voidmoved()
This signal is emitted when ever the user moves an item in the list via DnD.
voidmoved(QListViewItem item, QListViewItem afterFirst, QListViewItem afterNow)
This signal is emitted when ever the user moves an item in the list via DnD.

Method Detail

aboutToMove

public void aboutToMove()
Connect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting This is sent only once per each groups of moves. That is, for each drop that is a move this will be emitted once, before KListView calls

See Also: KListViewSignals

UNKNOWN: Connect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting

contextMenu

public void contextMenu(KListView l, QListViewItem i, QPoint p)
This signal is emitted whenever a context-menu should be shown for item i. It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).

Parameters: l is this listview. i is the item for which the menu should be shown. May be null. p is the point at which the menu should be shown.

UNKNOWN: This signal is emitted whenever a context-menu should be shown for item i.

dropped

public void dropped(QDropEvent e, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview.

Parameters: e is the drop event itself (it has already been accepted) after is the item after which the drop occurred (or null, if the drop was above all items)

See Also: KListViewSignals

UNKNOWN: This signal gets emitted whenever something acceptable is dropped onto the listview.

dropped

public void dropped(KListView list, QDropEvent e, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. This is an overloaded version of the above (provided to simplify processing drops outside of the class).

Parameters: list is the listview e is the drop event itself (it has already been accepted) after is the item after which the drop occurred (or null, if the drop was above all items

UNKNOWN: This signal gets emitted whenever something acceptable is dropped onto the listview.

dropped

public void dropped(KListView list, QDropEvent e, QListViewItem parent, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. This function also provides a parent, in the event that your listview is a tree

Parameters: list is the listview e is the drop event itself (it has already been accepted) parent the item that is to be the parent of the new item after is the item after which the drop occurred (or null, if the drop was above all items

UNKNOWN: This signal gets emitted whenever something acceptable is dropped onto the listview.

dropped

public void dropped(QDropEvent e, QListViewItem parent, QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. This function also provides a parent, in the event that your listview is a tree

Parameters: e is the drop event itself (it has already been accepted) parent the item that is to be the parent of the new item after is the item after which the drop occurred (or null, if the drop was above all items

UNKNOWN: This signal gets emitted whenever something acceptable is dropped onto the listview.

executed

public void executed(QListViewItem item)
This signal is emitted whenever the user executes an listview item. That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Parameters: item is the pointer to the executed listview item. Note that you may not delete any QListViewItem objects in slots connected to this signal.

UNKNOWN: This signal is emitted whenever the user executes an listview item.

executed

public void executed(QListViewItem item, QPoint pos, int c)
This signal is emitted whenever the user executes an listview item. That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Parameters: item is the pointer to the executed listview item. pos is the position where the user has clicked c is the column into which the user clicked. Note that you may not delete any QListViewItem objects in slots connected to this signal.

UNKNOWN: This signal is emitted whenever the user executes an listview item.

itemAdded

public void itemAdded(QListViewItem item)

itemRemoved

public void itemRemoved(QListViewItem item)

itemRenamed

public void itemRenamed(QListViewItem item, String str, int col)
This signal gets emitted when an item is renamed via in-place renaming.

Parameters: item is the renamed item. str is the new value of column col. col is the renamed column.

UNKNOWN: This signal gets emitted when an item is renamed via in-place renaming.

itemRenamed

public void itemRenamed(QListViewItem item)
Same as above, but without the extra information.

UNKNOWN: Same as above, but without the extra information.

menuShortCutPressed

public void menuShortCutPressed(KListView list, QListViewItem item)
This signal is emitted when the shortcut key for popup-menus is pressed. Normally you should not use this, just connect a slot to signal contextMenu (KListView, QListViewItem, QPoint) to correctly handle showing context menus regardless of settings.

Parameters: list is this listview. item is the currentItem() at the time the key was pressed. May be null.

UNKNOWN: This signal is emitted when the shortcut key for popup-menus is pressed.

moved

public void moved()
This signal is emitted when ever the user moves an item in the list via DnD. If more than one item is moved at the same time, this signal is only emitted once.

UNKNOWN: This signal is emitted when ever the user moves an item in the list via DnD.

moved

public void moved(QListViewItem item, QListViewItem afterFirst, QListViewItem afterNow)
This signal is emitted when ever the user moves an item in the list via DnD. If more than one item is moved at the same time, afterFirst and afterNow will reflect what was true before the move. This differs from moved(), so be careful. All the items will have been moved before moved() is emitted, which is not true in this method. // FIXME

Parameters: item the item that was moved afterFirst the item that parameter item was in before the move, in the list afterNow the item it's currently after.

UNKNOWN: This signal is emitted when ever the user moves an item in the list via DnD.