diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KColorDrag.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KColorDrag.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KColorDrag.java | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KColorDrag.java b/kdejava/koala/org/kde/koala/KColorDrag.java new file mode 100644 index 00000000..60c4733b --- /dev/null +++ b/kdejava/koala/org/kde/koala/KColorDrag.java @@ -0,0 +1,86 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QColor; +import org.kde.qt.QMimeSourceInterface; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QMimeSource; +import org.kde.qt.QWidget; +import org.kde.qt.QStoredDrag; + +/** + + A drag-and-drop object for colors. The according MIME type + is set to application/x-color. + See the Qt drag'n'drop documentation. + @short A drag-and-drop object for colors. + +*/ +public class KColorDrag extends QStoredDrag { + protected KColorDrag(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + Constructs a color drag with a white color. + @short Constructs a color drag with a white color. + */ + public KColorDrag(QWidget dragsource, String name) { + super((Class) null); + newKColorDrag(dragsource,name); + } + private native void newKColorDrag(QWidget dragsource, String name); + public KColorDrag(QWidget dragsource) { + super((Class) null); + newKColorDrag(dragsource); + } + private native void newKColorDrag(QWidget dragsource); + public KColorDrag() { + super((Class) null); + newKColorDrag(); + } + private native void newKColorDrag(); + /** + Constructs a color drag with the color <code>col.</code> + @short Constructs a color drag with the color <code>col.</code> + */ + public KColorDrag(QColor col, QWidget dragsource, String name) { + super((Class) null); + newKColorDrag(col,dragsource,name); + } + private native void newKColorDrag(QColor col, QWidget dragsource, String name); + public KColorDrag(QColor col, QWidget dragsource) { + super((Class) null); + newKColorDrag(col,dragsource); + } + private native void newKColorDrag(QColor col, QWidget dragsource); + public KColorDrag(QColor col) { + super((Class) null); + newKColorDrag(col); + } + private native void newKColorDrag(QColor col); + public native String format(int i); + public native byte[] encodedData(String m); + /** + Sets the color of the drag to <code>col.</code> + @short Sets the color of the drag to <code>col.</code> + */ + public native void setColor(QColor col); + /** + Returns true if the MIME source <code>e</code> contains a color object. + @short Returns true if the MIME source <code>e</code> contains a color object. + */ + public static native boolean canDecode(QMimeSourceInterface e); + /** + Decodes the MIME source <code>e</code> and puts the resulting color into <code>col.</code> + @short Decodes the MIME source <code>e</code> and puts the resulting color into <code>col.</code> + */ + public static native boolean decode(QMimeSourceInterface e, QColor col); + /** 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(); +} |