summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KLed.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KLed.java')
-rw-r--r--kdejava/koala/org/kde/koala/KLed.java72
1 files changed, 36 insertions, 36 deletions
diff --git a/kdejava/koala/org/kde/koala/KLed.java b/kdejava/koala/org/kde/koala/KLed.java
index 6a0cedc7..7ff61c08 100644
--- a/kdejava/koala/org/kde/koala/KLed.java
+++ b/kdejava/koala/org/kde/koala/KLed.java
@@ -2,13 +2,13 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QColor;
-import org.kde.qt.QMetaObject;
+import org.kde.qt.TQColor;
+import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
-import org.kde.qt.QPaintEvent;
-import org.kde.qt.QSize;
-import org.kde.qt.QWidget;
-import org.kde.qt.QWidget;
+import org.kde.qt.TQPaintEvent;
+import org.kde.qt.TQSize;
+import org.kde.qt.TQWidget;
+import org.kde.qt.TQWidget;
/**
@@ -23,7 +23,7 @@ import org.kde.qt.QWidget;
@short An LED widget.
*/
-public class KLed extends QWidget {
+public class KLed extends TQWidget {
protected KLed(Class dummy){super((Class) null);}
/**
Status of the light is on/off.
@@ -67,23 +67,23 @@ public class KLed extends QWidget {
public static final int Raised = 1;
public static final int Sunken = 2;
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Constructs a green, round LED widget which will initially
be turned on.
@short Constructs a green, round LED widget which will initially be turned on.
*/
- public KLed(QWidget parent, String name) {
+ public KLed(TQWidget parent, String name) {
super((Class) null);
newKLed(parent,name);
}
- private native void newKLed(QWidget parent, String name);
- public KLed(QWidget parent) {
+ private native void newKLed(TQWidget parent, String name);
+ public KLed(TQWidget parent) {
super((Class) null);
newKLed(parent);
}
- private native void newKLed(QWidget parent);
+ private native void newKLed(TQWidget parent);
public KLed() {
super((Class) null);
newKLed();
@@ -93,25 +93,25 @@ public class KLed extends QWidget {
Constructor with the ledcolor, the parent widget, and the name.
The State will be defaulted On and the Look round.
@param col Initial color of the LED.
- @param parent Will be handed over to QWidget.
- @param name Will be handed over to QWidget.
+ @param parent Will be handed over to TQWidget.
+ @param name Will be handed over to TQWidget.
@short Constructor.
*/
- public KLed(QColor col, QWidget parent, String name) {
+ public KLed(TQColor col, TQWidget parent, String name) {
super((Class) null);
newKLed(col,parent,name);
}
- private native void newKLed(QColor col, QWidget parent, String name);
- public KLed(QColor col, QWidget parent) {
+ private native void newKLed(TQColor col, TQWidget parent, String name);
+ public KLed(TQColor col, TQWidget parent) {
super((Class) null);
newKLed(col,parent);
}
- private native void newKLed(QColor col, QWidget parent);
- public KLed(QColor col) {
+ private native void newKLed(TQColor col, TQWidget parent);
+ public KLed(TQColor col) {
super((Class) null);
newKLed(col);
}
- private native void newKLed(QColor col);
+ private native void newKLed(TQColor col);
/**
Constructor with the ledcolor, ledstate, ledlook,
the parent widget, and the name.
@@ -120,25 +120,25 @@ public class KLed extends QWidget {
@param state Sets the State.
@param look Sets the Look.
@param shape Sets the Shape (rectangular or circular)
- @param parent Will be handed over to QWidget.
- @param name Will be handed over to QWidget.
+ @param parent Will be handed over to TQWidget.
+ @param name Will be handed over to TQWidget.
@short Constructor.
*/
- public KLed(QColor col, int state, int look, int shape, QWidget parent, String name) {
+ public KLed(TQColor col, int state, int look, int shape, TQWidget parent, String name) {
super((Class) null);
newKLed(col,state,look,shape,parent,name);
}
- private native void newKLed(QColor col, int state, int look, int shape, QWidget parent, String name);
- public KLed(QColor col, int state, int look, int shape, QWidget parent) {
+ private native void newKLed(TQColor col, int state, int look, int shape, TQWidget parent, String name);
+ public KLed(TQColor col, int state, int look, int shape, TQWidget parent) {
super((Class) null);
newKLed(col,state,look,shape,parent);
}
- private native void newKLed(QColor col, int state, int look, int shape, QWidget parent);
- public KLed(QColor col, int state, int look, int shape) {
+ private native void newKLed(TQColor col, int state, int look, int shape, TQWidget parent);
+ public KLed(TQColor col, int state, int look, int shape) {
super((Class) null);
newKLed(col,state,look,shape);
}
- private native void newKLed(QColor col, int state, int look, int shape);
+ private native void newKLed(TQColor col, int state, int look, int shape);
/**
Returns the current state of the widget (on/off).
@short Returns LED state.
@@ -151,7 +151,7 @@ public class KLed extends QWidget {
@short Returns LED color.
@see Color
*/
- public native QColor color();
+ public native TQColor color();
/**
Returns the look of the widget.
@short Returns LED look.
@@ -183,23 +183,23 @@ public class KLed extends QWidget {
/**
Set the color of the widget.
The Color is shown with the KLed.On state.
- The KLed.Off state is shown with QColor.dark() method
+ The KLed.Off state is shown with TQColor.dark() method
The widget calls the update() method, so it will
be updated when entering the main event loop.
@param color New color of the LED.
@short Sets the LED color.
@see Color
*/
- public native void setColor(QColor color);
+ public native void setColor(TQColor color);
/**
Sets the factor to darken the LED in OFF state.
- Same as QColor.dark().
+ Same as TQColor.dark().
"darkfactor should be greater than 100, else the LED gets lighter
in OFF state.
Defaults to 300.
@param darkfactor sets the factor to darken the LED.
@short sets the factor to darken the LED.
- @see org.kde.qt.QColor
+ @see org.kde.qt.TQColor
*/
public native void setDarkFactor(int darkfactor);
/**
@@ -212,8 +212,8 @@ public class KLed extends QWidget {
@see Look
*/
public native void setLook(int look);
- public native QSize sizeHint();
- public native QSize minimumSizeHint();
+ public native TQSize sizeHint();
+ public native TQSize minimumSizeHint();
/**
Toggles the state of the led from Off to On or vice versa.
The widget repaints itself immediately.
@@ -266,7 +266,7 @@ public class KLed extends QWidget {
@short Paints a rectangular LED, either raised or sunken, depending on its argument.
*/
protected native void paintRectFrame(boolean raised);
- protected native void paintEvent(QPaintEvent arg1);
+ protected native void paintEvent(TQPaintEvent arg1);
/**
Compute LED width
@short Compute LED width