|
|
|
@ -506,19 +506,19 @@ EOF
|
|
|
|
|
|
|
|
|
|
public static native TQApplication tqApp();
|
|
|
|
|
|
|
|
|
|
public static native void qDebug(String message);
|
|
|
|
|
public static void qDebug(String pattern, Object[] arguments) {
|
|
|
|
|
qDebug(MessageFormat.format(pattern, arguments));
|
|
|
|
|
public static native void tqDebug(String message);
|
|
|
|
|
public static void tqDebug(String pattern, Object[] arguments) {
|
|
|
|
|
tqDebug(MessageFormat.format(pattern, arguments));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static native void qWarning(String message);
|
|
|
|
|
public static void qWarning(String pattern, Object[] arguments) {
|
|
|
|
|
qWarning(MessageFormat.format(pattern, arguments));
|
|
|
|
|
public static native void tqWarning(String message);
|
|
|
|
|
public static void tqWarning(String pattern, Object[] arguments) {
|
|
|
|
|
tqWarning(MessageFormat.format(pattern, arguments));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static native void qFatal(String message);
|
|
|
|
|
public static void qFatal(String pattern, Object[] arguments) {
|
|
|
|
|
qFatal(MessageFormat.format(pattern, arguments));
|
|
|
|
|
public static native void tqFatal(String message);
|
|
|
|
|
public static void tqFatal(String pattern, Object[] arguments) {
|
|
|
|
|
tqFatal(MessageFormat.format(pattern, arguments));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static String sqeezeOut(String from, char toss) {
|
|
|
|
@ -552,7 +552,7 @@ EOF
|
|
|
|
|
try {
|
|
|
|
|
result = new String(bytes, "UTF-8");
|
|
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
|
|
qWarning("UTF-8 encoding not supported");
|
|
|
|
|
tqWarning("UTF-8 encoding not supported");
|
|
|
|
|
} finally {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
@ -822,7 +822,7 @@ Java_org_kde_qt_Qt_qDebug(JNIEnv* env, jclass cls, jstring message)
|
|
|
|
|
{
|
|
|
|
|
static TQCString * _qstring_message = 0;
|
|
|
|
|
(void) cls;
|
|
|
|
|
qDebug("%s", (const char *) QtSupport::toCharString(env, message, &_qstring_message));
|
|
|
|
|
tqDebug("%s", (const char *) QtSupport::toCharString(env, message, &_qstring_message));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -831,7 +831,7 @@ Java_org_kde_qt_Qt_qWarning(JNIEnv* env, jclass cls, jstring message)
|
|
|
|
|
{
|
|
|
|
|
static TQCString * _qstring_message = 0;
|
|
|
|
|
(void) cls;
|
|
|
|
|
qWarning("%s", (const char *) QtSupport::toCharString(env, message, &_qstring_message));
|
|
|
|
|
tqWarning("%s", (const char *) QtSupport::toCharString(env, message, &_qstring_message));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -840,7 +840,7 @@ Java_org_kde_qt_Qt_qFatal(JNIEnv* env, jclass cls, jstring message)
|
|
|
|
|
{
|
|
|
|
|
static TQCString * _qstring_message = 0;
|
|
|
|
|
(void) cls;
|
|
|
|
|
qFatal("%s", (const char *) QtSupport::toCharString(env, message, &_qstring_message));
|
|
|
|
|
tqFatal("%s", (const char *) QtSupport::toCharString(env, message, &_qstring_message));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|