diff options
Diffstat (limited to 'qtjava/javalib/org/kde/qt/QObject.java')
-rw-r--r-- | qtjava/javalib/org/kde/qt/QObject.java | 272 |
1 files changed, 272 insertions, 0 deletions
diff --git a/qtjava/javalib/org/kde/qt/QObject.java b/qtjava/javalib/org/kde/qt/QObject.java new file mode 100644 index 00000000..c9c98412 --- /dev/null +++ b/qtjava/javalib/org/kde/qt/QObject.java @@ -0,0 +1,272 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.qt; + +import org.kde.qt.Qt; +import java.util.ArrayList; + +/** + See {@link QObjectSignals} for signals emitted by QObject +*/ +public class QObject extends Qt { + protected QObject(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + public QObject(QObject parent, String name) { + super((Class) null); + newQObject(parent,name); + } + private native void newQObject(QObject parent, String name); + public QObject(QObject parent) { + super((Class) null); + newQObject(parent); + } + private native void newQObject(QObject parent); + public QObject() { + super((Class) null); + newQObject(); + } + private native void newQObject(); + public native boolean event(QEvent arg1); + public native boolean eventFilter(QObject arg1, QEvent arg2); + public native boolean isA(String arg1); + public native boolean inherits(String arg1); + public native String name(); + public native String name(String defaultName); + public native void setName(String name); + public native boolean isWidgetType(); + public native boolean highPriority(); + public native boolean signalsBlocked(); + public native void blockSignals(boolean b); + public native int startTimer(int interval); + public native void killTimer(int id); + public native void killTimers(); + public native QObject child(String objName, String inheritsClass, boolean recursiveSearch); + public native QObject child(String objName, String inheritsClass); + public native QObject child(String objName); + public native ArrayList children(); + public native ArrayList queryList(String inheritsClass, String objName, boolean regexpMatch, boolean recursiveSearch); + public native ArrayList queryList(String inheritsClass, String objName, boolean regexpMatch); + public native ArrayList queryList(String inheritsClass, String objName); + public native ArrayList queryList(String inheritsClass); + public native ArrayList queryList(); + public native void insertChild(QObject arg1); + public native void removeChild(QObject arg1); + public native void installEventFilter(QObject arg1); + public native void removeEventFilter(QObject arg1); + public native boolean connect(QObject sender, String signal, String member); + public native boolean disconnect(String signal, QObject receiver, String member); + public native boolean disconnect(String signal, QObject receiver); + public native boolean disconnect(String signal); + public native boolean disconnect(); + public native boolean disconnect(QObject receiver, String member); + public native boolean disconnect(QObject receiver); + public native void dumpObjectTree(); + public native void dumpObjectInfo(); + public native boolean setProperty(String name, QVariant value); + public native QVariant property(String name); + // void setUserData(uint arg1,QObjectUserData* arg2); >>>> NOT CONVERTED + // QObjectUserData* userData(uint arg1); >>>> NOT CONVERTED + public native QObject parent(); + public native void deleteLater(); + public static native String tr(String arg1, String arg2); + public static native String tr(String arg1); + public static native ArrayList objectTrees(); + public static native boolean connect(QObject sender, String signal, QObject receiver, String member); + public static native boolean disconnect(QObject sender, String signal, QObject receiver, String member); + public static native void connectInternal(QObject sender, int signal_index, QObject receiver, int membcode, int member_index); + public static native boolean disconnectInternal(QObject sender, int signal_index, QObject receiver, int membcode, int member_index); + public static native int registerUserData(); + protected native boolean activate_filters(QEvent arg1); + // QConnectionList* receivers(const char* arg1); >>>> NOT CONVERTED + // QConnectionList* receivers(int arg1); >>>> NOT CONVERTED + protected native void activate_signal(int signal); + protected native void activate_signal(int signal, int arg2); + protected native void activate_signal(int signal, double arg2); + protected native void activate_signal(int signal, String arg2); + protected native void activate_signal_bool(int signal, boolean arg2); + // void activate_signal(QConnectionList* arg1,QUObject* arg2); >>>> NOT CONVERTED + protected native QObject sender(); + protected native void timerEvent(QTimerEvent arg1); + protected native void childEvent(QChildEvent arg1); + protected native void customEvent(QCustomEvent arg1); + protected native void connectNotify(String signal); + protected native void disconnectNotify(String signal); + protected native boolean checkConnectArgs(String signal, QObject receiver, String member); + protected static native String normalizeSignalSlot(String signalSlot); + /** 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(); + /** i18n() is just a synonym of tr() for now */ + public static String i18n(String s) { + return tr(s); + } + + public native void emit(String signal, Object[] args); + + protected void emit(String signal) { + Object[] args = new Object[0]; + emit("2" + signal.trim() + "()", args); + } + + protected void emit(String signal, Object value) { + Object[] args = new Object[1]; + args[0] = value; + emit("2" + signal.trim() + "(" + value.getClass().getName() + ")", args); + } + + protected void emit(String signal, Object value1, Object value2) { + Object[] args = new Object[2]; + args[0] = value1; + args[1] = value2; + emit("2" + signal.trim() + "(" + value1.getClass().getName() + "," + + value2.getClass().getName() + + ")", args); + } + + protected void emit(String signal, Object value1, Object value2, Object value3) { + Object[] args = new Object[3]; + args[0] = value1; + args[1] = value2; + args[2] = value3; + emit("2" + signal.trim() + "(" + value1.getClass().getName() + "," + + value2.getClass().getName() + "," + + value3.getClass().getName() + + ")", args); + } + + protected void emit(String signal, Object value1, Object value2, Object value3, Object value4) { + Object[] args = new Object[4]; + args[0] = value1; + args[1] = value2; + args[2] = value3; + args[3] = value4; + emit("2" + signal.trim() + "(" + value1.getClass().getName() + "," + + value2.getClass().getName() + "," + + value3.getClass().getName() + "," + + value4.getClass().getName() + + ")", args); + } + + protected void emit(String signal, boolean value) { + Object[] args = new Object[1]; + args[0] = new Boolean(value); + emit("2" + signal.trim() + "(boolean)", args); + } + + protected void emit(String signal, char value) { + Object[] args = new Object[1]; + args[0] = new Character(value); + emit("2" + signal.trim() + "(char)", args); + } + + protected void emit(String signal, byte value) { + Object[] args = new Object[1]; + args[0] = new Byte(value); + emit("2" + signal.trim() + "(byte)", args); + } + + protected void emit(String signal, short value) { + Object[] args = new Object[1]; + args[0] = new Short(value); + emit("2" + signal.trim() + "(short)", args); + } + + protected void emit(String signal, int value) { + Object[] args = new Object[1]; + args[0] = new Integer(value); + emit("2" + signal.trim() + "(int)", args); + } + + protected void emit(String signal, int value1, int value2) { + Object[] args = new Object[2]; + args[0] = new Integer(value1); + args[1] = new Integer(value2); + emit("2" + signal.trim() + "(int,int)", args); + } + + protected void emit(String signal, Object value1, int value2) { + Object[] args = new Object[2]; + args[0] = value1; + args[1] = new Integer(value2); + emit("2" + signal.trim() + "(" + value1.getClass().getName() + "," + + "int" + + ")", args); + } + + protected void emit(String signal, int value1, int value2, int value3) { + Object[] args = new Object[3]; + args[0] = new Integer(value1); + args[1] = new Integer(value2); + args[2] = new Integer(value3); + emit("2" + signal.trim() + "(int,int,int)", args); + } + + protected void emit(String signal, int value1, int value2, int value3, Object value4) { + Object[] args = new Object[4]; + args[0] = new Integer(value1); + args[1] = new Integer(value2); + args[2] = new Integer(value3); + args[3] = value4; + emit("2" + signal.trim() + "(int,int,int," + value4.getClass().getName() + ")", args); + } + + protected void emit(String signal, int value1, Object value2, Object value3) { + Object[] args = new Object[3]; + args[0] = new Integer(value1); + args[1] = value2; + args[2] = value3; + emit("2" + signal.trim() + "(int," + + value2.getClass().getName() + "," + + value3.getClass().getName() + + ")", args); + } + + protected void emit(String signal, int value1, Object value2, Object value3, int value4) { + Object[] args = new Object[4]; + args[0] = new Integer(value1); + args[1] = value2; + args[2] = value3; + args[3] = new Integer(value4); + emit("2" + signal.trim() + "(int," + + value2.getClass().getName() + "," + + value3.getClass().getName() + + ",int)", args); + } + + protected void emit(String signal, int value1, boolean value2) { + Object[] args = new Object[2]; + args[0] = new Integer(value1); + args[1] = new Boolean(value2); + emit("2" + signal.trim() + "(int,boolean)", args); + } + + protected void emit(String signal, long value) { + Object[] args = new Object[1]; + args[0] = new Long(value); + emit("2" + signal.trim() + "(long)", args); + } + + protected void emit(String signal, float value) { + Object[] args = new Object[1]; + args[0] = new Float(value); + emit("2" + signal.trim() + "(float)", args); + } + + protected void emit(String signal, double value) { + Object[] args = new Object[1]; + args[0] = new Double(value); + emit("2" + signal.trim() + "(double)", args); + } + + protected void emit(String signal, Object value1, int value2, int value3) { + Object[] args = new Object[3]; + args[0] = value1; + args[1] = new Integer(value2); + args[2] = new Integer(value3); + emit("2" + signal.trim() + "(" + value1.getClass().getName() + ",int,int)", args); + } + +} |