You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.6 KiB
104 lines
3.6 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.TQColor;
|
|
import org.kde.qt.TQMetaObject;
|
|
import org.kde.qt.QtSupport;
|
|
import org.kde.qt.TQDragEnterEvent;
|
|
import org.kde.qt.TQSize;
|
|
import org.kde.qt.TQPainter;
|
|
import org.kde.qt.TQKeyEvent;
|
|
import org.kde.qt.TQMouseEvent;
|
|
import org.kde.qt.TQDropEvent;
|
|
import org.kde.qt.TQWidget;
|
|
import org.kde.qt.TQPushButton;
|
|
|
|
/**
|
|
|
|
This widget can be used to display or allow user selection of a color.
|
|
\image html kcolorbutton.png "KDE Color Button"
|
|
See {@link KColorButtonSignals} for signals emitted by KColorButton
|
|
@short A pushbutton to display or allow user selection of a color.
|
|
@see KColorDialog
|
|
|
|
*/
|
|
public class KColorButton extends TQPushButton {
|
|
protected KColorButton(Class dummy){super((Class) null);}
|
|
public native TQMetaObject metaObject();
|
|
public native String className();
|
|
/**
|
|
Creates a color button.
|
|
@short Creates a color button.
|
|
*/
|
|
public KColorButton(TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKColorButton(parent,name);
|
|
}
|
|
private native void newKColorButton(TQWidget parent, String name);
|
|
public KColorButton(TQWidget parent) {
|
|
super((Class) null);
|
|
newKColorButton(parent);
|
|
}
|
|
private native void newKColorButton(TQWidget parent);
|
|
/**
|
|
Creates a color button with an initial color <code>c.</code>
|
|
@short Creates a color button with an initial color <code>c.</code>
|
|
*/
|
|
public KColorButton(TQColor c, TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKColorButton(c,parent,name);
|
|
}
|
|
private native void newKColorButton(TQColor c, TQWidget parent, String name);
|
|
public KColorButton(TQColor c, TQWidget parent) {
|
|
super((Class) null);
|
|
newKColorButton(c,parent);
|
|
}
|
|
private native void newKColorButton(TQColor c, TQWidget parent);
|
|
public KColorButton(TQColor c, TQColor defaultColor, TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKColorButton(c,defaultColor,parent,name);
|
|
}
|
|
private native void newKColorButton(TQColor c, TQColor defaultColor, TQWidget parent, String name);
|
|
public KColorButton(TQColor c, TQColor defaultColor, TQWidget parent) {
|
|
super((Class) null);
|
|
newKColorButton(c,defaultColor,parent);
|
|
}
|
|
private native void newKColorButton(TQColor c, TQColor defaultColor, TQWidget parent);
|
|
/**
|
|
Returns the currently chosen color.
|
|
@short Returns the currently chosen color.
|
|
*/
|
|
public native TQColor color();
|
|
/**
|
|
Sets the current color to <code>c.</code>
|
|
@short Sets the current color to <code>c.</code>
|
|
*/
|
|
public native void setColor(TQColor c);
|
|
/**
|
|
Returns the default color or an invalid color
|
|
if no default color is set.
|
|
@short Returns the default color or an invalid color if no default color is set.
|
|
*/
|
|
public native TQColor defaultColor();
|
|
/**
|
|
Sets the default color to <code>c.</code>
|
|
@short Sets the default color to <code>c.</code>
|
|
*/
|
|
public native void setDefaultColor(TQColor c);
|
|
public native TQSize sizeHint();
|
|
protected native void drawButtonLabel(TQPainter p);
|
|
protected native void dragEnterEvent(TQDragEnterEvent arg1);
|
|
protected native void dropEvent(TQDropEvent arg1);
|
|
protected native void mousePressEvent(TQMouseEvent e);
|
|
protected native void mouseMoveEvent(TQMouseEvent e);
|
|
protected native void keyPressEvent(TQKeyEvent e);
|
|
protected native void chooseColor();
|
|
/** 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();
|
|
}
|