From ddde3d2db1a481c6fd3fd3e4273176b75d17c5e8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 08:14:52 -0600 Subject: Rename KLocale to enhance compatibility with KDE4 --- .../org/kde/koala/KCalendarSystemFactory.java | 2 +- kdejava/koala/org/kde/koala/KCatalogue.java | 2 +- kdejava/koala/org/kde/koala/KDE.java | 20 +- kdejava/koala/org/kde/koala/KDoubleValidator.java | 4 +- kdejava/koala/org/kde/koala/KFloatValidator.java | 2 +- kdejava/koala/org/kde/koala/KLocale.java | 993 --------------------- kdejava/koala/org/kde/koala/Makefile.am | 2 +- kdejava/koala/org/kde/koala/TDEConfigBackEnd.java | 2 +- kdejava/koala/org/kde/koala/TDEGlobal.java | 2 +- kdejava/koala/org/kde/koala/TDELocale.java | 993 +++++++++++++++++++++ kdejava/koala/org/kde/koala/TDEStandardDirs.java | 2 +- 11 files changed, 1012 insertions(+), 1012 deletions(-) delete mode 100644 kdejava/koala/org/kde/koala/KLocale.java create mode 100644 kdejava/koala/org/kde/koala/TDELocale.java (limited to 'kdejava/koala/org/kde/koala') diff --git a/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java b/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java index b7786311..f538facf 100644 --- a/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java +++ b/kdejava/koala/org/kde/koala/KCalendarSystemFactory.java @@ -33,7 +33,7 @@ public class KCalendarSystemFactory implements QtSupport { @short Gets specific calendar type number of days in previous month for a given date */ - public static native KCalendarSystem create(String calType, KLocale locale); + public static native KCalendarSystem create(String calType, TDELocale locale); public static native KCalendarSystem create(String calType); public static native KCalendarSystem create(); /** diff --git a/kdejava/koala/org/kde/koala/KCatalogue.java b/kdejava/koala/org/kde/koala/KCatalogue.java index 5a14f45a..3825c524 100644 --- a/kdejava/koala/org/kde/koala/KCatalogue.java +++ b/kdejava/koala/org/kde/koala/KCatalogue.java @@ -9,7 +9,7 @@ import org.kde.qt.QtSupport; This class abstracts a gettext message catalog. It will take care of opening the file and reading the catalog. @short This class abstracts a gettext message catalog. - @see KLocale + @see TDELocale */ public class KCatalogue implements QtSupport { diff --git a/kdejava/koala/org/kde/koala/KDE.java b/kdejava/koala/org/kde/koala/KDE.java index 4a6b22f7..d1b1d1f9 100644 --- a/kdejava/koala/org/kde/koala/KDE.java +++ b/kdejava/koala/org/kde/koala/KDE.java @@ -64,7 +64,7 @@ public class KDE { public static native String versionString(); // int KSSLPemCallback(char* arg1,int arg2,int arg3,void* arg4); >>>> NOT CONVERTED /** - {@link KLocale} + {@link TDELocale} i18n is the function that does everything you need to translate a string. You just wrap around every user visible string a i18n call to get a String with the string in the user's preferred @@ -73,20 +73,20 @@ public class KDE { characters that are in US-ASCII, you're on the safe side. But for e.g. German umlauts or French accents should be recoded to UTF-8) - @short {@link KLocale} i18n is the function that does everything you need to translate a string. + @short {@link TDELocale} i18n is the function that does everything you need to translate a string. */ public static native String i18n(String text); /** - {@link KLocale} + {@link TDELocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text. - @short {@link KLocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text. + @short {@link TDELocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text. @see #translate */ public static native String i18n(String comment, String text); /** - {@link KLocale} + {@link TDELocale} If you want to handle plural forms, use this form of i18n. @param singular the singular form of the word, for example "file". @param plural the plural form of the word. Must contain a "%n" that will @@ -95,16 +95,16 @@ public class KDE { @return the correct singular or plural for the selected language, depending on n - @short {@link KLocale} If you want to handle plural forms, use this form of i18n. + @short {@link TDELocale} If you want to handle plural forms, use this form of i18n. @see #translate */ public static native String i18n(String singular, String plural, long n); /** - {@link KLocale} + {@link TDELocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method. We use uic -tr tr2i18n to redirect to the right i18n() function - @short {@link KLocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method. + @short {@link TDELocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method. */ public static native String tr2i18n(String message, String arg2); public static native String tr2i18n(String message); @@ -175,7 +175,7 @@ public class KDE { // TQDataStream& op_read(TQDataStream& arg1,long long int& arg2); >>>> NOT CONVERTED // TQDataStream& op_read(TQDataStream& arg1,unsigned long long int& arg2); >>>> NOT CONVERTED /** - Convert an ASN1 UTCTIME value to a string. Uses KLocale settings. + Convert an ASN1 UTCTIME value to a string. Uses TDELocale settings. @param tm the OpenSSL ASN1_UTCTIME pointer @return the date formatted in a String @@ -184,7 +184,7 @@ public class KDE { */ // TQString ASN1_UTCTIME_QString(ASN1_UTCTIME* arg1); >>>> NOT CONVERTED /** - Convert an ASN1 UTCTIME value to a Calendar. Uses KLocale settings. + Convert an ASN1 UTCTIME value to a Calendar. Uses TDELocale settings. @param tm the OpenSSL ASN1_UTCTIME pointer @param isGmt set to 1 if the date is set to GMT @return the date formatted in a TQDateTime diff --git a/kdejava/koala/org/kde/koala/KDoubleValidator.java b/kdejava/koala/org/kde/koala/KDoubleValidator.java index a97ad42e..28cf66d1 100644 --- a/kdejava/koala/org/kde/koala/KDoubleValidator.java +++ b/kdejava/koala/org/kde/koala/KDoubleValidator.java @@ -11,8 +11,8 @@ import org.kde.qt.TQDoubleValidator; KDoubleValidator extends TQDoubleValidator to be locale-aware. That means that - subject to not being disabled - - KLocale.decimalSymbol(), KLocale.thousandsSeparator() - and KLocale.positiveSign() and KLocale.negativeSign() + TDELocale.decimalSymbol(), TDELocale.thousandsSeparator() + and TDELocale.positiveSign() and TDELocale.negativeSign() are respected. @author Marc Mutz diff --git a/kdejava/koala/org/kde/koala/KFloatValidator.java b/kdejava/koala/org/kde/koala/KFloatValidator.java index 521a010c..b9492515 100644 --- a/kdejava/koala/org/kde/koala/KFloatValidator.java +++ b/kdejava/koala/org/kde/koala/KFloatValidator.java @@ -90,7 +90,7 @@ public class KFloatValidator extends TQValidator { public native double top(); /** Sets the validator to be locale aware if is true. In this case, the - character KLocale.decimalSymbol() from the global locale is recognized + character TDELocale.decimalSymbol() from the global locale is recognized as decimal separator. @short Sets the validator to be locale aware if is true. */ diff --git a/kdejava/koala/org/kde/koala/KLocale.java b/kdejava/koala/org/kde/koala/KLocale.java deleted file mode 100644 index a784c5f3..00000000 --- a/kdejava/koala/org/kde/koala/KLocale.java +++ /dev/null @@ -1,993 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; -import java.util.Calendar; -import java.util.ArrayList; -import org.kde.qt.TQTextCodec; -import java.util.Date; - -/** - - KLocale provides support for country specific stuff like - the national language. - KLocale supports translating, as well as specifying the format - for numbers, currency, time, and date. - @author Stephan Kulow , Preston Brown , - Hans Petter Bieker , Lukas Tinkl - - @short class for supporting locale settings and national language. - -*/ -public class KLocale implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected KLocale(Class dummy){} - - /** - Various positions for where to place the positive or negative - sign when they are related to a monetary value. - @short Various positions for where to place the positive or negative sign when they are related to a monetary value. - */ - public static final int ParensAround = 0; - public static final int BeforeQuantityMoney = 1; - public static final int AfterQuantityMoney = 2; - public static final int BeforeMoney = 3; - public static final int AfterMoney = 4; - - public static final int NormalFormat = 1; - public static final int ShortFormat = 2; - - public static final int WithSeconds = 0; - public static final int WithoutSeconds = 1; - - /** - The Metric system will give you information in mm, while the - Imperial system will give you information in inches. - @short The Metric system will give you information in mm, while the Imperial system will give you information in inches. - */ - public static final int Metric = 0; - public static final int Imperial = 1; - - /** - Constructs a KLocale with the given catalog name. - The constructor looks for an entry Locale/Language in the - configuration file. - If no config file is specified, it will also look for languages - using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG), - as well as the global configuration file. If KLocale is not able to use - any of the specified languages, the default language (en_US) will be - used. - If you specify a configuration file, it has to be valid until - the KLocale object is destroyed. - @param catalog The name of the main language file - @param config The configuration file to use. - @short Constructs a KLocale with the given catalog name. - */ - public KLocale(String catalog, TDEConfig config) { - newKLocale(catalog,config); - } - private native void newKLocale(String catalog, TDEConfig config); - public KLocale(String catalog) { - newKLocale(catalog); - } - private native void newKLocale(String catalog); - /** - Copy constructor. - @short Copy constructor. - */ - public KLocale(KLocale rhs) { - newKLocale(rhs); - } - private native void newKLocale(KLocale rhs); - /** - Translates the string into the corresponding string in - the national language, if available. If not, returns - the string itself. - There is a KDE wide message file that contains the most - often used phrases, so we can avoid duplicating the - translation of these phrases. If a phrase is not found - in the catalog given to the constructor, it will search - in the system catalog. This makes it possible to override - some phrases for your needs. - The argument must be an UTF-8 encoded string (If you only use - characters that are in US-ASCII you're on the safe side. But - for e.g. german umlauts or french accents should be recoded to - UTF-8) - @param index The lookup text and default text, if not found. - @short Translates the string into the corresponding string in the national language, if available. - */ - public native String translate(String index); - /** - Translates the string into the corresponding string in the - national language, if available. - The real contents of the string is in the argument fallback, - but the meaning of it is coded into the argument index. - In some cases you'll need this function, when english is - too ambiguous to express it. - Most of the times the translators will tell you if it can't - be translated as it, but think of cases as "New", where the - translations differs depending on what is New. - Or simple cases as "Open", that can be used to express something - is open or it can be used to express that you want something to - open... There are tons of such examples. - If translate("Open") is not enough to translate it well, use - translate("To Open", "Open") or translate("Is Open", "Open"). - The english user will see "Open" in both cases, but the translated - version may vary. Of course you can also use i18n() - @param comment the comment. The lookup text is made out of comment + fallback - @param fallback the default text, if not found - @return translation - - @short Translates the string into the corresponding string in the national language, if available. - */ - public native String translate(String comment, String fallback); - /** - Used to get the correct, translated singular or plural of a - word. - @param singular the singular form of the word, for example "file". - @param plural the plural form of the word. Must contain a "%n" that will - be replaced by the number n, for example "%n files" - @param n the number - @return the correct singular or plural for the selected language, - depending on n - - @short Used to get the correct, translated singular or plural of a word. - */ - public native String translate(String singular, String plural, long n); - /** - Changes the current encoding. - @param mibEnum The mib of the preferred codec - @return True on success. - - @short Changes the current encoding. - */ - public native boolean setEncoding(int mibEnum); - /** - Changes the current language. The current language will be left - unchanged if failed. It will force a reload of the country specific - configuration as well. - @param language The language code. - @return True on success. - - @short Changes the current language. - */ - public native boolean setLanguage(String language); - /** - Changes the list of prefed languages for the locale. The first valid - language in the list will be used, or the default (en_US) language - will be used if non of the specified languages were available. - @param languages The list of language codes. - @return True if one of the specified languages were used. - - @short Changes the list of prefed languages for the locale. - */ - public native boolean setLanguage(String[] languages); - /** - Changes the current country. The current country will be left - unchanged if failed. It will force a reload of the country specific - configuration. - @param country The ISO 3166 country code. - @return True on success. - - @short Changes the current country. - */ - public native boolean setCountry(String country); - /** - Returns what a decimal point should look like ("." or "," etc.) - according to the current locale or user settings. - @return The decimal symbol used by locale. - - @short Returns what a decimal point should look like (". - */ - public native String decimalSymbol(); - /** - Returns what the thousands separator should look - like ("," or "." etc.) - according to the current locale or user settings. - @return The thousands separator used by locale. - - @short Returns what the thousands separator should look like ("," or ". - */ - public native String thousandsSeparator(); - /** - Returns what the symbol denoting currency in the current locale - as as defined by user settings should look like. - @return The default currency symbol used by locale. - - @short Returns what the symbol denoting currency in the current locale as as defined by user settings should look like. - */ - public native String currencySymbol(); - /** - Returns what a decimal point should look like ("." or "," etc.) - for monetary values, according to the current locale or user - settings. - @return The monetary decimal symbol used by locale. - - @short Returns what a decimal point should look like (". - */ - public native String monetaryDecimalSymbol(); - /** - Returns what a thousands separator for monetary values should - look like ("," or " " etc.) according to the current locale or - user settings. - @return The monetary thousands separator used by locale. - - @short Returns what a thousands separator for monetary values should look like ("," or " " etc. - */ - public native String monetaryThousandsSeparator(); - /** - Returns what a positive sign should look like ("+", " ", etc.) - according to the current locale or user settings. - @return The positive sign used by locale. - - @short Returns what a positive sign should look like ("+", " ", etc. - */ - public native String positiveSign(); - /** - Returns what a negative sign should look like ("-", etc.) - according to the current locale or user settings. - @return The negative sign used by locale. - - @short Returns what a negative sign should look like ("-", etc. - */ - public native String negativeSign(); - /** - The number of fractional digits to include in numeric/monetary - values (usually 2). - @return Default number of fractional digits used by locale. - - @short The number of fractional digits to include in numeric/monetary values (usually 2). - */ - public native int fracDigits(); - /** - If and only if the currency symbol precedes a positive value, - this will be true. - @return Where to print the currency symbol for positive numbers. - - @short If and only if the currency symbol precedes a positive value, this will be true. - */ - public native boolean positivePrefixCurrencySymbol(); - /** - If and only if the currency symbol precedes a negative value, - this will be true. - @return True if the currency symbol precedes negative numbers. - - @short If and only if the currency symbol precedes a negative value, this will be true. - */ - public native boolean negativePrefixCurrencySymbol(); - /** - Returns the position of a positive sign in relation to a - monetary value. - @return Where/how to print the positive sign. - - @short Returns the position of a positive sign in relation to a monetary value. - @see SignPosition - */ - public native int positiveMonetarySignPosition(); - /** - Denotes where to place a negative sign in relation to a - monetary value. - @return Where/how to print the negative sign. - - @short Denotes where to place a negative sign in relation to a monetary value. - @see SignPosition - */ - public native int negativeMonetarySignPosition(); - /** - Given a double, converts that to a numeric string containing - the localized monetary equivalent. - e.g. given 123456, return "$ 123,456.00". - @param num The number we want to format - @param currency The currency symbol you want. - @param digits Number of fractional digits, or -1 for the default - value - @return The number of money as a localized string - - @short Given a double, converts that to a numeric string containing the localized monetary equivalent. - @see #fracDigits - */ - public native String formatMoney(double num, String currency, int digits); - public native String formatMoney(double num, String currency); - public native String formatMoney(double num); - /** - Given a double, converts that to a numeric string containing - the localized numeric equivalent. - e.g. given 123456.78F, return "123,456.78" (for some European country). - If precision isn't specified, 2 is used. - This function is a wrapper that is provided for convenience. - @param num The number to convert - @param precision Number of fractional digits used. - @return The number as a localized string - - @short Given a double, converts that to a numeric string containing the localized numeric equivalent. - @see #formatNumber(const - @see #boolean - @see #int) - */ - public native String formatNumber(double num, int precision); - public native String formatNumber(double num); - /** - Given a string representing a number, converts that to a numeric - string containing the localized numeric equivalent. - e.g. given 123456.78F, return "123,456.78" (for some European country). - @param numStr The number to convert - @param round Round fractional digits. - @param precision Number of fractional digits used. - @return The number as a localized string - - @short Given a string representing a number, converts that to a numeric string containing the localized numeric equivalent. - */ - public native String formatNumber(String numStr, boolean round, int precision); - /** - Given an integer, converts that to a numeric string containing - the localized numeric equivalent. - e.g. given 123456L, return "123,456" (for some European country). - @param num The number to convert - @return The number as a localized string - - @short Given an integer, converts that to a numeric string containing the localized numeric equivalent. - */ - public native String formatLong(long num); - /** - Use this to determine whether nouns are declined in - locale's language. This property should remain - read-only (no setter function) - @return If nouns are declined - - @short Use this to determine whether nouns are declined in locale's language. - */ - public native boolean nounDeclension(); - /** - Returns a string formatted to the current locale's conventions - regarding dates. - @param pDate The date to be formated. - @param shortFormat True for non text dates. - @return The date as a string - - @short Returns a string formatted to the current locale's conventions regarding dates. - */ - public native String formatDate(Calendar pDate, boolean shortFormat); - public native String formatDate(Calendar pDate); - /** - Use this to determine whether in dates a possessive form of month - name is preferred ("of January" rather than "January") - @return If possessive form should be used - - @short Use this to determine whether in dates a possessive form of month name is preferred ("of January" rather than "January") - */ - public native boolean dateMonthNamePossessive(); - /** - Returns a string formatted to the current locale's conventions - regarding times. - @param pTime The time to be formated. - @param includeSecs if true, seconds are included in the output, - otherwise only hours and minutes are formatted. - @param isDuration if true, the given time is a duration, not a clock time. - This means "am/pm" shouldn't be displayed. - @return The time as a string - - @short Returns a string formatted to the current locale's conventions regarding times. - */ - public native String formatTime(Date pTime, boolean includeSecs, boolean isDuration); - /** - Returns a string formatted to the current locale's conventions - regarding times. - @param pTime The time to be formated. - @param includeSecs if true, seconds are included in the output, - otherwise only hours and minutes are formatted. - @return The time as a string - - @short Returns a string formatted to the current locale's conventions regarding times. - */ - public native String formatTime(Date pTime, boolean includeSecs); - public native String formatTime(Date pTime); - /** - Use this to determine if the user wants a 12 hour clock. - @return If the user wants 12h clock - - @short Use this to determine if the user wants a 12 hour clock. - */ - public native boolean use12Clock(); - /** - Use this to determine which day is the first day of the week. - @return an integer (Monday=1..Sunday=7) - - @short Use this to determine which day is the first day of the week. - */ - public native int weekStartDay(); - /** - Returns a pointer to the calendar system object. - @return the current calendar system instance - - @short Returns a pointer to the calendar system object. - */ - public native KCalendarSystem calendar(); - /** - Returns the name of the calendar system that is currently being - used by the system. - @return the name of the calendar system - - @short Returns the name of the calendar system that is currently being used by the system. - */ - public native String calendarType(); - /** - Changes the current calendar system to the calendar specified. - Currently "gregorian" and "hijri" are supported. If the calendar - system specified is not found, gregorian will be used. - @param calendarType the name of the calendar type - @short Changes the current calendar system to the calendar specified. - */ - public native void setCalendar(String calendarType); - /** - Returns a string formated to the current locale's conventions - regarding both date and time. - @param pDateTime The date and time to be formated. - @param shortFormat using the short date format. - @param includeSecs using the short date format. - @return The date and time as a string - - @short Returns a string formated to the current locale's conventions regarding both date and time. - */ - public native String formatDateTime(Calendar pDateTime, boolean shortFormat, boolean includeSecs); - public native String formatDateTime(Calendar pDateTime, boolean shortFormat); - public native String formatDateTime(Calendar pDateTime); - /** - Converts a localized monetary string to a double. - @param numStr the string we want to convert. - @param ok the booleanean that is set to false if it's not a number. - If ok is 0, it will be ignored - @return The string converted to a double - - @short Converts a localized monetary string to a double. - */ - public native double readMoney(String numStr, boolean[] ok); - public native double readMoney(String numStr); - /** - Converts a localized numeric string to a double. - @param numStr the string we want to convert. - @param ok the booleanean that is set to false if it's not a number. - If ok is 0, it will be ignored - @return The string converted to a double - - @short Converts a localized numeric string to a double. - */ - public native double readNumber(String numStr, boolean[] ok); - public native double readNumber(String numStr); - /** - Converts a localized date string to a Calendar. - The boolean pointed by ok will be invalid if the date entered was not valid. - @param str the string we want to convert. - @param ok the booleanean that is set to false if it's not a valid date. - If ok is 0, it will be ignored - @return The string converted to a TQDate - - @short Converts a localized date string to a TQDate. - */ - public native Calendar readDate(String str, boolean[] ok); - public native Calendar readDate(String str); - /** - Converts a localized date string to a Calendar, using the specified format. - You will usually not want to use this method. - @short Converts a localized date string to a TQDate, using the specified format. - */ - public native Calendar readDate(String intstr, String fmt, boolean[] ok); - public native Calendar readDate(String intstr, String fmt); - /** - Converts a localized date string to a Calendar. - This method is stricter than readDate(str,&ok): it will either accept - a date in full format or a date in short format, depending on flags. - @param str the string we want to convert. - @param flags whether the date string is to be in full format or in short format. - @param ok the booleanean that is set to false if it's not a valid date. - If ok is 0, it will be ignored - @return The string converted to a TQDate - - @short Converts a localized date string to a TQDate. - */ - public native Calendar readDate(String str, int flags, boolean[] ok); - public native Calendar readDate(String str, int flags); - /** - Converts a localized time string to a Date - This method will try to parse it with seconds, then without seconds. - The boolean pointed to by ok will be set to false if the time entered was - not valid. - @param str the string we want to convert. - @param ok the booleanean that is set to false if it's not a valid time. - If ok is 0, it will be ignored - @return The string converted to a TQTime - - @short Converts a localized time string to a TQTime. - */ - public native Date readTime(String str, boolean[] ok); - public native Date readTime(String str); - /** - Converts a localized time string to a Date - This method is stricter than readTime(str,&ok): it will either accept - a time with seconds or a time without seconds. - Use this method when the format is known by the application. - @param str the string we want to convert. - @param flags whether the time string is expected to contain seconds or not. - @param ok the booleanean that is set to false if it's not a valid time. - If ok is 0, it will be ignored - @return The string converted to a TQTime - - @short Converts a localized time string to a TQTime. - */ - public native Date readTime(String str, int flags, boolean[] ok); - public native Date readTime(String str, int flags); - /** - Returns the language used by this object. The domain AND the - library translation must be available in this language. - defaultLanguage() is returned by default, if no other available. - @return The currently used language. - - @short Returns the language used by this object. - */ - public native String language(); - /** - Returns the country code of the country where the user lives. - defaultCountry() is returned by default, if no other available. - @return The country code for the user. - - @short Returns the country code of the country where the user lives. - */ - public native String country(); - /** - Returns the preferred languages as ISO 639-1 codes. This means - that information about country is removed. If the internal language - code might be represented by more than one 639-1 code, they will all be - listed (but only once). - If the selected languages are "nn, nb, pt_BR", you will get: - "nn, nb, pt". - @return List of language codes - - @short Returns the preferred languages as ISO 639-1 codes. - @see #languageList - */ - public native ArrayList languagesTwoAlpha(); - /** - Returns the languages selected by user. The codes returned here is the - internal language codes. - @return List of language codes - - @short Returns the languages selected by user. - @see #languagesTwoAlpha - */ - public native ArrayList languageList(); - /** - Returns the user's preferred encoding. - @return The name of the preferred encoding - - @short Returns the user's preferred encoding. - @see #codecForEncoding - @see #encodingMib - */ - public native String encoding(); - /** - Returns the user's preferred encoding. - @return The Mib of the preferred encoding - - @short Returns the user's preferred encoding. - @see #encoding - @see #codecForEncoding - */ - public native int encodingMib(); - /** - Returns the user's preferred encoding. Should never be NULL. - @return The codec for the preferred encoding - - @short Returns the user's preferred encoding. - @see #encoding - @see #encodingMib - */ - public native TQTextCodec codecForEncoding(); - /** - Returns the file encoding. - @return The Mib of the file encoding - - @short Returns the file encoding. - @see org.kde.qt.TQFile#encodeName - @see org.kde.qt.TQFile#decodeName - */ - public native int fileEncodingMib(); - /** - Changes the current date format. - The format of the date is a string which contains variables that will - be replaced: - -
  • - %Y with the century (e.g. "19" for "1984") -
  • - -
  • - %y with the lower 2 digits of the year (e.g. "84" for "1984") -
  • - -
  • - %n with the month (January="1", December="12") -
  • - -
  • - %m with the month with two digits (January="01", December="12") -
  • - -
  • - %e with the day of the month (e.g. "1" on the first of march) -
  • - -
  • - %d with the day of the month with two digits(e.g. "01" on the first of march) -
  • - -
  • - %b with the short form of the month (e.g. "Jan" for January) -
  • - -
  • - %B with the long form of the month (e.g. "January") -
  • - -
  • - %a with the short form of the weekday (e.g. "Wed" for Wednesday) -
  • - -
  • - %A with the long form of the weekday (e.g. "Wednesday" for Wednesday) - Everything else in the format string will be taken as is. - For example, March 20th 1989 with the format "%y:%m:%d" results - in "89:03:20". -
  • - @param format The new date format - @short Changes the current date format. - */ - public native void setDateFormat(String format); - /** - Changes the current short date format. - The format of the date is a string which contains variables that will - be replaced: - -
  • - %Y with the century (e.g. "19" for "1984") -
  • - -
  • - %y with the lower 2 digits of the year (e.g. "84" for "1984") -
  • - -
  • - %n with the month (January="1", December="12") -
  • - -
  • - %m with the month with two digits (January="01", December="12") -
  • - -
  • - %e with the day of the month (e.g. "1" on the first of march) -
  • - -
  • - %d with the day of the month with two digits(e.g. "01" on the first of march) -
  • - -
  • - %b with the short form of the month (e.g. "Jan" for January) -
  • - -
  • - %B with the long form of the month (e.g. "January") -
  • - -
  • - %a with the short form of the weekday (e.g. "Wed" for Wednesday) -
  • - -
  • - %A with the long form of the weekday (e.g. "Wednesday" for Wednesday) - Everything else in the format string will be taken as is. - For example, March 20th 1989 with the format "%y:%m:%d" results - in "89:03:20". -
  • - @param format The new short date format - @short Changes the current short date format. - */ - public native void setDateFormatShort(String format); - /** - Changes the form of month name used in dates. - @param possessive True if possessive forms should be used - @short Changes the form of month name used in dates. - */ - public native void setDateMonthNamePossessive(boolean possessive); - /** - Changes the current time format. - The format of the time is string a which contains variables that will - be replaced: - -
  • - %H with the hour in 24h format and 2 digits (e.g. 5pm is "17", 5am is "05") -
  • - -
  • - %k with the hour in 24h format and one digits (e.g. 5pm is "17", 5am is "5") -
  • - -
  • - %I with the hour in 12h format and 2 digits (e.g. 5pm is "05", 5am is "05") -
  • - -
  • - %l with the hour in 12h format and one digits (e.g. 5pm is "5", 5am is "5") -
  • - -
  • - %M with the minute with 2 digits (e.g. the minute of 07:02:09 is "02") -
  • - -
  • - %S with the seconds with 2 digits (e.g. the minute of 07:02:09 is "09") -
  • - -
  • - %p with pm or am (e.g. 17.00 is "pm", 05.00 is "am") - Everything else in the format string will be taken as is. - For example, 5.23pm with the format "%H:%M" results - in "17:23". -
  • - @param format The new time format - @short Changes the current time format. - */ - public native void setTimeFormat(String format); - /** - Changes how KLocale defines the first day in week. - @param day first day of the week (Monday=1..Sunday=7) as integer - @short Changes how KLocale defines the first day in week. - */ - public native void setWeekStartDay(int day); - /** - Returns the currently selected date format. - @return Current date format. - - @short Returns the currently selected date format. - @see #setDateFormat - */ - public native String dateFormat(); - /** - Returns the currently selected short date format. - @return Current short date format. - - @short Returns the currently selected short date format. - @see #setDateFormatShort - */ - public native String dateFormatShort(); - /** - Returns the currently selected time format. - @return Current time format. - - @short Returns the currently selected time format. - @see #setTimeFormat - */ - public native String timeFormat(); - /** - Changes the symbol used to identify the decimal pointer. - @param symbol The new decimal symbol. - @short Changes the symbol used to identify the decimal pointer. - */ - public native void setDecimalSymbol(String symbol); - /** - Changes the separator used to group digits when formating numbers. - @param separator The new thousands separator. - @short Changes the separator used to group digits when formating numbers. - */ - public native void setThousandsSeparator(String separator); - /** - Changes the sign used to identify a positive number. Normally this is - left blank. - @param sign Sign used for positive numbers. - @short Changes the sign used to identify a positive number. - */ - public native void setPositiveSign(String sign); - /** - Changes the sign used to identify a negative number. - @param sign Sign used for negative numbers. - @short Changes the sign used to identify a negative number. - */ - public native void setNegativeSign(String sign); - /** - Changes the sign position used for positive monetary values. - @param signpos The new sign position - @short Changes the sign position used for positive monetary values. - */ - public native void setPositiveMonetarySignPosition(int signpos); - /** - Changes the sign position used for negative monetary values. - @param signpos The new sign position - @short Changes the sign position used for negative monetary values. - */ - public native void setNegativeMonetarySignPosition(int signpos); - /** - Changes the position where the currency symbol should be printed for - positive monetary values. - @param prefix True if the currency symbol should be prefixed instead of - postfixed - @short Changes the position where the currency symbol should be printed for positive monetary values. - */ - public native void setPositivePrefixCurrencySymbol(boolean prefix); - /** - Changes the position where the currency symbol should be printed for - negative monetary values. - @param prefix True if the currency symbol should be prefixed instead of - postfixed - @short Changes the position where the currency symbol should be printed for negative monetary values. - */ - public native void setNegativePrefixCurrencySymbol(boolean prefix); - /** - Changes the number of digits used when formating numbers. - @param digits The default number of digits to use. - @short Changes the number of digits used when formating numbers. - */ - public native void setFracDigits(int digits); - /** - Changes the separator used to group digits when formating monetary values. - @param separator The new thousands separator. - @short Changes the separator used to group digits when formating monetary values. - */ - public native void setMonetaryThousandsSeparator(String separator); - /** - Changes the symbol used to identify the decimal pointer for monetary - values. - @param symbol The new decimal symbol. - @short Changes the symbol used to identify the decimal pointer for monetary values. - */ - public native void setMonetaryDecimalSymbol(String symbol); - /** - Changes the current currency symbol. - @param symbol The new currency symbol - @short Changes the current currency symbol. - */ - public native void setCurrencySymbol(String symbol); - /** - Returns the preferred page size for printing. - @return The preferred page size, cast it to TQPrinter.PageSize - - @short Returns the preferred page size for printing. - */ - public native int pageSize(); - /** - Changes the preferred page size when printing. - @param paperFormat the new preferred page size in the format TQPrinter.PageSize - @short Changes the preferred page size when printing. - */ - public native void setPageSize(int paperFormat); - /** - Returns which measuring system we use. - @return The preferred measuring system - - @short Returns which measuring system we use. - */ - public native int measureSystem(); - /** - Changes the preferred measuring system. - @return value The preferred measuring system - - @short Changes the preferred measuring system. - */ - public native void setMeasureSystem(int value); - /** - Adds another catalog to search for translation lookup. - This function is useful for extern libraries and/or code, - that provide there own messages. - If the catalog does not exist for the chosen language, - it will be ignored and en_US will be used. - @param catalog The catalog to add. - @short Adds another catalog to search for translation lookup. - */ - public native void insertCatalogue(String catalog); - /** - Removes a catalog for translation lookup. - @param catalog The catalog to remove. - @short Removes a catalog for translation lookup. - @see #insertCatalogue - */ - public native void removeCatalogue(String catalog); - /** - Sets the active catalog for translation lookup. - @param catalog The catalog to activate. - @short Sets the active catalog for translation lookup. - */ - public native void setActiveCatalogue(String catalog); - /** - Translates a message as a TQTranslator is supposed to. - The parameters are similar to i18n(), but the result - value has other semantics (it can be null) - @short Translates a message as a TQTranslator is supposed to. - */ - public native String translateQt(String context, String sourceText, String message); - /** - Returns list of all known ISO 639-1 codes. - @return a list of all language codes - - @short Returns list of all known ISO 639-1 codes. - */ - public native ArrayList allLanguagesTwoAlpha(); - /** - Convert a ISO 639-1 code to a human readable form. - @param code the language ISO 639-1 code - @return the human readable form - - @short Convert a ISO 639-1 code to a human readable form. - */ - public native String twoAlphaToLanguageName(String code); - /** - Returns list of all known country codes. - @return a list of all country codes - - @short Returns list of all known country codes. - */ - public native ArrayList allCountriesTwoAlpha(); - /** - Convert a country code to a human readable form. - @param code the country code - @return the human readable form of the country name - - @short Convert a country code to a human readable form. - */ - public native String twoAlphaToCountryName(String code); - /** - Returns the parts of the parameter str understood as language setting - the format is language_COUNTRY.charset - @param str The string to split. - @param language This will be set to the language part of the string. - @param country This will be set to the country part of the string. - @param charset This will be set to the charset part of the string. - @short Returns the parts of the parameter str understood as language setting the format is language_COUNTRY. - */ - public static native void splitLocale(String str, StringBuffer language, StringBuffer country, StringBuffer charset); - /** - Use this as main catalog for all KLocales, if not the appname - will be used. This function is best to be the very first instruction - in your program's main function as it only has an effect before the - first KLocale object is created. - @param catalog Catalogue to override all other main catalogues. - @short Use this as main catalog for all KLocales, if not the appname will be used. - */ - public static native void setMainCatalogue(String catalog); - /** - Finds localized resource in resourceDir( rtype ) + \ + fname. - @param fname relative path to find - @param rtype resource type to use - @short Finds localized resource in resourceDir( rtype ) + \ + fname. - */ - public static native String langLookup(String fname, String rtype); - public static native String langLookup(String fname); - /** - Returns the name of the internal language. - @return Name of the default language - - @short Returns the name of the internal language. - */ - public static native String defaultLanguage(); - /** - Returns the name of the default country. - @return Name of the default country - - @short Returns the name of the default country. - */ - public static native String defaultCountry(); - /** - @short - */ - public static native String _initLanguage(TDEConfigBase config); - /** - pointer. - @short - */ - protected static native void initInstance(); - /** 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(); -} diff --git a/kdejava/koala/org/kde/koala/Makefile.am b/kdejava/koala/org/kde/koala/Makefile.am index 5c9f6e11..26351818 100644 --- a/kdejava/koala/org/kde/koala/Makefile.am +++ b/kdejava/koala/org/kde/koala/Makefile.am @@ -1,7 +1,7 @@ ####### tdevelop will overwrite this part!!! (begin)########## -EXTRA_DIST = TDEGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java KAboutApplication.java KAboutContainer.java TDEAboutData.java KAboutDialog.java KAboutKDE.java KAboutPerson.java KAboutWidget.java KAccel.java KAction.java KActionCollection.java KActionMenu.java KActionSeparator.java KAnimWidget.java TDEApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java TDECModule.java KCharSelect.java KCharSelectTable.java KCharsets.java TDECmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java KCompletion.java KCompletionBase.java KCompletionBaseInterface.java TDEConfig.java TDEConfigBackEnd.java TDEConfigBase.java TDEConfigGroupSaver.java TDEConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java KFontAction.java KFontChooser.java KFontDialog.java KFontSizeAction.java TDEGlobalAccel.java TDEGlobalSettings.java KGradientSelector.java TDEHTMLPart.java TDEHTMLSettings.java TDEHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java KIconButton.java KIconCanvas.java KIconDialog.java KIconEffect.java KIconLoader.java KIconView.java KImageEffect.java KImageIO.java TDEInstance.java TDEInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java KListBox.java KListView.java KLocale.java KMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java KPopupFrame.java KPopupMenu.java KPopupTitle.java KProcIO.java TDEProcess.java TDEProcessController.java TDEProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java KRadioAction.java KRandomSequence.java KRecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java KSelectAction.java KSelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java TDEShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java TDEStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java KStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java KToggleAction.java KToolBar.java KToolBarButton.java KToolBarRadioGroup.java KToolBarSeparator.java KTrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java KAboutContributor.java KAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java KCompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java KFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java KToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java KAboutContainerSignals.java KAboutContributorSignals.java KAboutDialogSignals.java KAboutWidgetSignals.java KAccelSignals.java KActionCollectionSignals.java KActionSignals.java KAnimWidgetSignals.java TDEApplicationSignals.java TDECModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java KCompletionBoxSignals.java KCompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java KFontChooserSignals.java KFontDialogSignals.java KFontSizeActionSignals.java TDEHTMLPartSignals.java TDEHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java KIconButtonSignals.java KIconCanvasSignals.java KIconDialogSignals.java KIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java KListBoxSignals.java KListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java KPopupMenuSignals.java KProcIOSignals.java TDEProcessSignals.java KProgressSignals.java KRecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java KSelectActionSignals.java KSelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java KToggleActionSignals.java KToolBarButtonSignals.java KToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java KListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java KIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java KShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java KAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java KListAction.java KRecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java KPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java KToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java TDESharedConfig.java KShellProcess.java KShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java KToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java TDEBufferedIO.java TDEBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java KAccelShortcutList.java KActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java TDECModuleInfo.java TDECModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java TDEConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java KFontRequester.java KFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java KAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java +EXTRA_DIST = TDEGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java KAboutApplication.java KAboutContainer.java TDEAboutData.java KAboutDialog.java KAboutKDE.java KAboutPerson.java KAboutWidget.java KAccel.java KAction.java KActionCollection.java KActionMenu.java KActionSeparator.java KAnimWidget.java TDEApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java TDECModule.java KCharSelect.java KCharSelectTable.java KCharsets.java TDECmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java KCompletion.java KCompletionBase.java KCompletionBaseInterface.java TDEConfig.java TDEConfigBackEnd.java TDEConfigBase.java TDEConfigGroupSaver.java TDEConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java KFontAction.java KFontChooser.java KFontDialog.java KFontSizeAction.java TDEGlobalAccel.java TDEGlobalSettings.java KGradientSelector.java TDEHTMLPart.java TDEHTMLSettings.java TDEHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java KIconButton.java KIconCanvas.java KIconDialog.java KIconEffect.java KIconLoader.java KIconView.java KImageEffect.java KImageIO.java TDEInstance.java TDEInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java KListBox.java KListView.java TDELocale.java KMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java KPopupFrame.java KPopupMenu.java KPopupTitle.java KProcIO.java TDEProcess.java TDEProcessController.java TDEProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java KRadioAction.java KRandomSequence.java KRecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java KSelectAction.java KSelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java TDEShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java TDEStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java KStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java KToggleAction.java KToolBar.java KToolBarButton.java KToolBarRadioGroup.java KToolBarSeparator.java KTrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java KAboutContributor.java KAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java KCompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java KFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java KToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java KAboutContainerSignals.java KAboutContributorSignals.java KAboutDialogSignals.java KAboutWidgetSignals.java KAccelSignals.java KActionCollectionSignals.java KActionSignals.java KAnimWidgetSignals.java TDEApplicationSignals.java TDECModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java KCompletionBoxSignals.java KCompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java KFontChooserSignals.java KFontDialogSignals.java KFontSizeActionSignals.java TDEHTMLPartSignals.java TDEHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java KIconButtonSignals.java KIconCanvasSignals.java KIconDialogSignals.java KIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java KListBoxSignals.java KListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java KPopupMenuSignals.java KProcIOSignals.java TDEProcessSignals.java KProgressSignals.java KRecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java KSelectActionSignals.java KSelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java KToggleActionSignals.java KToolBarButtonSignals.java KToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java KListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java KIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java KShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java KAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java KListAction.java KRecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java KPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java KToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java TDESharedConfig.java KShellProcess.java KShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java KToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java TDEBufferedIO.java TDEBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java KAccelShortcutList.java KActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java TDECModuleInfo.java TDECModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java TDEConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java KFontRequester.java KFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java KAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java ####### tdevelop will overwrite this part!!! (end)############ diff --git a/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java b/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java index b708f574..09b283a3 100644 --- a/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java +++ b/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java @@ -93,7 +93,7 @@ public class TDEConfigBackEnd implements QtSupport { Set the locale string that defines the current language. @param _localeString the identifier of the language @short Set the locale string that defines the current language. - @see KLocale + @see TDELocale */ public native void setLocaleString(String _localeString); /** diff --git a/kdejava/koala/org/kde/koala/TDEGlobal.java b/kdejava/koala/org/kde/koala/TDEGlobal.java index cd5a1e33..6d36cdcc 100644 --- a/kdejava/koala/org/kde/koala/TDEGlobal.java +++ b/kdejava/koala/org/kde/koala/TDEGlobal.java @@ -68,7 +68,7 @@ public class TDEGlobal implements QtSupport { @short Returns the global locale object. */ - public static native KLocale locale(); + public static native TDELocale locale(); /** The global charset manager. @return the global charset manager diff --git a/kdejava/koala/org/kde/koala/TDELocale.java b/kdejava/koala/org/kde/koala/TDELocale.java new file mode 100644 index 00000000..7ec079f5 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDELocale.java @@ -0,0 +1,993 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import java.util.Calendar; +import java.util.ArrayList; +import org.kde.qt.TQTextCodec; +import java.util.Date; + +/** + + TDELocale provides support for country specific stuff like + the national language. + TDELocale supports translating, as well as specifying the format + for numbers, currency, time, and date. + @author Stephan Kulow , Preston Brown , + Hans Petter Bieker , Lukas Tinkl + + @short class for supporting locale settings and national language. + +*/ +public class TDELocale implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDELocale(Class dummy){} + + /** + Various positions for where to place the positive or negative + sign when they are related to a monetary value. + @short Various positions for where to place the positive or negative sign when they are related to a monetary value. + */ + public static final int ParensAround = 0; + public static final int BeforeQuantityMoney = 1; + public static final int AfterQuantityMoney = 2; + public static final int BeforeMoney = 3; + public static final int AfterMoney = 4; + + public static final int NormalFormat = 1; + public static final int ShortFormat = 2; + + public static final int WithSeconds = 0; + public static final int WithoutSeconds = 1; + + /** + The Metric system will give you information in mm, while the + Imperial system will give you information in inches. + @short The Metric system will give you information in mm, while the Imperial system will give you information in inches. + */ + public static final int Metric = 0; + public static final int Imperial = 1; + + /** + Constructs a TDELocale with the given catalog name. + The constructor looks for an entry Locale/Language in the + configuration file. + If no config file is specified, it will also look for languages + using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG), + as well as the global configuration file. If TDELocale is not able to use + any of the specified languages, the default language (en_US) will be + used. + If you specify a configuration file, it has to be valid until + the TDELocale object is destroyed. + @param catalog The name of the main language file + @param config The configuration file to use. + @short Constructs a TDELocale with the given catalog name. + */ + public TDELocale(String catalog, TDEConfig config) { + newTDELocale(catalog,config); + } + private native void newTDELocale(String catalog, TDEConfig config); + public TDELocale(String catalog) { + newTDELocale(catalog); + } + private native void newTDELocale(String catalog); + /** + Copy constructor. + @short Copy constructor. + */ + public TDELocale(TDELocale rhs) { + newTDELocale(rhs); + } + private native void newTDELocale(TDELocale rhs); + /** + Translates the string into the corresponding string in + the national language, if available. If not, returns + the string itself. + There is a KDE wide message file that contains the most + often used phrases, so we can avoid duplicating the + translation of these phrases. If a phrase is not found + in the catalog given to the constructor, it will search + in the system catalog. This makes it possible to override + some phrases for your needs. + The argument must be an UTF-8 encoded string (If you only use + characters that are in US-ASCII you're on the safe side. But + for e.g. german umlauts or french accents should be recoded to + UTF-8) + @param index The lookup text and default text, if not found. + @short Translates the string into the corresponding string in the national language, if available. + */ + public native String translate(String index); + /** + Translates the string into the corresponding string in the + national language, if available. + The real contents of the string is in the argument fallback, + but the meaning of it is coded into the argument index. + In some cases you'll need this function, when english is + too ambiguous to express it. + Most of the times the translators will tell you if it can't + be translated as it, but think of cases as "New", where the + translations differs depending on what is New. + Or simple cases as "Open", that can be used to express something + is open or it can be used to express that you want something to + open... There are tons of such examples. + If translate("Open") is not enough to translate it well, use + translate("To Open", "Open") or translate("Is Open", "Open"). + The english user will see "Open" in both cases, but the translated + version may vary. Of course you can also use i18n() + @param comment the comment. The lookup text is made out of comment + fallback + @param fallback the default text, if not found + @return translation + + @short Translates the string into the corresponding string in the national language, if available. + */ + public native String translate(String comment, String fallback); + /** + Used to get the correct, translated singular or plural of a + word. + @param singular the singular form of the word, for example "file". + @param plural the plural form of the word. Must contain a "%n" that will + be replaced by the number n, for example "%n files" + @param n the number + @return the correct singular or plural for the selected language, + depending on n + + @short Used to get the correct, translated singular or plural of a word. + */ + public native String translate(String singular, String plural, long n); + /** + Changes the current encoding. + @param mibEnum The mib of the preferred codec + @return True on success. + + @short Changes the current encoding. + */ + public native boolean setEncoding(int mibEnum); + /** + Changes the current language. The current language will be left + unchanged if failed. It will force a reload of the country specific + configuration as well. + @param language The language code. + @return True on success. + + @short Changes the current language. + */ + public native boolean setLanguage(String language); + /** + Changes the list of prefed languages for the locale. The first valid + language in the list will be used, or the default (en_US) language + will be used if non of the specified languages were available. + @param languages The list of language codes. + @return True if one of the specified languages were used. + + @short Changes the list of prefed languages for the locale. + */ + public native boolean setLanguage(String[] languages); + /** + Changes the current country. The current country will be left + unchanged if failed. It will force a reload of the country specific + configuration. + @param country The ISO 3166 country code. + @return True on success. + + @short Changes the current country. + */ + public native boolean setCountry(String country); + /** + Returns what a decimal point should look like ("." or "," etc.) + according to the current locale or user settings. + @return The decimal symbol used by locale. + + @short Returns what a decimal point should look like (". + */ + public native String decimalSymbol(); + /** + Returns what the thousands separator should look + like ("," or "." etc.) + according to the current locale or user settings. + @return The thousands separator used by locale. + + @short Returns what the thousands separator should look like ("," or ". + */ + public native String thousandsSeparator(); + /** + Returns what the symbol denoting currency in the current locale + as as defined by user settings should look like. + @return The default currency symbol used by locale. + + @short Returns what the symbol denoting currency in the current locale as as defined by user settings should look like. + */ + public native String currencySymbol(); + /** + Returns what a decimal point should look like ("." or "," etc.) + for monetary values, according to the current locale or user + settings. + @return The monetary decimal symbol used by locale. + + @short Returns what a decimal point should look like (". + */ + public native String monetaryDecimalSymbol(); + /** + Returns what a thousands separator for monetary values should + look like ("," or " " etc.) according to the current locale or + user settings. + @return The monetary thousands separator used by locale. + + @short Returns what a thousands separator for monetary values should look like ("," or " " etc. + */ + public native String monetaryThousandsSeparator(); + /** + Returns what a positive sign should look like ("+", " ", etc.) + according to the current locale or user settings. + @return The positive sign used by locale. + + @short Returns what a positive sign should look like ("+", " ", etc. + */ + public native String positiveSign(); + /** + Returns what a negative sign should look like ("-", etc.) + according to the current locale or user settings. + @return The negative sign used by locale. + + @short Returns what a negative sign should look like ("-", etc. + */ + public native String negativeSign(); + /** + The number of fractional digits to include in numeric/monetary + values (usually 2). + @return Default number of fractional digits used by locale. + + @short The number of fractional digits to include in numeric/monetary values (usually 2). + */ + public native int fracDigits(); + /** + If and only if the currency symbol precedes a positive value, + this will be true. + @return Where to print the currency symbol for positive numbers. + + @short If and only if the currency symbol precedes a positive value, this will be true. + */ + public native boolean positivePrefixCurrencySymbol(); + /** + If and only if the currency symbol precedes a negative value, + this will be true. + @return True if the currency symbol precedes negative numbers. + + @short If and only if the currency symbol precedes a negative value, this will be true. + */ + public native boolean negativePrefixCurrencySymbol(); + /** + Returns the position of a positive sign in relation to a + monetary value. + @return Where/how to print the positive sign. + + @short Returns the position of a positive sign in relation to a monetary value. + @see SignPosition + */ + public native int positiveMonetarySignPosition(); + /** + Denotes where to place a negative sign in relation to a + monetary value. + @return Where/how to print the negative sign. + + @short Denotes where to place a negative sign in relation to a monetary value. + @see SignPosition + */ + public native int negativeMonetarySignPosition(); + /** + Given a double, converts that to a numeric string containing + the localized monetary equivalent. + e.g. given 123456, return "$ 123,456.00". + @param num The number we want to format + @param currency The currency symbol you want. + @param digits Number of fractional digits, or -1 for the default + value + @return The number of money as a localized string + + @short Given a double, converts that to a numeric string containing the localized monetary equivalent. + @see #fracDigits + */ + public native String formatMoney(double num, String currency, int digits); + public native String formatMoney(double num, String currency); + public native String formatMoney(double num); + /** + Given a double, converts that to a numeric string containing + the localized numeric equivalent. + e.g. given 123456.78F, return "123,456.78" (for some European country). + If precision isn't specified, 2 is used. + This function is a wrapper that is provided for convenience. + @param num The number to convert + @param precision Number of fractional digits used. + @return The number as a localized string + + @short Given a double, converts that to a numeric string containing the localized numeric equivalent. + @see #formatNumber(const + @see #boolean + @see #int) + */ + public native String formatNumber(double num, int precision); + public native String formatNumber(double num); + /** + Given a string representing a number, converts that to a numeric + string containing the localized numeric equivalent. + e.g. given 123456.78F, return "123,456.78" (for some European country). + @param numStr The number to convert + @param round Round fractional digits. + @param precision Number of fractional digits used. + @return The number as a localized string + + @short Given a string representing a number, converts that to a numeric string containing the localized numeric equivalent. + */ + public native String formatNumber(String numStr, boolean round, int precision); + /** + Given an integer, converts that to a numeric string containing + the localized numeric equivalent. + e.g. given 123456L, return "123,456" (for some European country). + @param num The number to convert + @return The number as a localized string + + @short Given an integer, converts that to a numeric string containing the localized numeric equivalent. + */ + public native String formatLong(long num); + /** + Use this to determine whether nouns are declined in + locale's language. This property should remain + read-only (no setter function) + @return If nouns are declined + + @short Use this to determine whether nouns are declined in locale's language. + */ + public native boolean nounDeclension(); + /** + Returns a string formatted to the current locale's conventions + regarding dates. + @param pDate The date to be formated. + @param shortFormat True for non text dates. + @return The date as a string + + @short Returns a string formatted to the current locale's conventions regarding dates. + */ + public native String formatDate(Calendar pDate, boolean shortFormat); + public native String formatDate(Calendar pDate); + /** + Use this to determine whether in dates a possessive form of month + name is preferred ("of January" rather than "January") + @return If possessive form should be used + + @short Use this to determine whether in dates a possessive form of month name is preferred ("of January" rather than "January") + */ + public native boolean dateMonthNamePossessive(); + /** + Returns a string formatted to the current locale's conventions + regarding times. + @param pTime The time to be formated. + @param includeSecs if true, seconds are included in the output, + otherwise only hours and minutes are formatted. + @param isDuration if true, the given time is a duration, not a clock time. + This means "am/pm" shouldn't be displayed. + @return The time as a string + + @short Returns a string formatted to the current locale's conventions regarding times. + */ + public native String formatTime(Date pTime, boolean includeSecs, boolean isDuration); + /** + Returns a string formatted to the current locale's conventions + regarding times. + @param pTime The time to be formated. + @param includeSecs if true, seconds are included in the output, + otherwise only hours and minutes are formatted. + @return The time as a string + + @short Returns a string formatted to the current locale's conventions regarding times. + */ + public native String formatTime(Date pTime, boolean includeSecs); + public native String formatTime(Date pTime); + /** + Use this to determine if the user wants a 12 hour clock. + @return If the user wants 12h clock + + @short Use this to determine if the user wants a 12 hour clock. + */ + public native boolean use12Clock(); + /** + Use this to determine which day is the first day of the week. + @return an integer (Monday=1..Sunday=7) + + @short Use this to determine which day is the first day of the week. + */ + public native int weekStartDay(); + /** + Returns a pointer to the calendar system object. + @return the current calendar system instance + + @short Returns a pointer to the calendar system object. + */ + public native KCalendarSystem calendar(); + /** + Returns the name of the calendar system that is currently being + used by the system. + @return the name of the calendar system + + @short Returns the name of the calendar system that is currently being used by the system. + */ + public native String calendarType(); + /** + Changes the current calendar system to the calendar specified. + Currently "gregorian" and "hijri" are supported. If the calendar + system specified is not found, gregorian will be used. + @param calendarType the name of the calendar type + @short Changes the current calendar system to the calendar specified. + */ + public native void setCalendar(String calendarType); + /** + Returns a string formated to the current locale's conventions + regarding both date and time. + @param pDateTime The date and time to be formated. + @param shortFormat using the short date format. + @param includeSecs using the short date format. + @return The date and time as a string + + @short Returns a string formated to the current locale's conventions regarding both date and time. + */ + public native String formatDateTime(Calendar pDateTime, boolean shortFormat, boolean includeSecs); + public native String formatDateTime(Calendar pDateTime, boolean shortFormat); + public native String formatDateTime(Calendar pDateTime); + /** + Converts a localized monetary string to a double. + @param numStr the string we want to convert. + @param ok the booleanean that is set to false if it's not a number. + If ok is 0, it will be ignored + @return The string converted to a double + + @short Converts a localized monetary string to a double. + */ + public native double readMoney(String numStr, boolean[] ok); + public native double readMoney(String numStr); + /** + Converts a localized numeric string to a double. + @param numStr the string we want to convert. + @param ok the booleanean that is set to false if it's not a number. + If ok is 0, it will be ignored + @return The string converted to a double + + @short Converts a localized numeric string to a double. + */ + public native double readNumber(String numStr, boolean[] ok); + public native double readNumber(String numStr); + /** + Converts a localized date string to a Calendar. + The boolean pointed by ok will be invalid if the date entered was not valid. + @param str the string we want to convert. + @param ok the booleanean that is set to false if it's not a valid date. + If ok is 0, it will be ignored + @return The string converted to a TQDate + + @short Converts a localized date string to a TQDate. + */ + public native Calendar readDate(String str, boolean[] ok); + public native Calendar readDate(String str); + /** + Converts a localized date string to a Calendar, using the specified format. + You will usually not want to use this method. + @short Converts a localized date string to a TQDate, using the specified format. + */ + public native Calendar readDate(String intstr, String fmt, boolean[] ok); + public native Calendar readDate(String intstr, String fmt); + /** + Converts a localized date string to a Calendar. + This method is stricter than readDate(str,&ok): it will either accept + a date in full format or a date in short format, depending on flags. + @param str the string we want to convert. + @param flags whether the date string is to be in full format or in short format. + @param ok the booleanean that is set to false if it's not a valid date. + If ok is 0, it will be ignored + @return The string converted to a TQDate + + @short Converts a localized date string to a TQDate. + */ + public native Calendar readDate(String str, int flags, boolean[] ok); + public native Calendar readDate(String str, int flags); + /** + Converts a localized time string to a Date + This method will try to parse it with seconds, then without seconds. + The boolean pointed to by ok will be set to false if the time entered was + not valid. + @param str the string we want to convert. + @param ok the booleanean that is set to false if it's not a valid time. + If ok is 0, it will be ignored + @return The string converted to a TQTime + + @short Converts a localized time string to a TQTime. + */ + public native Date readTime(String str, boolean[] ok); + public native Date readTime(String str); + /** + Converts a localized time string to a Date + This method is stricter than readTime(str,&ok): it will either accept + a time with seconds or a time without seconds. + Use this method when the format is known by the application. + @param str the string we want to convert. + @param flags whether the time string is expected to contain seconds or not. + @param ok the booleanean that is set to false if it's not a valid time. + If ok is 0, it will be ignored + @return The string converted to a TQTime + + @short Converts a localized time string to a TQTime. + */ + public native Date readTime(String str, int flags, boolean[] ok); + public native Date readTime(String str, int flags); + /** + Returns the language used by this object. The domain AND the + library translation must be available in this language. + defaultLanguage() is returned by default, if no other available. + @return The currently used language. + + @short Returns the language used by this object. + */ + public native String language(); + /** + Returns the country code of the country where the user lives. + defaultCountry() is returned by default, if no other available. + @return The country code for the user. + + @short Returns the country code of the country where the user lives. + */ + public native String country(); + /** + Returns the preferred languages as ISO 639-1 codes. This means + that information about country is removed. If the internal language + code might be represented by more than one 639-1 code, they will all be + listed (but only once). + If the selected languages are "nn, nb, pt_BR", you will get: + "nn, nb, pt". + @return List of language codes + + @short Returns the preferred languages as ISO 639-1 codes. + @see #languageList + */ + public native ArrayList languagesTwoAlpha(); + /** + Returns the languages selected by user. The codes returned here is the + internal language codes. + @return List of language codes + + @short Returns the languages selected by user. + @see #languagesTwoAlpha + */ + public native ArrayList languageList(); + /** + Returns the user's preferred encoding. + @return The name of the preferred encoding + + @short Returns the user's preferred encoding. + @see #codecForEncoding + @see #encodingMib + */ + public native String encoding(); + /** + Returns the user's preferred encoding. + @return The Mib of the preferred encoding + + @short Returns the user's preferred encoding. + @see #encoding + @see #codecForEncoding + */ + public native int encodingMib(); + /** + Returns the user's preferred encoding. Should never be NULL. + @return The codec for the preferred encoding + + @short Returns the user's preferred encoding. + @see #encoding + @see #encodingMib + */ + public native TQTextCodec codecForEncoding(); + /** + Returns the file encoding. + @return The Mib of the file encoding + + @short Returns the file encoding. + @see org.kde.qt.TQFile#encodeName + @see org.kde.qt.TQFile#decodeName + */ + public native int fileEncodingMib(); + /** + Changes the current date format. + The format of the date is a string which contains variables that will + be replaced: + +
  • + %Y with the century (e.g. "19" for "1984") +
  • + +
  • + %y with the lower 2 digits of the year (e.g. "84" for "1984") +
  • + +
  • + %n with the month (January="1", December="12") +
  • + +
  • + %m with the month with two digits (January="01", December="12") +
  • + +
  • + %e with the day of the month (e.g. "1" on the first of march) +
  • + +
  • + %d with the day of the month with two digits(e.g. "01" on the first of march) +
  • + +
  • + %b with the short form of the month (e.g. "Jan" for January) +
  • + +
  • + %B with the long form of the month (e.g. "January") +
  • + +
  • + %a with the short form of the weekday (e.g. "Wed" for Wednesday) +
  • + +
  • + %A with the long form of the weekday (e.g. "Wednesday" for Wednesday) + Everything else in the format string will be taken as is. + For example, March 20th 1989 with the format "%y:%m:%d" results + in "89:03:20". +
  • + @param format The new date format + @short Changes the current date format. + */ + public native void setDateFormat(String format); + /** + Changes the current short date format. + The format of the date is a string which contains variables that will + be replaced: + +
  • + %Y with the century (e.g. "19" for "1984") +
  • + +
  • + %y with the lower 2 digits of the year (e.g. "84" for "1984") +
  • + +
  • + %n with the month (January="1", December="12") +
  • + +
  • + %m with the month with two digits (January="01", December="12") +
  • + +
  • + %e with the day of the month (e.g. "1" on the first of march) +
  • + +
  • + %d with the day of the month with two digits(e.g. "01" on the first of march) +
  • + +
  • + %b with the short form of the month (e.g. "Jan" for January) +
  • + +
  • + %B with the long form of the month (e.g. "January") +
  • + +
  • + %a with the short form of the weekday (e.g. "Wed" for Wednesday) +
  • + +
  • + %A with the long form of the weekday (e.g. "Wednesday" for Wednesday) + Everything else in the format string will be taken as is. + For example, March 20th 1989 with the format "%y:%m:%d" results + in "89:03:20". +
  • + @param format The new short date format + @short Changes the current short date format. + */ + public native void setDateFormatShort(String format); + /** + Changes the form of month name used in dates. + @param possessive True if possessive forms should be used + @short Changes the form of month name used in dates. + */ + public native void setDateMonthNamePossessive(boolean possessive); + /** + Changes the current time format. + The format of the time is string a which contains variables that will + be replaced: + +
  • + %H with the hour in 24h format and 2 digits (e.g. 5pm is "17", 5am is "05") +
  • + +
  • + %k with the hour in 24h format and one digits (e.g. 5pm is "17", 5am is "5") +
  • + +
  • + %I with the hour in 12h format and 2 digits (e.g. 5pm is "05", 5am is "05") +
  • + +
  • + %l with the hour in 12h format and one digits (e.g. 5pm is "5", 5am is "5") +
  • + +
  • + %M with the minute with 2 digits (e.g. the minute of 07:02:09 is "02") +
  • + +
  • + %S with the seconds with 2 digits (e.g. the minute of 07:02:09 is "09") +
  • + +
  • + %p with pm or am (e.g. 17.00 is "pm", 05.00 is "am") + Everything else in the format string will be taken as is. + For example, 5.23pm with the format "%H:%M" results + in "17:23". +
  • + @param format The new time format + @short Changes the current time format. + */ + public native void setTimeFormat(String format); + /** + Changes how TDELocale defines the first day in week. + @param day first day of the week (Monday=1..Sunday=7) as integer + @short Changes how TDELocale defines the first day in week. + */ + public native void setWeekStartDay(int day); + /** + Returns the currently selected date format. + @return Current date format. + + @short Returns the currently selected date format. + @see #setDateFormat + */ + public native String dateFormat(); + /** + Returns the currently selected short date format. + @return Current short date format. + + @short Returns the currently selected short date format. + @see #setDateFormatShort + */ + public native String dateFormatShort(); + /** + Returns the currently selected time format. + @return Current time format. + + @short Returns the currently selected time format. + @see #setTimeFormat + */ + public native String timeFormat(); + /** + Changes the symbol used to identify the decimal pointer. + @param symbol The new decimal symbol. + @short Changes the symbol used to identify the decimal pointer. + */ + public native void setDecimalSymbol(String symbol); + /** + Changes the separator used to group digits when formating numbers. + @param separator The new thousands separator. + @short Changes the separator used to group digits when formating numbers. + */ + public native void setThousandsSeparator(String separator); + /** + Changes the sign used to identify a positive number. Normally this is + left blank. + @param sign Sign used for positive numbers. + @short Changes the sign used to identify a positive number. + */ + public native void setPositiveSign(String sign); + /** + Changes the sign used to identify a negative number. + @param sign Sign used for negative numbers. + @short Changes the sign used to identify a negative number. + */ + public native void setNegativeSign(String sign); + /** + Changes the sign position used for positive monetary values. + @param signpos The new sign position + @short Changes the sign position used for positive monetary values. + */ + public native void setPositiveMonetarySignPosition(int signpos); + /** + Changes the sign position used for negative monetary values. + @param signpos The new sign position + @short Changes the sign position used for negative monetary values. + */ + public native void setNegativeMonetarySignPosition(int signpos); + /** + Changes the position where the currency symbol should be printed for + positive monetary values. + @param prefix True if the currency symbol should be prefixed instead of + postfixed + @short Changes the position where the currency symbol should be printed for positive monetary values. + */ + public native void setPositivePrefixCurrencySymbol(boolean prefix); + /** + Changes the position where the currency symbol should be printed for + negative monetary values. + @param prefix True if the currency symbol should be prefixed instead of + postfixed + @short Changes the position where the currency symbol should be printed for negative monetary values. + */ + public native void setNegativePrefixCurrencySymbol(boolean prefix); + /** + Changes the number of digits used when formating numbers. + @param digits The default number of digits to use. + @short Changes the number of digits used when formating numbers. + */ + public native void setFracDigits(int digits); + /** + Changes the separator used to group digits when formating monetary values. + @param separator The new thousands separator. + @short Changes the separator used to group digits when formating monetary values. + */ + public native void setMonetaryThousandsSeparator(String separator); + /** + Changes the symbol used to identify the decimal pointer for monetary + values. + @param symbol The new decimal symbol. + @short Changes the symbol used to identify the decimal pointer for monetary values. + */ + public native void setMonetaryDecimalSymbol(String symbol); + /** + Changes the current currency symbol. + @param symbol The new currency symbol + @short Changes the current currency symbol. + */ + public native void setCurrencySymbol(String symbol); + /** + Returns the preferred page size for printing. + @return The preferred page size, cast it to TQPrinter.PageSize + + @short Returns the preferred page size for printing. + */ + public native int pageSize(); + /** + Changes the preferred page size when printing. + @param paperFormat the new preferred page size in the format TQPrinter.PageSize + @short Changes the preferred page size when printing. + */ + public native void setPageSize(int paperFormat); + /** + Returns which measuring system we use. + @return The preferred measuring system + + @short Returns which measuring system we use. + */ + public native int measureSystem(); + /** + Changes the preferred measuring system. + @return value The preferred measuring system + + @short Changes the preferred measuring system. + */ + public native void setMeasureSystem(int value); + /** + Adds another catalog to search for translation lookup. + This function is useful for extern libraries and/or code, + that provide there own messages. + If the catalog does not exist for the chosen language, + it will be ignored and en_US will be used. + @param catalog The catalog to add. + @short Adds another catalog to search for translation lookup. + */ + public native void insertCatalogue(String catalog); + /** + Removes a catalog for translation lookup. + @param catalog The catalog to remove. + @short Removes a catalog for translation lookup. + @see #insertCatalogue + */ + public native void removeCatalogue(String catalog); + /** + Sets the active catalog for translation lookup. + @param catalog The catalog to activate. + @short Sets the active catalog for translation lookup. + */ + public native void setActiveCatalogue(String catalog); + /** + Translates a message as a TQTranslator is supposed to. + The parameters are similar to i18n(), but the result + value has other semantics (it can be null) + @short Translates a message as a TQTranslator is supposed to. + */ + public native String translateQt(String context, String sourceText, String message); + /** + Returns list of all known ISO 639-1 codes. + @return a list of all language codes + + @short Returns list of all known ISO 639-1 codes. + */ + public native ArrayList allLanguagesTwoAlpha(); + /** + Convert a ISO 639-1 code to a human readable form. + @param code the language ISO 639-1 code + @return the human readable form + + @short Convert a ISO 639-1 code to a human readable form. + */ + public native String twoAlphaToLanguageName(String code); + /** + Returns list of all known country codes. + @return a list of all country codes + + @short Returns list of all known country codes. + */ + public native ArrayList allCountriesTwoAlpha(); + /** + Convert a country code to a human readable form. + @param code the country code + @return the human readable form of the country name + + @short Convert a country code to a human readable form. + */ + public native String twoAlphaToCountryName(String code); + /** + Returns the parts of the parameter str understood as language setting + the format is language_COUNTRY.charset + @param str The string to split. + @param language This will be set to the language part of the string. + @param country This will be set to the country part of the string. + @param charset This will be set to the charset part of the string. + @short Returns the parts of the parameter str understood as language setting the format is language_COUNTRY. + */ + public static native void splitLocale(String str, StringBuffer language, StringBuffer country, StringBuffer charset); + /** + Use this as main catalog for all TDELocales, if not the appname + will be used. This function is best to be the very first instruction + in your program's main function as it only has an effect before the + first TDELocale object is created. + @param catalog Catalogue to override all other main catalogues. + @short Use this as main catalog for all TDELocales, if not the appname will be used. + */ + public static native void setMainCatalogue(String catalog); + /** + Finds localized resource in resourceDir( rtype ) + \ + fname. + @param fname relative path to find + @param rtype resource type to use + @short Finds localized resource in resourceDir( rtype ) + \ + fname. + */ + public static native String langLookup(String fname, String rtype); + public static native String langLookup(String fname); + /** + Returns the name of the internal language. + @return Name of the default language + + @short Returns the name of the internal language. + */ + public static native String defaultLanguage(); + /** + Returns the name of the default country. + @return Name of the default country + + @short Returns the name of the default country. + */ + public static native String defaultCountry(); + /** + @short + */ + public static native String _initLanguage(TDEConfigBase config); + /** + pointer. + @short + */ + protected static native void initInstance(); + /** 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(); +} diff --git a/kdejava/koala/org/kde/koala/TDEStandardDirs.java b/kdejava/koala/org/kde/koala/TDEStandardDirs.java index e74ba897..f664073f 100644 --- a/kdejava/koala/org/kde/koala/TDEStandardDirs.java +++ b/kdejava/koala/org/kde/koala/TDEStandardDirs.java @@ -74,7 +74,7 @@ import java.util.ArrayList;
  • - locale - Translation files for KLocale. + locale - Translation files for TDELocale.
  • -- cgit v1.2.3