org.kde.koala

Class KIconView

public class KIconView extends QIconView

This Widget extends the functionality of QIconView to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link. There is a new signal executed(). It gets connected to either QIconView.clicked() or QIconView.doubleClicked() depending on the KDE wide Single Click/Double Click settings. It is strongly recommended that you use this signal instead of the above mentioned. This way you don't need to care about the current settings. If you want to get informed when the user selects something connect to the QIconView.selectionChanged() signal. See KIconViewSignals for signals emitted by KIconView

UNKNOWN: A variant of QIconView that honors KDE's system-wide settings.

Field Summary
static intExecute
KIconView has two different operating modes.
static intSelect
Constructor Summary
protected KIconView(Class dummy)
KIconView(QWidget parent, String name, int f)
KIconView(QWidget parent, String name)
KIconView(QWidget parent)
KIconView()
Method Summary
protected voidcancelPendingHeldSignal()
This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a KIconView.contentsDragEvent() method (which have side effects because they forward to QIconView).
StringclassName()
protected voidcontentsDragEnterEvent(QDragEnterEvent e)
protected voidcontentsDragLeaveEvent(QDragLeaveEvent e)
protected voidcontentsDragMoveEvent(QDragMoveEvent e)
protected voidcontentsDropEvent(QDropEvent e)
protected voidcontentsMouseDoubleClickEvent(QMouseEvent e)
protected voidcontentsMousePressEvent(QMouseEvent e)
protected voidcontentsMouseReleaseEvent(QMouseEvent e)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidemitExecute(QIconViewItem item, QPoint pos)
protected voidfinalize()
Deletes the wrapped C++ instance
protected voidfocusOutEvent(QFocusEvent fe)
inticonTextHeight()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidleaveEvent(QEvent e)
QMetaObjectmetaObject()
intmode()
voidsetFont(QFont arg1)
Reimplemented for internal purposes
voidsetIconTextHeight(int n)
Set the maximum number of lines that will be used to display icon text.
voidsetMode(int m)
Sets the mode to Execute or Select.
protected voidslotAutoSelect()
Auto selection happend.
protected voidslotOnItem(QIconViewItem item)
protected voidslotOnViewport()
protected voidslotSettingsChanged(int arg1)
voidtakeItem(QIconViewItem item)
Reimplemented for held() signal behavior internal purposes
protected voidupdateDragHoldItem(QDropEvent e)
protected voidwheelEvent(QWheelEvent e)

Field Detail

Execute

public static final int Execute
KIconView has two different operating modes. Execute mode is depending on the configuration of single-click or double-click where the signal executed() will be emitted upon click/double-click. In Select mode, this signal will not be emitted. Default is Execute mode.

UNKNOWN: KIconView has two different operating modes.

Select

public static final int Select

Constructor Detail

KIconView

protected KIconView(Class dummy)

KIconView

public KIconView(QWidget parent, String name, int f)

KIconView

public KIconView(QWidget parent, String name)

KIconView

public KIconView(QWidget parent)

KIconView

public KIconView()

Method Detail

cancelPendingHeldSignal

protected void cancelPendingHeldSignal()
This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a KIconView.contentsDragEvent() method (which have side effects because they forward to QIconView).

UNKNOWN: This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a KIconView.contentsDrag Event() method (which have side effects because they forward to QIconView).

className

public String className()

contentsDragEnterEvent

protected void contentsDragEnterEvent(QDragEnterEvent e)

contentsDragLeaveEvent

protected void contentsDragLeaveEvent(QDragLeaveEvent e)

contentsDragMoveEvent

protected void contentsDragMoveEvent(QDragMoveEvent e)

contentsDropEvent

protected void contentsDropEvent(QDropEvent e)

contentsMouseDoubleClickEvent

protected void contentsMouseDoubleClickEvent(QMouseEvent e)

contentsMousePressEvent

protected void contentsMousePressEvent(QMouseEvent e)

contentsMouseReleaseEvent

protected void contentsMouseReleaseEvent(QMouseEvent e)

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

emitExecute

protected void emitExecute(QIconViewItem item, QPoint pos)

finalize

protected void finalize()
Deletes the wrapped C++ instance

focusOutEvent

protected void focusOutEvent(QFocusEvent fe)

iconTextHeight

public int iconTextHeight()

Returns: The height of icon text in lines

UNKNOWN:

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

leaveEvent

protected void leaveEvent(QEvent e)

metaObject

public QMetaObject metaObject()

mode

public int mode()

Returns: the current Mode, either Execute or Select.

UNKNOWN:

setFont

public void setFont(QFont arg1)
Reimplemented for internal purposes

UNKNOWN: Reimplemented for internal purposes

setIconTextHeight

public void setIconTextHeight(int n)
Set the maximum number of lines that will be used to display icon text. Setting this value will enable word-wrap, too.

Parameters: n Number of lines

UNKNOWN: Set the maximum number of lines that will be used to display icon text.

setMode

public void setMode(int m)
Sets the mode to Execute or Select.
  • In Execute mode, the signal executed() will be emitted when the user clicks/double-clicks an item.
  • Select mode is the normal QIconView mode.
  • Default is Execute.

    UNKNOWN: Sets the mode to Execute or Select.

    slotAutoSelect

    protected void slotAutoSelect()
    Auto selection happend.

    UNKNOWN: Auto selection happend.

    slotOnItem

    protected void slotOnItem(QIconViewItem item)

    slotOnViewport

    protected void slotOnViewport()

    slotSettingsChanged

    protected void slotSettingsChanged(int arg1)

    takeItem

    public void takeItem(QIconViewItem item)
    Reimplemented for held() signal behavior internal purposes

    UNKNOWN: Reimplemented for held() signal behavior internal purposes

    updateDragHoldItem

    protected void updateDragHoldItem(QDropEvent e)

    wheelEvent

    protected void wheelEvent(QWheelEvent e)