* Added BLanguage::GetIcon(), and BLocaleRoster::GetFlagIconForLanguage(). The
former just calls the latter. Getting the flag for a language is pretty simplistic for now, but it won't return the wrong flag, just only a few known ones (should be enough for ReadOnlyBootPrompt, at least). * Ordered methods in declaration order. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41744 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2010, Haiku, Inc.
|
||||
* Copyright 2003-2011, Haiku, Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _LANGUAGE_H_
|
||||
@@ -11,6 +11,8 @@
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
class BBitmap;
|
||||
|
||||
// We must not include the icu headers in there as it could mess up binary
|
||||
// compatibility.
|
||||
namespace icu_44 {
|
||||
@@ -32,12 +34,14 @@ public:
|
||||
BLanguage(const BLanguage& other);
|
||||
~BLanguage();
|
||||
|
||||
BLanguage& operator=(const BLanguage& source);
|
||||
status_t SetTo(const char* language);
|
||||
|
||||
status_t GetNativeName(BString& name) const;
|
||||
status_t GetName(BString& name,
|
||||
const BLanguage* displayLanguage = NULL
|
||||
) const;
|
||||
const char* GetString(uint32 id) const;
|
||||
status_t GetIcon(BBitmap* result) const;
|
||||
|
||||
const char* Code() const;
|
||||
// ISO-639-1
|
||||
@@ -53,15 +57,12 @@ public:
|
||||
|
||||
uint8 Direction() const;
|
||||
|
||||
status_t SetTo(const char* language);
|
||||
|
||||
const char* GetString(uint32 id) const;
|
||||
BLanguage& operator=(const BLanguage& source);
|
||||
|
||||
class Private;
|
||||
private:
|
||||
friend class Private;
|
||||
|
||||
// BString fStrings[B_NUM_LANGUAGE_STRINGS];
|
||||
uint8 fDirection;
|
||||
icu_44::Locale* fICULocale;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2010, Haiku. All rights reserved.
|
||||
* Copyright 2003-2011, Haiku. All rights reserved.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*/
|
||||
#ifndef _LOCALE_ROSTER_H_
|
||||
@@ -51,6 +51,8 @@ public:
|
||||
|
||||
status_t GetFlagIconForCountry(BBitmap* flagIcon,
|
||||
const char* countryCode);
|
||||
status_t GetFlagIconForLanguage(BBitmap* flagIcon,
|
||||
const char* languageCode);
|
||||
|
||||
status_t GetAvailableCatalogs(BMessage* message,
|
||||
const char* sigPattern = NULL,
|
||||
|
||||
Reference in New Issue
Block a user