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.1
Show newest version
package io.qt.core;


/**
 * 

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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTranslator.class); /** *

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

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

See QTranslator::QTranslator(QObject*)

*/ public QTranslator(io.qt.core.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

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

See QTranslator::language()const

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

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

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

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

*

with:

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

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

*

with:

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

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

*/ @io.qt.QtUninvokable public final boolean load(io.qt.core.QLocale locale, java.lang.String filename, java.lang.String prefix, java.lang.String directory, java.lang.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); } @io.qt.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); /** *

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

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

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

*

with:

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

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

*

with:

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

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

*/ @io.qt.QtUninvokable public final boolean load(java.lang.String filename, java.lang.String directory, java.lang.String search_delimiters, java.lang.String suffix){ return load_native_cref_QString_cref_QString_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filename, directory, search_delimiters, suffix); } @io.qt.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); /** *

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

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

See QTranslator::isEmpty()const

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

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

*/ @io.qt.QtUninvokable public final java.lang.String translate(java.lang.String context, java.lang.String sourceText, java.lang.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
  • *
*/ @io.qt.QtUninvokable public final java.lang.String translate(java.lang.String context, java.lang.String sourceText) { return translate(context, sourceText, (java.lang.String)null, (int)-1); } /** *

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

*/ @io.qt.QtUninvokable public java.lang.String translate(java.lang.String context, java.lang.String sourceText, java.lang.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); } @io.qt.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. */ @io.qt.NativeAccess protected QTranslator(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QTranslator(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QTranslator instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy