KDECore
kcalendarsystemqdate.cpp
Go to the documentation of this file.
57 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
86 KConfigGroup cg = lcg.group(QString::fromLatin1("KCalendarSystem %1").arg(q->calendarType(q->calendarSystem())));
96 format = i18nc("(kdedt-format) Gregorian, BC, full era year format used for %EY, e.g. 2000 BC", "%Ey %EC");
106 format = i18nc("(kdedt-format) Gregorian, AD, full era year format used for %EY, e.g. 2000 AD", "%Ey %EC");
168 QString KCalendarSystemQDatePrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
206 return ki18nc("Gregorian month 1 - KLocale::ShortName Possessive", "of Jan").toString(locale());
208 return ki18nc("Gregorian month 2 - KLocale::ShortName Possessive", "of Feb").toString(locale());
210 return ki18nc("Gregorian month 3 - KLocale::ShortName Possessive", "of Mar").toString(locale());
212 return ki18nc("Gregorian month 4 - KLocale::ShortName Possessive", "of Apr").toString(locale());
214 return ki18nc("Gregorian month 5 - KLocale::ShortName Possessive", "of May").toString(locale());
216 return ki18nc("Gregorian month 6 - KLocale::ShortName Possessive", "of Jun").toString(locale());
218 return ki18nc("Gregorian month 7 - KLocale::ShortName Possessive", "of Jul").toString(locale());
220 return ki18nc("Gregorian month 8 - KLocale::ShortName Possessive", "of Aug").toString(locale());
222 return ki18nc("Gregorian month 9 - KLocale::ShortName Possessive", "of Sep").toString(locale());
224 return ki18nc("Gregorian month 10 - KLocale::ShortName Possessive", "of Oct").toString(locale());
226 return ki18nc("Gregorian month 11 - KLocale::ShortName Possessive", "of Nov").toString(locale());
228 return ki18nc("Gregorian month 12 - KLocale::ShortName Possessive", "of Dec").toString(locale());
268 return ki18nc("Gregorian month 1 - KLocale::LongName Possessive", "of January").toString(locale());
270 return ki18nc("Gregorian month 2 - KLocale::LongName Possessive", "of February").toString(locale());
272 return ki18nc("Gregorian month 3 - KLocale::LongName Possessive", "of March").toString(locale());
274 return ki18nc("Gregorian month 4 - KLocale::LongName Possessive", "of April").toString(locale());
278 return ki18nc("Gregorian month 6 - KLocale::LongName Possessive", "of June").toString(locale());
280 return ki18nc("Gregorian month 7 - KLocale::LongName Possessive", "of July").toString(locale());
282 return ki18nc("Gregorian month 8 - KLocale::LongName Possessive", "of August").toString(locale());
284 return ki18nc("Gregorian month 9 - KLocale::LongName Possessive", "of September").toString(locale());
286 return ki18nc("Gregorian month 10 - KLocale::LongName Possessive", "of October").toString(locale());
288 return ki18nc("Gregorian month 11 - KLocale::LongName Possessive", "of November").toString(locale());
290 return ki18nc("Gregorian month 12 - KLocale::LongName Possessive", "of December").toString(locale());
327 QString KCalendarSystemQDatePrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
397 KCalendarSystemQDate::KCalendarSystemQDate(const KSharedConfig::Ptr config, const KLocale *locale)
403 KCalendarSystemQDate::KCalendarSystemQDate(KCalendarSystemQDatePrivate &dd, const KSharedConfig::Ptr config, const KLocale *locale)
virtual int year(const QDate &date) const
Returns the year portion of a given date in the current calendar system.
Definition: kcalendarsystemqdate.cpp:454
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
virtual int earliestValidYear() const
Definition: kcalendarsystem.cpp:371
virtual bool dateToJulianDay(int year, int month, int day, int &jd) const
Internal method to convert YMD values for this calendar system into a Julian Day number.
Definition: kcalendarsystemqdate.cpp:553
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystem.cpp:1842
virtual void loadDefaultEraList()
Definition: kcalendarsystem.cpp:269
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemqdate.cpp:418
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemqdate.cpp:534
virtual int monthsInYear(int year) const
Definition: kcalendarsystem.cpp:277
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition: kconfigbase.cpp:44
virtual int maxMonthsInYear() const
Definition: kcalendarsystem.cpp:362
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE...
Definition: kcalendarsystem.h:40
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
virtual int daysInYear(int year) const
Definition: kcalendarsystem.cpp:304
virtual int daysInWeek() const
Definition: kcalendarsystem.cpp:315
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemqdate.cpp:431
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemqdate.cpp:529
virtual ~KCalendarSystemQDate()
Definition: kcalendarsystemqdate.cpp:409
virtual int dayOfYear(const QDate &date) const
Returns the day number of year for the given date.
Definition: kcalendarsystemqdate.cpp:479
virtual QString calendarType() const
Definition: kcalendarsystemqdate.cpp:413
KDE Default, hybrid of Gregorian and Julian as used by QDate.
Definition: klocale.h:781
virtual int day(const QDate &date) const
Returns the day portion of a given date in the current calendar system.
Definition: kcalendarsystemqdate.cpp:464
virtual bool hasLeapMonths() const
Definition: kcalendarsystem.cpp:341
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemqdate.cpp:424
virtual int month(const QDate &date) const
Returns the month portion of a given date in the current calendar system.
Definition: kcalendarsystemqdate.cpp:459
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemqdate.cpp:539
virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const
Internal method to convert a Julian Day number into the YMD values for this calendar system...
Definition: kcalendarsystemqdate.cpp:544
virtual bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystemqdate.cpp:439
virtual int daysInYear(const QDate &date) const
Returns the number of days in the given year.
Definition: kcalendarsystemqdate.cpp:469
virtual bool isValid(int year, int month, int day) const =0
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystem.cpp:1133
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystemqdate.cpp:499
virtual int maxDaysInWeek() const
Definition: kcalendarsystem.cpp:355
virtual bool hasYearZero() const
Definition: kcalendarsystem.cpp:348
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const
Definition: kcalendarsystem.cpp:387
virtual int latestValidYear() const
Definition: kcalendarsystem.cpp:380
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystem.cpp:285
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystem.cpp:398
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemqdate.cpp:524
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:261
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemqdate.cpp:489
virtual bool isLeapYear(int year) const
Definition: kcalendarsystem.cpp:322
KCalendarSystemQDate(const KLocale *locale=0)
Definition: kcalendarsystemqdate.cpp:391
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition: kconfiggroup.h:248
Definition: kcalendarsystemqdate_p.h:41
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemqdate.cpp:509
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
virtual int daysInMonth(const QDate &date) const
Returns the number of days in the given month.
Definition: kcalendarsystemqdate.cpp:474
virtual int weekDayOfPray() const
Definition: kcalendarsystemqdate.cpp:519
virtual int dayOfWeek(const QDate &date) const
Returns the weekday number for the given date.
Definition: kcalendarsystemqdate.cpp:484
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.