diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-08 20:06:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-01-08 20:06:00 +0100 |
commit | 636f509299122d02087c6fd62e1e4a46dbd22026 (patch) | |
tree | 70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/org/trinitydesktop/koala/KXYSelector.java | |
parent | 719b61750c08343f530068ed4127623aeac71cf0 (diff) | |
download | tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip |
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KXYSelector.java')
-rw-r--r-- | tdejava/koala/org/trinitydesktop/koala/KXYSelector.java | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KXYSelector.java b/tdejava/koala/org/trinitydesktop/koala/KXYSelector.java new file mode 100644 index 00000000..2df08b6e --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KXYSelector.java @@ -0,0 +1,124 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQRect; +import org.trinitydesktop.qt.TQMetaObject; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQPaintEvent; +import org.trinitydesktop.qt.TQPainter; +import org.trinitydesktop.qt.TQMouseEvent; +import org.trinitydesktop.qt.TQWidget; +import org.trinitydesktop.qt.TQWheelEvent; +import org.trinitydesktop.qt.TQWidget; + +/** + + KXYSelector is the base class for other widgets which + provides the ability to choose from a two-dimensional + range of values. The currently chosen value is indicated + by a cross. An example is the KHSSelector which + allows to choose from a range of colors, and which is + used in KColorDialog. + A custom drawing routine for the widget surface has + to be provided by the subclass. + See {@link KXYSelectorSignals} for signals emitted by KXYSelector + @short KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimensional range of values. + +*/ +public class KXYSelector extends TQWidget { + protected KXYSelector(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a two-dimensional selector widget which + has a value range of [0..100] in both directions. + @short Constructs a two-dimensional selector widget which has a value range of [0. + */ + public KXYSelector(TQWidget parent, String name) { + super((Class) null); + newKXYSelector(parent,name); + } + private native void newKXYSelector(TQWidget parent, String name); + public KXYSelector(TQWidget parent) { + super((Class) null); + newKXYSelector(parent); + } + private native void newKXYSelector(TQWidget parent); + public KXYSelector() { + super((Class) null); + newKXYSelector(); + } + private native void newKXYSelector(); + /** + Sets the current values in horizontal and + vertical direction. + @param xPos the horizontal value + @param yPos the veritcal value + @short Sets the current values in horizontal and vertical direction. + */ + public native void setValues(int xPos, int yPos); + /** + Sets the current horizontal value + @param xPos the horizontal value + @short Sets the current horizontal value + */ + public native void setXValue(int xPos); + /** + Sets the current vertical value + @param yPos the veritcal value + @short Sets the current vertical value + */ + public native void setYValue(int yPos); + /** + Sets the range of possible values. + @short Sets the range of possible values. + */ + public native void setRange(int minX, int minY, int maxX, int maxY); + /** + @return the current value in horizontal direction. + + @short + */ + public native int xValue(); + /** + @return the current value in vertical direction. + + @short + */ + public native int yValue(); + /** + @return the rectangle on which subclasses should draw. + + @short + */ + public native TQRect contentsRect(); + /** + Override this function to draw the contents of the widget. + The default implementation does nothing. + Draw within contentsRect() only. + @short Override this function to draw the contents of the widget. + */ + protected native void drawContents(TQPainter arg1); + /** + Override this function to draw the cursor which + indicates the currently selected value pair. + @short Override this function to draw the cursor which indicates the currently selected value pair. + */ + protected native void drawCursor(TQPainter p, int xp, int yp); + protected native void paintEvent(TQPaintEvent e); + protected native void mousePressEvent(TQMouseEvent e); + protected native void mouseMoveEvent(TQMouseEvent e); + protected native void wheelEvent(TQWheelEvent arg1); + /** + Converts a pixel position to its corresponding values. + @short Converts a pixel position to its corresponding values. + */ + protected native void valuesFromPosition(int x, int y, int[] xVal, int[] yVal); + /** 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(); +} |