C# Класс Kimono.KCalendarSystem

Наследование: Object
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
interceptor Qyoto.SmokeInvocation

Открытые методы

Метод Описание
CalendarLabel ( string calendarType ) : string Returns a typographically correct and translated label to display for the calendar system type. Use with calendarSystems() to neatly format labels to display on combo widget of available calendar systems. name="calendarType" the specific calendar type to return the label for
CalendarSystems ( ) : List Gets a list of names of supported calendar systems.
Create ( ) : KCalendarSystem
Create ( string calType ) : KCalendarSystem
Create ( string calType, KLocale locale ) : KCalendarSystem Creates specific calendar type name="calType" string identification of the specific calendar type to be constructed name="locale" locale to use for translations. The global locale is used if null.
KCalendarSystem ( KLocale locale ) : System Constructor of abstract calendar class. This will be called by derived classes. name="locale" locale to use for translations. The global locale is used if null.

Защищенные методы

Метод Описание
CreateProxy ( ) : void
KCalendarSystem ( Type dummy ) : System
Locale ( ) : KLocale Returns the locale used for translations and formats for this calendar system instance. This allows a calendar system instance to be independent of the global translations and formats if required. All implementations must refer to this locale. Only for internal calendar system use; if public access is required then provide public methods only for those methods actually required. Any app that creates an instance with its own locale overriding global will have the original handle to the locale and can manipulate it that way if required, e.g. to change default date format. Only expose those methods that library widgets require access to internally.

Приватные методы

Метод Описание
AddDays ( QDate date, int ndays ) : QDate
AddMonths ( QDate date, int nmonths ) : QDate
AddYears ( QDate date, int nyears ) : QDate
CalendarType ( ) : string
DateToJulianDay ( int year, int month, int day, int &jd ) : bool
Day ( QDate date ) : int
DayOfWeek ( QDate date ) : int
DayOfYear ( QDate date ) : int
DayString ( QDate pDate ) : string
DayString ( QDate pDate, KCalendarSystem format ) : string
DayStringToInteger ( string sNum, int &iLength ) : int
DaysInMonth ( QDate date ) : int
DaysInWeek ( QDate date ) : int
DaysInYear ( QDate date ) : int
EarliestValidDate ( ) : QDate
Epoch ( ) : QDate
FormatDate ( QDate date ) : string
FormatDate ( QDate date, KLocale format ) : string
IsLeapYear ( QDate date ) : bool
IsLeapYear ( int year ) : bool
IsLunar ( ) : bool
IsLunisolar ( ) : bool
IsProleptic ( ) : bool
IsSolar ( ) : bool
IsValid ( QDate date ) : bool
IsValid ( int year, int month, int day ) : bool
JulianDayToDate ( int jd, int &year, int &month, int &day ) : bool
KCalendarSystem ( ) : System
LatestValidDate ( ) : QDate
Month ( QDate date ) : int
MonthName ( QDate date ) : string
MonthName ( QDate date, KCalendarSystem format ) : string
MonthName ( int month, int year, KCalendarSystem format ) : string
MonthString ( QDate pDate ) : string
MonthString ( QDate pDate, KCalendarSystem format ) : string
MonthStringToInteger ( string sNum, int &iLength ) : int
MonthsInYear ( QDate date ) : int
ReadDate ( string str ) : QDate
ReadDate ( string str, KLocale flags ) : QDate
ReadDate ( string str, KLocale flags, bool &ok ) : QDate
ReadDate ( string str, bool &ok ) : QDate
ReadDate ( string intstr, string format ) : QDate
ReadDate ( string intstr, string format, bool &ok ) : QDate
SetDate ( QDate date, int year, int month, int day ) : bool
WeekDayName ( QDate date ) : string
WeekDayName ( QDate date, KCalendarSystem format ) : string
WeekDayName ( int weekDay, KCalendarSystem format ) : string
WeekDayOfPray ( ) : int
WeekNumber ( QDate date ) : int
WeekNumber ( QDate date, int &yearNum ) : int
WeekStartDay ( ) : int
WeeksInYear ( QDate date ) : int
WeeksInYear ( int year ) : int
Year ( QDate date ) : int
YearString ( QDate date ) : string
YearString ( QDate date, KCalendarSystem format ) : string
YearStringToInteger ( string sNum, int &iLength ) : int

Описание методов

CalendarLabel() публичный статический Метод

Returns a typographically correct and translated label to display for the calendar system type. Use with calendarSystems() to neatly format labels to display on combo widget of available calendar systems. name="calendarType" the specific calendar type to return the label for
public static CalendarLabel ( string calendarType ) : string
calendarType string
Результат string

CalendarSystems() публичный статический Метод

Gets a list of names of supported calendar systems.
public static CalendarSystems ( ) : List
Результат List

Create() публичный статический Метод

public static Create ( ) : KCalendarSystem
Результат KCalendarSystem

Create() публичный статический Метод

public static Create ( string calType ) : KCalendarSystem
calType string
Результат KCalendarSystem

Create() публичный статический Метод

Creates specific calendar type name="calType" string identification of the specific calendar type to be constructed name="locale" locale to use for translations. The global locale is used if null.
public static Create ( string calType, KLocale locale ) : KCalendarSystem
calType string
locale KLocale
Результат KCalendarSystem

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

KCalendarSystem() публичный Метод

Constructor of abstract calendar class. This will be called by derived classes. name="locale" locale to use for translations. The global locale is used if null.
public KCalendarSystem ( KLocale locale ) : System
locale KLocale
Результат System

KCalendarSystem() защищенный Метод

protected KCalendarSystem ( Type dummy ) : System
dummy System.Type
Результат System

Locale() защищенный Метод

Returns the locale used for translations and formats for this calendar system instance. This allows a calendar system instance to be independent of the global translations and formats if required. All implementations must refer to this locale. Only for internal calendar system use; if public access is required then provide public methods only for those methods actually required. Any app that creates an instance with its own locale overriding global will have the original handle to the locale and can manipulate it that way if required, e.g. to change default date format. Only expose those methods that library widgets require access to internally.
protected Locale ( ) : KLocale
Результат KLocale

Описание свойств

interceptor защищенное свойство

protected SmokeInvocation,Qyoto interceptor
Результат Qyoto.SmokeInvocation