#include </home/clem/local/src/opie/library/timestring.h>
Collaboration diagram for DateFormat:

Public Types | |
| enum | Order { DayMonthYear = 0x0111, MonthDayYear = 0x010A, YearMonthDay = 0x0054 } |
| enum | Verbosity { shortNumber = 0x01, longNumber = 0x02, padNumber = 0x04, shortWord = 0x08, longWord = 0x10, showWeekDay = 0x20 } |
Public Member Functions | |
| DateFormat (QChar s= '/', Order so=MonthDayYear) | |
| DateFormat (QChar s, Order so, Order lo) | |
| DateFormat (const DateFormat &o) | |
| bool | operator== (const DateFormat &o) |
| QString | toNumberString () const |
| QString | toWordString () const |
| QString | numberDate (const QDate &d, int v=0) const |
| QString | wordDate (const QDate &d, int v=0) const |
| void | load (QDataStream &) |
| void | save (QDataStream &) const |
| QChar | separator () const |
| Order | shortOrder () const |
| Order | longOrder () const |
Private Attributes | |
| Order | _shortOrder |
| Order | _longOrder |
| QChar | _shortSeparator |
Define how a Date and Time should be composed
Definition at line 34 of file timestring.h.
|
|
The order of the Day,Month and Year Definition at line 38 of file timestring.h. |
|
|
Definition at line 60 of file timestring.h. |
|
||||||||||||
|
A Constructor.
Definition at line 44 of file timestring.h. |
|
||||||||||||||||
|
A different Constructor with different long and short representation Definition at line 46 of file timestring.h. |
|
|
Copy c'tor Definition at line 48 of file timestring.h. |
|
|
load from the QDateStream. And set the values internally Definition at line 222 of file timestring.cpp. References _longOrder, _shortOrder, _shortSeparator, and v. Referenced by operator>>(). |
|
|
Return the DateFormat::Order for the longOrder which will be used by the wordString Definition at line 85 of file timestring.h. References _longOrder. Referenced by FormatTabWidget::saveSettings(). |
|
||||||||||||
|
Compose the QDate to a QString using the shortOrder() and the verbosity. The verbosity is only used to see if the year should be four positions or two positions wide.
Definition at line 116 of file timestring.cpp. References _shortOrder, _shortSeparator, buf, QDate::day(), i, longNumber, QDate::month(), and QDate::year(). Referenced by TimeString::longNumberDateString(), and TimeString::numberDateString(). |
|
|
Definition at line 51 of file timestring.h. References _longOrder, _shortOrder, _shortSeparator, FALSE, and TRUE. |
|
|
Definition at line 213 of file timestring.cpp. References _longOrder, _shortOrder, _shortSeparator, QChar::unicode(), and v. Referenced by operator<<(). |
|
|
Definition at line 83 of file timestring.h. References _shortSeparator. Referenced by FormatTabWidget::saveSettings(), and wordDate(). |
|
|
Return the DateFormat::Order for the shortOrder which will be used by numberString Definition at line 84 of file timestring.h. References _shortOrder. Referenced by FormatTabWidget::saveSettings(). |
|
|
Return the Order of Days as string (M/D/Y) in example this string can be shown to the user. It will extract three bits at a time and compose a string Definition at line 62 of file timestring.cpp. References _shortOrder, _shortSeparator, buf, i, and tr. |
|
|
Return the DateFormat as written words Definition at line 85 of file timestring.cpp. References _longOrder, _shortOrder, buf, i, and tr. |
|
||||||||||||
|
Compose the QDate to a QString using the longOrder() options. The difference to numberDate() is the length of the resulting string. Weekday- and Monthnames are expressed as words as opposed to digits.
Definition at line 152 of file timestring.cpp. References _longOrder, buf, QDate::day(), QDate::dayName(), QDate::dayOfWeek(), i, QString::left(), longNumber, longWord, QDate::month(), QDate::monthName(), QString::number(), separator(), showWeekDay, and QDate::year(). Referenced by TimeString::dateString(), TimeString::longDateString(), and TimeString::shortDate(). |
|
|
Definition at line 89 of file timestring.h. Referenced by load(), longOrder(), operator==(), save(), toWordString(), and wordDate(). |
|
|
Definition at line 85 of file timestring.h. Referenced by load(), numberDate(), operator==(), save(), shortOrder(), toNumberString(), and toWordString(). |
|
|
Definition at line 90 of file timestring.h. Referenced by load(), numberDate(), operator==(), save(), separator(), and toNumberString(). |
1.4.2