C# Class Kimono.KCalendarSystem

Inheritance: Object
ファイルを表示 Open project: 0xd34df00d/Qross Class Usage Examples

Protected Properties

Property Type Description
interceptor Qyoto.SmokeInvocation

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

CalendarLabel() public static method

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
return string

CalendarSystems() public static method

Gets a list of names of supported calendar systems.
public static CalendarSystems ( ) : List
return List

Create() public static method

public static Create ( ) : KCalendarSystem
return KCalendarSystem

Create() public static method

public static Create ( string calType ) : KCalendarSystem
calType string
return KCalendarSystem

Create() public static method

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
return KCalendarSystem

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

KCalendarSystem() public method

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
return System

KCalendarSystem() protected method

protected KCalendarSystem ( Type dummy ) : System
dummy System.Type
return System

Locale() protected method

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
return KLocale

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
return Qyoto.SmokeInvocation