Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtCore.QSystemLocale Class Reference

The QSystemLocale class can be used to finetune the system locale of the user. More...

Inheritance diagram for QtCore.QSystemLocale:
Collaboration diagram for QtCore.QSystemLocale:

Public Types

enum  QueryType {
  AMText = 24, CountryId = 1, CurrencySymbol = 28, CurrencyToString = 29,
  DateFormatLong = 6, DateFormatShort = 7, DateTimeFormatLong = 18, DateTimeFormatShort = 19,
  DateTimeToStringLong = 20, DateTimeToStringShort = 21, DateToStringLong = 14, DateToStringShort = 15,
  DayNameLong = 10, DayNameShort = 11, DecimalPoint = 2, FirstDayOfWeek = 26,
  GroupSeparator = 3, LanguageId = 0, ListToSeparatedString = 34, LocaleChanged = 35,
  MeasurementSystem = 22, MonthNameLong = 12, MonthNameShort = 13, NativeCountryName = 37,
  NativeLanguageName = 36, NegativeSign = 5, PMText = 25, PositiveSign = 23,
  ScriptId = 33, StringToAlternateQuotation = 32, StringToStandardQuotation = 31, TimeFormatLong = 8,
  TimeFormatShort = 9, TimeToStringLong = 16, TimeToStringShort = 17, UILanguages = 30,
  Weekdays = 27, ZeroDigit = 4
}
  More...
 

Public Member Functions

 QSystemLocale ()
 
 
 QSystemLocale (QSystemLocale copy)
 
 
virtual void CreateProxy ()
 
virtual QLocale FallbackLocale ()
 
 
virtual object Query (QSystemLocale.QueryType type, object @in)
 
 
new void Dispose ()
 

Protected Member Functions

 QSystemLocale (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QSystemLocale class can be used to finetune the system locale of the user.

Warning: This class is only useful in very rare cases. Usually QLocale offers all the functionality required for application development.

QSystemLocale allows to override the values provided by the system locale (QLocale::system()).

See also QLocale.

Member Enumeration Documentation

Specifies the type of information queried by query(). For each value the type of information to return from the query() method is listed.

Enumerator:
AMText 

A string that represents the system AM designator associated with a 12-hour clock.

CountryId 

A uint specifying the country.

CurrencySymbol 

A string that represents a currency in a format QLocale::CurrencyFormat.

CurrencyToString 

A localized string representation of a number with a currency symbol. Converts a QSystemLocale::CurrencyToStringArgument stored in the in variant to a QString.

DateFormatLong 

A QString specifying the long date format

DateFormatShort 

A QString specifying the short date format

DateTimeFormatLong 

A QString specifying the long date time format

DateTimeFormatShort 

A QString specifying the short date time format

DateTimeToStringLong 

Converts the QDateTime in the in variant to a QString using the long datetime format

DateTimeToStringShort 

Converts the QDateTime in the in variant to a QString using the short datetime format

DateToStringLong 

Converts the QDate stored in the in variant to a QString using the long date format

DateToStringShort 

Converts the QDate stored in the in variant to a QString using the short date format

DayNameLong 

A QString specifying the name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)

DayNameShort 

A QString specifying the short name of a weekday. the in variant contains an integer between 1 and 7 (Monday - Sunday)

DecimalPoint 

A QString specifying the decimal point.

FirstDayOfWeek 

A Qt::DayOfWeek enum specifiying the first day of the week

GroupSeparator 

A QString specifying the group separator.

LanguageId 

A uint specifying the language.

ListToSeparatedString 

A string that represents a join of a given QStringList with a locale-defined separator.

LocaleChanged 

This type is queried whenever the system locale is changed.

MeasurementSystem 

A QLocale::MeasurementSystem enum specifying the measurement system

MonthNameLong 

A QString specifying the name of a month. the in variant contains an integer between 1 and 12

MonthNameShort 

A QString specifying the short name of a month. the in variant contains an integer between 1 and 12

NativeCountryName 

A string that represents the name of the native country.

NativeLanguageName 

A string that represents the name of the native language.

NegativeSign 

A QString specifying the minus sign.

PMText 

A string that represents the system PM designator associated with a 12-hour clock.

PositiveSign 

A QString specifying the plus sign.

ScriptId 

A uint specifying the script.

StringToAlternateQuotation 

A QString containing a quoted version of the string ref stored in the in variant using alternate quotes.

StringToStandardQuotation 

A QString containing a quoted version of the string ref stored in the in variant using standard quotes.

TimeFormatLong 

A QString specifying the long time format

TimeFormatShort 

A QString specifying the short time format

TimeToStringLong 

Converts the QTime stored in the in variant to a QString using the long time format

TimeToStringShort 

Converts the QTime stored in the in variant to a QString using the short time format

UILanguages 

A list of strings representing locale names that could be used for UI translation.

Weekdays 

A QList<Qt::DayOfWeek> specifying the regular weekdays

ZeroDigit 

A QString specifying the zero digit.

Constructor & Destructor Documentation

QtCore.QSystemLocale.QSystemLocale ( System.Type  dummy)
protected
QtCore.QSystemLocale.QSystemLocale ( )

Constructs a QSystemLocale object. The constructor will automatically install this object as the system locale and remove any earlier installed system locales.

QtCore.QSystemLocale.QSystemLocale ( QSystemLocale  copy)

Constructs a QSystemLocale object. The constructor will automatically install this object as the system locale and remove any earlier installed system locales.

Member Function Documentation

virtual void QtCore.QSystemLocale.CreateProxy ( )
virtual
new void QtCore.QSystemLocale.Dispose ( )
virtual QLocale QtCore.QSystemLocale.FallbackLocale ( )
virtual

Returns the fallback locale obtained from the system.

This function was introduced in Qt 4.6.

virtual object QtCore.QSystemLocale.Query ( QSystemLocale.QueryType  type,
object @  in 
)
virtual

Generic query method for locale data. Provides indirection. Denotes the type of the query with in as input data depending on the query.

See also QSystemLocale::QueryType.

Member Data Documentation

SmokeInvocation QtCore.QSystemLocale.interceptor
protected

Property Documentation

virtual System.IntPtr QtCore.QSystemLocale.SmokeObject
getset