diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/TDESelector.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/TDESelector.java | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/TDESelector.java b/kdejava/koala/org/kde/koala/TDESelector.java new file mode 100644 index 00000000..e165ded2 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDESelector.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.TQRect; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPaintEvent; +import org.kde.qt.TQPoint; +import org.kde.qt.TQPainter; +import org.kde.qt.TQRangeControl; +import org.kde.qt.TQRangeControlInterface; +import org.kde.qt.TQMouseEvent; +import org.kde.qt.TQWidget; +import org.kde.qt.TQWheelEvent; +import org.kde.qt.TQWidget; + +/** + + TDESelector 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 TDESelectorSignals} for signals emitted by TDESelector + @short TDESelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values. + +*/ +public class TDESelector extends TQWidget implements TQRangeControlInterface { + protected TDESelector(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a horizontal one-dimensional selection widget. + @short Constructs a horizontal one-dimensional selection widget. + */ + public TDESelector(TQWidget parent, String name) { + super((Class) null); + newTDESelector(parent,name); + } + private native void newTDESelector(TQWidget parent, String name); + public TDESelector(TQWidget parent) { + super((Class) null); + newTDESelector(parent); + } + private native void newTDESelector(TQWidget parent); + public TDESelector() { + super((Class) null); + newTDESelector(); + } + private native void newTDESelector(); + /** + Constructs a one-dimensional selection widget with + a given orientation. + @short Constructs a one-dimensional selection widget with a given orientation. + */ + public TDESelector(int o, TQWidget parent, String name) { + super((Class) null); + newTDESelector(o,parent,name); + } + private native void newTDESelector(int o, TQWidget parent, String name); + public TDESelector(int o, TQWidget parent) { + super((Class) null); + newTDESelector(o,parent); + } + private native void newTDESelector(int o, TQWidget parent); + public TDESelector(int o) { + super((Class) null); + newTDESelector(o); + } + private native void newTDESelector(int o); + /** + @return the orientation of the widget. + + @short + */ + public native int orientation(); + /** + @return the rectangle on which subclasses should draw. + + @short + */ + public native TQRect 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(TQPainter 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(TQPainter painter, boolean show, TQPoint pos); + protected native void valueChange(); + protected native void paintEvent(TQPaintEvent arg1); + protected native void mousePressEvent(TQMouseEvent e); + protected native void mouseMoveEvent(TQMouseEvent e); + protected native void wheelEvent(TQWheelEvent 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(); +} |