diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kdejava/koala/org/kde/koala/KIntNumInput.java | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kdejava/koala/org/kde/koala/KIntNumInput.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KIntNumInput.java | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/kdejava/koala/org/kde/koala/KIntNumInput.java b/kdejava/koala/org/kde/koala/KIntNumInput.java index 74927b07..106936c0 100644 --- a/kdejava/koala/org/kde/koala/KIntNumInput.java +++ b/kdejava/koala/org/kde/koala/KIntNumInput.java @@ -2,15 +2,15 @@ package org.kde.koala; import org.kde.qt.Qt; -import org.kde.qt.QMetaObject; +import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; -import org.kde.qt.QSize; -import org.kde.qt.QWidget; -import org.kde.qt.QResizeEvent; +import org.kde.qt.TQSize; +import org.kde.qt.TQWidget; +import org.kde.qt.TQResizeEvent; /** - KIntNumInput combines a QSpinBox and optionally a QSlider + KIntNumInput combines a TQSpinBox and optionally a TQSlider with a label to make an easy to use control for setting some integer parameter. This is especially nice for configuration dialogs, which can have many such combinated controls. @@ -20,7 +20,7 @@ import org.kde.qt.QResizeEvent; A special feature of KIntNumInput, designed specifically for the situation when there are several KIntNumInputs in a column, is that you can specify what portion of the control is taken by the - QSpinBox (the remaining portion is used by the slider). This makes + TQSpinBox (the remaining portion is used by the slider). This makes it very simple to have all the sliders in a column be the same size. It uses KIntValidator validator class. KIntNumInput enforces the value to be in the given range, and can display it in any base @@ -34,23 +34,23 @@ import org.kde.qt.QResizeEvent; */ public class KIntNumInput extends KNumInput { protected KIntNumInput(Class dummy){super((Class) null);} - public native QMetaObject metaObject(); + public native TQMetaObject metaObject(); public native String className(); /** Constructs an input control for integer values with base 10 and initial value 0. @short Constructs an input control for integer values with base 10 and initial value 0. */ - public KIntNumInput(QWidget parent, String name) { + public KIntNumInput(TQWidget parent, String name) { super((Class) null); newKIntNumInput(parent,name); } - private native void newKIntNumInput(QWidget parent, String name); - public KIntNumInput(QWidget parent) { + private native void newKIntNumInput(TQWidget parent, String name); + public KIntNumInput(TQWidget parent) { super((Class) null); newKIntNumInput(parent); } - private native void newKIntNumInput(QWidget parent); + private native void newKIntNumInput(TQWidget parent); public KIntNumInput() { super((Class) null); newKIntNumInput(); @@ -58,31 +58,31 @@ public class KIntNumInput extends KNumInput { private native void newKIntNumInput(); /** Constructor - It constructs a QSpinBox that allows the input of integer numbers + It constructs a TQSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX. To set a descriptive label, use setLabel(). To enforce the value being in a range and optionally to attach a slider to it, use setRange(). @param value initial value for the control @param base numeric base used for display - @param parent parent QWidget + @param parent parent TQWidget @param name internal name for this widget - @short Constructor It constructs a QSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX. + @short Constructor It constructs a TQSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX. */ - public KIntNumInput(int value, QWidget parent, int base, String name) { + public KIntNumInput(int value, TQWidget parent, int base, String name) { super((Class) null); newKIntNumInput(value,parent,base,name); } - private native void newKIntNumInput(int value, QWidget parent, int base, String name); - public KIntNumInput(int value, QWidget parent, int base) { + private native void newKIntNumInput(int value, TQWidget parent, int base, String name); + public KIntNumInput(int value, TQWidget parent, int base) { super((Class) null); newKIntNumInput(value,parent,base); } - private native void newKIntNumInput(int value, QWidget parent, int base); - public KIntNumInput(int value, QWidget parent) { + private native void newKIntNumInput(int value, TQWidget parent, int base); + public KIntNumInput(int value, TQWidget parent) { super((Class) null); newKIntNumInput(value,parent); } - private native void newKIntNumInput(int value, QWidget parent); + private native void newKIntNumInput(int value, TQWidget parent); public KIntNumInput(int value) { super((Class) null); newKIntNumInput(value); @@ -100,25 +100,25 @@ public class KIntNumInput extends KNumInput { @param below append KIntNumInput to the KNumInput chain @param value initial value for the control @param base numeric base used for display - @param parent parent QWidget + @param parent parent TQWidget @param name internal name for this widget @short Constructor */ - public KIntNumInput(KNumInput below, int value, QWidget parent, int base, String name) { + public KIntNumInput(KNumInput below, int value, TQWidget parent, int base, String name) { super((Class) null); newKIntNumInput(below,value,parent,base,name); } - private native void newKIntNumInput(KNumInput below, int value, QWidget parent, int base, String name); - public KIntNumInput(KNumInput below, int value, QWidget parent, int base) { + private native void newKIntNumInput(KNumInput below, int value, TQWidget parent, int base, String name); + public KIntNumInput(KNumInput below, int value, TQWidget parent, int base) { super((Class) null); newKIntNumInput(below,value,parent,base); } - private native void newKIntNumInput(KNumInput below, int value, QWidget parent, int base); - public KIntNumInput(KNumInput below, int value, QWidget parent) { + private native void newKIntNumInput(KNumInput below, int value, TQWidget parent, int base); + public KIntNumInput(KNumInput below, int value, TQWidget parent) { super((Class) null); newKIntNumInput(below,value,parent); } - private native void newKIntNumInput(KNumInput below, int value, QWidget parent); + private native void newKIntNumInput(KNumInput below, int value, TQWidget parent); public KIntNumInput(KNumInput below, int value) { super((Class) null); newKIntNumInput(below,value); @@ -166,7 +166,7 @@ public class KIntNumInput extends KNumInput { /** @param min minimum value @param max maximum value - @param step step size for the QSlider + @param step step size for the TQSlider @param slider whether the slider is created or not @short */ @@ -213,7 +213,7 @@ public class KIntNumInput extends KNumInput { @short This method returns the minimum size necessary to display the control. */ - public native QSize minimumSizeHint(); + public native TQSize minimumSizeHint(); /** Sets the value of the control. @short Sets the value of the control. @@ -236,7 +236,7 @@ public class KIntNumInput extends KNumInput { prepended <code>value</code> and the suffix's text has to be provided as the first character in the suffix). @short Sets the suffix to <code>suffix.</code> - @see org.kde.qt.QSpinBox#setSuffix + @see org.kde.qt.TQSpinBox#setSuffix @see #setPrefix */ public native void setSuffix(String suffix); @@ -245,7 +245,7 @@ public class KIntNumInput extends KNumInput { Use null to disable this feature. Formatting has to be provided (see above). @short Sets the prefix to <code>prefix.</code> - @see org.kde.qt.QSpinBox#setPrefix + @see org.kde.qt.TQSpinBox#setPrefix @see #setSuffix */ public native void setPrefix(String prefix); @@ -256,7 +256,7 @@ public class KIntNumInput extends KNumInput { public native void setEditFocus(boolean mark); public native void setEditFocus(); protected native void doLayout(); - protected native void resizeEvent(QResizeEvent arg1); + protected native void resizeEvent(TQResizeEvent arg1); /** Deletes the wrapped C++ instance */ protected native void finalize() throws InternalError; /** Delete the wrapped C++ instance ahead of finalize() */ |