diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KIconView.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KIconView.java | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KIconView.java b/kdejava/koala/org/kde/koala/KIconView.java new file mode 100644 index 00000000..7554b270 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KIconView.java @@ -0,0 +1,151 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QIconViewItem; +import org.kde.qt.QFont; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QPoint; +import org.kde.qt.QDragMoveEvent; +import org.kde.qt.QDragEnterEvent; +import org.kde.qt.QDragLeaveEvent; +import org.kde.qt.QFocusEvent; +import org.kde.qt.QMouseEvent; +import org.kde.qt.QDropEvent; +import org.kde.qt.QEvent; +import org.kde.qt.QWidget; +import org.kde.qt.QWheelEvent; +import org.kde.qt.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 {@link KIconViewSignals} for signals emitted by KIconView + @short A variant of QIconView that honors KDE's system-wide settings. + +*/ +public class KIconView extends QIconView { + protected KIconView(Class dummy){super((Class) null);} + /** + 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. + @short KIconView has two different operating modes. + */ + public static final int Execute = 0; + public static final int Select = 1; + + public native QMetaObject metaObject(); + public native String className(); + public KIconView(QWidget parent, String name, int f) { + super((Class) null); + newKIconView(parent,name,f); + } + private native void newKIconView(QWidget parent, String name, int f); + public KIconView(QWidget parent, String name) { + super((Class) null); + newKIconView(parent,name); + } + private native void newKIconView(QWidget parent, String name); + public KIconView(QWidget parent) { + super((Class) null); + newKIconView(parent); + } + private native void newKIconView(QWidget parent); + public KIconView() { + super((Class) null); + newKIconView(); + } + private native void newKIconView(); + /** + Sets the mode to Execute or Select. + + <li> + In Execute mode, the signal executed() + will be emitted when the user clicks/double-clicks an item. + </li> + + <li> + Select mode is + the normal QIconView mode. + </li> + Default is Execute. + @short Sets the mode to Execute or Select. + */ + public native void setMode(int m); + /** + @return the current Mode, either Execute or Select. + + @short + */ + public native int mode(); + /** + Reimplemented for internal purposes + @short Reimplemented for internal purposes + */ + public native void setFont(QFont arg1); + /** + Set the maximum number of lines that will be used to display icon text. + Setting this value will enable word-wrap, too. + @param n Number of lines + @short Set the maximum number of lines that will be used to display icon text. + */ + public native void setIconTextHeight(int n); + /** + @return The height of icon text in lines + + @short + */ + public native int iconTextHeight(); + /** + Reimplemented for held() signal behavior internal purposes + @short Reimplemented for held() signal behavior internal purposes + */ + public native void takeItem(QIconViewItem item); + protected native void emitExecute(QIconViewItem item, QPoint pos); + protected native void updateDragHoldItem(QDropEvent e); + protected native void focusOutEvent(QFocusEvent fe); + protected native void leaveEvent(QEvent e); + protected native void contentsMousePressEvent(QMouseEvent e); + protected native void contentsMouseDoubleClickEvent(QMouseEvent e); + protected native void contentsMouseReleaseEvent(QMouseEvent e); + protected native void contentsDragEnterEvent(QDragEnterEvent e); + protected native void contentsDragLeaveEvent(QDragLeaveEvent e); + protected native void contentsDragMoveEvent(QDragMoveEvent e); + protected native void contentsDropEvent(QDropEvent e); + protected native void wheelEvent(QWheelEvent e); + /** + 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). + @short 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). + */ + protected native void cancelPendingHeldSignal(); + protected native void slotOnItem(QIconViewItem item); + protected native void slotOnViewport(); + protected native void slotSettingsChanged(int arg1); + /** + Auto selection happend. + @short Auto selection happend. + */ + protected native void slotAutoSelect(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |