Inheritance: Object, IDisposable
Esempio n. 1
0
 public virtual QDate ReadDate(string str, KLocale.ReadDateFlags flags, ref bool ok)
 {
     StackItem[] stack = new StackItem[4];
     #if DEBUG
     stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(str);
     #else
     stack[1].s_class = (IntPtr) GCHandle.Alloc(str);
     #endif
     stack[2].s_int = (int) flags;
     stack[3].s_bool = ok;
     interceptor.Invoke("readDate$$$", "readDate(const QString&, KLocale::ReadDateFlags, bool*) const", stack);
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[1].s_class);
     #else
     ((GCHandle) stack[1].s_class).Free();
     #endif
     ok = stack[3].s_bool;
     object returnValue = ((GCHandle) stack[0].s_class).Target;
     #if DEBUG
     DebugGCHandle.Free((GCHandle) stack[0].s_class);
     #else
     ((GCHandle) stack[0].s_class).Free();
     #endif
     return (QDate) returnValue;
 }
Esempio n. 2
0
 public virtual QDate ReadDate(string str, KLocale.ReadDateFlags flags)
 {
     return (QDate) interceptor.Invoke("readDate$$", "readDate(const QString&, KLocale::ReadDateFlags) const", typeof(QDate), typeof(string), str, typeof(KLocale.ReadDateFlags), flags);
 }
Esempio n. 3
0
 public virtual string FormatDate(QDate date, KLocale.DateFormat format)
 {
     return (string) interceptor.Invoke("formatDate#$", "formatDate(const QDate&, KLocale::DateFormat) const", typeof(string), typeof(QDate), date, typeof(KLocale.DateFormat), format);
 }
Esempio n. 4
0
 /// <remarks>
 ///  Constructor of abstract calendar class. This will be called by derived classes.
 /// <param> name="locale" locale to use for translations. The global locale is used if null.
 ///      </param></remarks>        <short>    Constructor of abstract calendar class.</short>
 public KCalendarSystem(KLocale locale)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KCalendarSystem#", "KCalendarSystem(const KLocale*)", typeof(void), typeof(KLocale), locale);
 }
Esempio n. 5
0
 /// <remarks>
 ///  Copy constructor.
 ///    </remarks>        <short>    Copy constructor.</short>
 public KLocale(KLocale rhs)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KLocale#", "KLocale(const KLocale&)", typeof(void), typeof(KLocale), rhs);
 }
Esempio n. 6
0
 /// <remarks>
 ///  Creates specific calendar type
 /// <param> name="calType" string identification of the specific calendar type
 ///  to be constructed
 /// </param><param> name="locale" locale to use for translations. The global locale is used if null.
 /// </param></remarks>        <return> a KCalendarSystem object
 ///      </return>
 ///         <short>    Creates specific calendar type </short>
 public static KCalendarSystem Create(string calType, KLocale locale)
 {
     return (KCalendarSystem) staticInterceptor.Invoke("create$#", "create(const QString&, const KLocale*)", typeof(KCalendarSystem), typeof(string), calType, typeof(KLocale), locale);
 }
Esempio n. 7
0
 /// <remarks>
 ///  Returns a string formatted to the current locale's conventions
 ///  regarding both date and time.
 /// <param> name="dateTime" the date and time to be formatted
 /// </param><param> name="format" category of date format to use
 /// </param><param> name="options" additional output options
 /// </param></remarks>        <return> The date and time as a string
 ///    </return>
 ///         <short>    Returns a string formatted to the current locale's conventions  regarding both date and time.</short>
 public string FormatDateTime(KDateTime dateTime, KLocale.DateFormat format, uint options)
 {
     return (string) interceptor.Invoke("formatDateTime#$$", "formatDateTime(const KDateTime&, KLocale::DateFormat, KLocale::DateTimeFormatOptions) const", typeof(string), typeof(KDateTime), dateTime, typeof(KLocale.DateFormat), format, typeof(uint), options);
 }
