All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QTranslator Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Internationalization support for text output

*

Java wrapper for Qt class QTranslator

*/ public class QTranslator extends io.qt.core.QObject { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTranslator.class); /** *

See QTranslator::QTranslator(QObject*)

*/ public QTranslator(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QTranslator instance, io.qt.core.QObject parent); /** *

See QTranslator::filePath()const

*/ @QtUninvokable public final java.lang.@NonNull String filePath(){ return filePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String filePath_native_constfct(long __this__nativeId); /** *

See QTranslator::language()const

*/ @QtUninvokable public final java.lang.@NonNull String language(){ return language_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String language_native_constfct(long __this__nativeId); /** *

See QTranslator::load(QLocale,QString,QString,QString,QString)

*/ @QtUninvokable public final boolean load(io.qt.core.@NonNull QLocale locale, java.lang.@NonNull String filename, java.lang.@NonNull String prefix, java.lang.@NonNull String directory, java.lang.@NonNull String suffix){ return load_native_cref_QLocale_cref_QString_cref_QString_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(locale), filename, prefix, directory, suffix); } @QtUninvokable private native boolean load_native_cref_QLocale_cref_QString_cref_QString_cref_QString_cref_QString(long __this__nativeId, long locale, java.lang.String filename, java.lang.String prefix, java.lang.String directory, java.lang.String suffix); /** *

See QTranslator::load(QString,QString,QString,QString)

*/ @QtUninvokable public final boolean load(java.lang.@NonNull String filename, java.lang.@NonNull String directory, java.lang.@NonNull String search_delimiters, java.lang.@NonNull String suffix){ return load_native_cref_QString_cref_QString_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filename, directory, search_delimiters, suffix); } @QtUninvokable private native boolean load_native_cref_QString_cref_QString_cref_QString_cref_QString(long __this__nativeId, java.lang.String filename, java.lang.String directory, java.lang.String search_delimiters, java.lang.String suffix); /** *

See QTranslator::load(const uchar*,int,QString)

*/ @QtUninvokable public final boolean load(byte @Nullable[] data, java.lang.@NonNull String directory){ return load_native_const_uchar_ptr_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), data, directory); } @QtUninvokable private native boolean load_native_const_uchar_ptr_int_cref_QString(long __this__nativeId, byte[] data, java.lang.String directory); /** *

See QTranslator::isEmpty()const

*/ @QtUninvokable public boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QTranslator::translate(const char*,const char*,const char*,int)const

*/ @QtUninvokable public java.lang.@NonNull String translate(java.lang.@Nullable String context, java.lang.@Nullable String sourceText, java.lang.@Nullable String disambiguation, int n){ return translate_native_const_char_ptr_const_char_ptr_const_char_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), context, sourceText, disambiguation, n); } @QtUninvokable private native java.lang.String translate_native_const_char_ptr_const_char_ptr_const_char_ptr_int_constfct(long __this__nativeId, java.lang.String context, java.lang.String sourceText, java.lang.String disambiguation, int n); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTranslator(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QTranslator(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QTranslator instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QTranslator(io.qt.core.QObject)} * with parent = null.

*/ public QTranslator() { this((io.qt.core.QObject)null); } /** *

Overloaded function for {@link #load(io.qt.core.QLocale, java.lang.String, java.lang.String, java.lang.String, java.lang.String)} * with suffix = (String)null.

*/ @QtUninvokable public final boolean load(io.qt.core.@NonNull QLocale locale, java.lang.@NonNull String filename, java.lang.@NonNull String prefix, java.lang.@NonNull String directory) { return load(locale, filename, prefix, directory, (String)null); } /** *

Overloaded function for {@link #load(io.qt.core.QLocale, java.lang.String, java.lang.String, java.lang.String, java.lang.String)}

*

with:

    *
  • directory = (String)null
  • *
  • suffix = (String)null
  • *
*/ @QtUninvokable public final boolean load(io.qt.core.@NonNull QLocale locale, java.lang.@NonNull String filename, java.lang.@NonNull String prefix) { return load(locale, filename, prefix, (String)null, (String)null); } /** *

Overloaded function for {@link #load(io.qt.core.QLocale, java.lang.String, java.lang.String, java.lang.String, java.lang.String)}

*

with:

    *
  • prefix = (String)null
  • *
  • directory = (String)null
  • *
  • suffix = (String)null
  • *
*/ @QtUninvokable public final boolean load(io.qt.core.@NonNull QLocale locale, java.lang.@NonNull String filename) { return load(locale, filename, (String)null, (String)null, (String)null); } /** *

Overloaded function for {@link #load(java.lang.String, java.lang.String, java.lang.String, java.lang.String)} * with suffix = (String)null.

*/ @QtUninvokable public final boolean load(java.lang.@NonNull String filename, java.lang.@NonNull String directory, java.lang.@NonNull String search_delimiters) { return load(filename, directory, search_delimiters, (String)null); } /** *

Overloaded function for {@link #load(java.lang.String, java.lang.String, java.lang.String, java.lang.String)}

*

with:

    *
  • search_delimiters = (String)null
  • *
  • suffix = (String)null
  • *
*/ @QtUninvokable public final boolean load(java.lang.@NonNull String filename, java.lang.@NonNull String directory) { return load(filename, directory, (String)null, (String)null); } /** *

Overloaded function for {@link #load(java.lang.String, java.lang.String, java.lang.String, java.lang.String)}

*

with:

    *
  • directory = (String)null
  • *
  • search_delimiters = (String)null
  • *
  • suffix = (String)null
  • *
*/ @QtUninvokable public final boolean load(java.lang.@NonNull String filename) { return load(filename, (String)null, (String)null, (String)null); } /** *

Overloaded function for {@link #load(byte[], java.lang.String)} * with directory = (String)null.

*/ @QtUninvokable public final boolean load(byte @Nullable[] data) { return load(data, (String)null); } /** *

Overloaded function for {@link #translate(java.lang.String, java.lang.String, java.lang.String, int)} * with n = -1.

*/ @QtUninvokable public final java.lang.@NonNull String translate(java.lang.@Nullable String context, java.lang.@Nullable String sourceText, java.lang.@Nullable String disambiguation) { return translate(context, sourceText, disambiguation, (int)-1); } /** *

Overloaded function for {@link #translate(java.lang.String, java.lang.String, java.lang.String, int)}

*

with:

    *
  • disambiguation = null
  • *
  • n = -1
  • *
*/ @QtUninvokable public final java.lang.@NonNull String translate(java.lang.@Nullable String context, java.lang.@Nullable String sourceText) { return translate(context, sourceText, (java.lang.String)null, (int)-1); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy