You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
152 lines
5.4 KiB
Java
152 lines
5.4 KiB
Java
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.TQIconViewItem;
|
|
import org.kde.qt.TQFont;
|
|
import org.kde.qt.TQMetaObject;
|
|
import org.kde.qt.QtSupport;
|
|
import org.kde.qt.TQPoint;
|
|
import org.kde.qt.TQDragMoveEvent;
|
|
import org.kde.qt.TQDragEnterEvent;
|
|
import org.kde.qt.TQDragLeaveEvent;
|
|
import org.kde.qt.TQFocusEvent;
|
|
import org.kde.qt.TQMouseEvent;
|
|
import org.kde.qt.TQDropEvent;
|
|
import org.kde.qt.TQEvent;
|
|
import org.kde.qt.TQWidget;
|
|
import org.kde.qt.TQWheelEvent;
|
|
import org.kde.qt.TQIconView;
|
|
|
|
/**
|
|
|
|
This Widget extends the functionality of TQIconView 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
|
|
TQIconView.clicked() or TQIconView.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
|
|
TQIconView.selectionChanged() signal.
|
|
See {@link KIconViewSignals} for signals emitted by KIconView
|
|
@short A variant of TQIconView that honors KDE's system-wide settings.
|
|
|
|
*/
|
|
public class KIconView extends TQIconView {
|
|
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 TQMetaObject metaObject();
|
|
public native String className();
|
|
public KIconView(TQWidget parent, String name, int f) {
|
|
super((Class) null);
|
|
newKIconView(parent,name,f);
|
|
}
|
|
private native void newKIconView(TQWidget parent, String name, int f);
|
|
public KIconView(TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKIconView(parent,name);
|
|
}
|
|
private native void newKIconView(TQWidget parent, String name);
|
|
public KIconView(TQWidget parent) {
|
|
super((Class) null);
|
|
newKIconView(parent);
|
|
}
|
|
private native void newKIconView(TQWidget 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 TQIconView 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(TQFont 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(TQIconViewItem item);
|
|
protected native void emitExecute(TQIconViewItem item, TQPoint pos);
|
|
protected native void updateDragHoldItem(TQDropEvent e);
|
|
protected native void focusOutEvent(TQFocusEvent fe);
|
|
protected native void leaveEvent(TQEvent e);
|
|
protected native void contentsMousePressEvent(TQMouseEvent e);
|
|
protected native void contentsMouseDoubleClickEvent(TQMouseEvent e);
|
|
protected native void contentsMouseReleaseEvent(TQMouseEvent e);
|
|
protected native void contentsDragEnterEvent(TQDragEnterEvent e);
|
|
protected native void contentsDragLeaveEvent(TQDragLeaveEvent e);
|
|
protected native void contentsDragMoveEvent(TQDragMoveEvent e);
|
|
protected native void contentsDropEvent(TQDropEvent e);
|
|
protected native void wheelEvent(TQWheelEvent 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 TQIconView).
|
|
@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 TQIconView).
|
|
*/
|
|
protected native void cancelPendingHeldSignal();
|
|
protected native void slotOnItem(TQIconViewItem 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();
|
|
}
|