Build fix for wxUSE_DATETIME==0
This commit is contained in:
parent
b87a7ab9e7
commit
642f226eb6
6 changed files with 22 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ public:
|
|||
// The entries contain platform-dependent identifiers.
|
||||
static wxVector<wxString> GetPreferredUILanguages();
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
// Helper function used by GetMonthName/GetWeekDayName(): returns 0 if flags is
|
||||
// wxDateTime::Name_Full, 1 if it is wxDateTime::Name_Abbr, and 2 if it is
|
||||
// wxDateTime::Name_Shortest or -1 if the flags is incorrect (and asserts in this case)
|
||||
|
|
@ -75,6 +76,7 @@ public:
|
|||
// the return value of this function is used as an index into 2D array
|
||||
// containing full names in its first row and abbreviated ones in the 2nd one
|
||||
static int ArrayIndexFromFlag(wxDateTime::NameFlags flags);
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
// Use this locale in the UI.
|
||||
//
|
||||
|
|
@ -88,8 +90,10 @@ public:
|
|||
virtual wxLocaleIdent GetLocaleId() const = 0;
|
||||
virtual wxString GetInfo(wxLocaleInfo index, wxLocaleCategory cat) const = 0;
|
||||
virtual wxString GetLocalizedName(wxLocaleName name, wxLocaleForm form) const = 0;
|
||||
#if wxUSE_DATETIME
|
||||
virtual wxString GetMonthName(wxDateTime::Month month, wxDateTime::NameForm form) const = 0;
|
||||
virtual wxString GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameForm form) const = 0;
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
virtual wxLayoutDirection GetLayoutDirection() const = 0;
|
||||
virtual int CompareStrings(const wxString& lhs, const wxString& rhs,
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ public:
|
|||
// Query the locale for the specified localized name.
|
||||
wxString GetLocalizedName(wxLocaleName name, wxLocaleForm form) const;
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
// Get the full (default) or abbreviated localized month name
|
||||
// returns empty string on error
|
||||
wxString GetMonthName(wxDateTime::Month month,
|
||||
|
|
@ -157,6 +158,7 @@ public:
|
|||
// returns empty string on error
|
||||
wxString GetWeekDayName(wxDateTime::WeekDay weekday,
|
||||
wxDateTime::NameForm form = {}) const;
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
// Query the layout direction of the current locale.
|
||||
wxLayoutDirection GetLayoutDirection() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue