diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KSelector.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KSelector.java | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KSelector.java b/kdejava/koala/org/kde/koala/KSelector.java new file mode 100644 index 00000000..9a7e30d6 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KSelector.java @@ -0,0 +1,172 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QRect; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QPaintEvent; +import org.kde.qt.QPoint; +import org.kde.qt.QPainter; +import org.kde.qt.QRangeControl; +import org.kde.qt.QRangeControlInterface; +import org.kde.qt.QMouseEvent; +import org.kde.qt.QWidget; +import org.kde.qt.QWheelEvent; +import org.kde.qt.QWidget; + +/** + + KSelector is the base class for other widgets which + provides the ability to choose from a one-dimensional + range of values. An example is the KGradientSelector + which allows to choose from a range of colors. + A custom drawing routine for the widget surface has + to be provided by the subclass. + See {@link KSelectorSignals} for signals emitted by KSelector + @short KSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values. + +*/ +public class KSelector extends QWidget implements QRangeControlInterface { + protected KSelector(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + Constructs a horizontal one-dimensional selection widget. + @short Constructs a horizontal one-dimensional selection widget. + */ + public KSelector(QWidget parent, String name) { + super((Class) null); + newKSelector(parent,name); + } + private native void newKSelector(QWidget parent, String name); + public KSelector(QWidget parent) { + super((Class) null); + newKSelector(parent); + } + private native void newKSelector(QWidget parent); + public KSelector() { + super((Class) null); + newKSelector(); + } + private native void newKSelector(); + /** + Constructs a one-dimensional selection widget with + a given orientation. + @short Constructs a one-dimensional selection widget with a given orientation. + */ + public KSelector(int o, QWidget parent, String name) { + super((Class) null); + newKSelector(o,parent,name); + } + private native void newKSelector(int o, QWidget parent, String name); + public KSelector(int o, QWidget parent) { + super((Class) null); + newKSelector(o,parent); + } + private native void newKSelector(int o, QWidget parent); + public KSelector(int o) { + super((Class) null); + newKSelector(o); + } + private native void newKSelector(int o); + /** + @return the orientation of the widget. + + @short + */ + public native int orientation(); + /** + @return the rectangle on which subclasses should draw. + + @short + */ + public native QRect contentsRect(); + /** + Sets the indent option of the widget to i. + This determines whether a shaded frame is drawn. + @short Sets the indent option of the widget to i. + */ + public native void setIndent(boolean i); + /** + @return whether the indent option is set. + + @short + */ + public native boolean indent(); + /** + Sets the value. + @short Sets the value. + */ + public native void setValue(int value); + /** + @return the value. + + @short + */ + public native int value(); + /** + Sets the min value. + @short Sets the min value. + */ + public native void setMinValue(int value); + /** + @return the min value. + + @short + */ + public native int minValue(); + /** + Sets the max value. + @short Sets the max value. + */ + public native void setMaxValue(int value); + /** + @return the max value. + + @short + */ + public native int maxValue(); + /** + Override this function to draw the contents of the control. + The default implementation does nothing. + Draw only within contentsRect(). + @short Override this function to draw the contents of the control. + */ + protected native void drawContents(QPainter arg1); + /** + Override this function to draw the cursor which + indicates the current value. This function is + always called twice, once with argument show=false + to clear the old cursor, once with argument show=true + to draw the new one. + @short Override this function to draw the cursor which indicates the current value. + */ + protected native void drawArrow(QPainter painter, boolean show, QPoint pos); + protected native void valueChange(); + protected native void paintEvent(QPaintEvent arg1); + protected native void mousePressEvent(QMouseEvent e); + protected native void mouseMoveEvent(QMouseEvent e); + protected native void wheelEvent(QWheelEvent arg1); + /** 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(); + public native void addPage(); + public native void subtractPage(); + public native void addLine(); + public native void subtractLine(); + public native void setRange(int minValue, int maxValue); + public native int lineStep(); + public native int pageStep(); + public native void setSteps(int line, int page); + public native int bound(int arg1); + protected native int positionFromValue(int val, int space); + protected native int valueFromPosition(int pos, int space); + protected native void directSetValue(int val); + protected native int prevValue(); + protected native void rangeChange(); + protected native void stepChange(); +} |