Esempio n. 8
0
 public string FormatDateTime(KDateTime dateTime, KLocale.DateFormat format)
 {
     return (string) interceptor.Invoke("formatDateTime#$", "formatDateTime(const KDateTime&, KLocale::DateFormat) const", typeof(string), typeof(KDateTime), dateTime, typeof(KLocale.DateFormat), format);
 }
Esempio n. 9
0
 /// <remarks>
 ///  Copies the catalogs of this objct to an other KLocale object.
 ///    </remarks>        <short>    Copies the catalogs of this objct to an other KLocale object.</short>
 public void CopyCatalogsTo(KLocale locale)
 {
     interceptor.Invoke("copyCatalogsTo#", "copyCatalogsTo(KLocale*)", typeof(void), typeof(KLocale), locale);
 }
Esempio n. 10
0
 /// <remarks>
 ///  Returns a string formatted to the current locale's conventions
 ///  regarding both date and time.
 /// <param> name="dateTime" the date and time to be formatted
 /// </param><param> name="format" category of date format to use
 /// </param><param> name="options" additional output options
 /// </param></remarks>        <return> The date and time as a string
 ///    </return>
 ///         <short>    Returns a string formatted to the current locale's conventions  regarding both date and time.</short>
 public string FormatDateTime(QDateTime dateTime, KLocale.DateFormat format, bool includeSecs)
 {
     return (string) interceptor.Invoke("formatDateTime#$$", "formatDateTime(const QDateTime&, KLocale::DateFormat, bool) const", typeof(string), typeof(QDateTime), dateTime, typeof(KLocale.DateFormat), format, typeof(bool), includeSecs);
 }
Esempio n. 11
0
 /// <remarks>
 ///  Changes the sign position used for positive monetary values.
 /// <param> name="signpos" The new sign position
 ///    </param></remarks>        <short>    Changes the sign position used for positive monetary values.</short>
 public void SetPositiveMonetarySignPosition(KLocale.SignPosition signpos)
 {
     interceptor.Invoke("setPositiveMonetarySignPosition$", "setPositiveMonetarySignPosition(KLocale::SignPosition)", typeof(void), typeof(KLocale.SignPosition), signpos);
 }
Esempio n. 12
0
 /// <remarks>
 ///  Changes the preferred measuring system.
 /// </remarks>        <return> value The preferred measuring system
 ///    </return>
 ///         <short>    Changes the preferred measuring system.</short>
 public void SetMeasureSystem(KLocale.MeasureSystem value)
 {
     interceptor.Invoke("setMeasureSystem$", "setMeasureSystem(KLocale::MeasureSystem)", typeof(void), typeof(KLocale.MeasureSystem), value);
 }
Esempio n. 13
0
 public QTime ReadTime(string str, KLocale.ReadTimeFlags flags)
 {
     return (QTime) interceptor.Invoke("readTime$$", "readTime(const QString&, KLocale::ReadTimeFlags) const", typeof(QTime), typeof(string), str, typeof(KLocale.ReadTimeFlags), flags);
 }
Esempio n. 14
0
 /// <remarks>
 ///  Sets the locale to display language names. By default, KGlobal.Locale() is used.
 /// <param> name="locale" locale to use
 ///    </param></remarks>        <short>    Sets the locale to display language names.</short>
 public void SetLocale(KLocale locale)
 {
     interceptor.Invoke("setLocale#", "setLocale(const KLocale*)", typeof(void), typeof(KLocale), locale);
 }
Esempio n. 15
0
 /// <remarks>
 ///  Finalizes the translation, creates string with placeholders
 ///  substituted. Translations is obtained from given locale. If locale
 ///  is NULL, original message is used instead of translated.
 ///  If there was any mismatch between placeholders and arguments
 ///  returned string will contain error marks (in debug mode).
 /// <param> name="locale" locale from which translations are to be taken
 /// </param></remarks>        <return> finalized translation
 ///      </return>
 ///         <short>    Finalizes the translation, creates string with placeholders  substituted.</short>
 public string ToString(KLocale locale)
 {
     return (string) interceptor.Invoke("toString#", "toString(const KLocale*) const", typeof(string), typeof(KLocale), locale);
 }