2 * Copyright 2005-2010, Axel Dörfler, axeld@pinc-software.de.
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef LOCALE_WINDOW_H
6 #define LOCALE_WINDOW_H
13 static const uint32 kMsgRevert
= 'revt';
19 class FormatSettingsView
;
20 class LanguageListItem
;
21 class LanguageListView
;
24 class LocaleWindow
: public BWindow
{
27 virtual ~LocaleWindow();
29 virtual void MessageReceived(BMessage
* message
);
30 virtual bool QuitRequested();
34 void _SettingsChanged();
35 void _SettingsReverted();
37 bool _IsReversible() const;
39 void _Refresh(bool setInitial
= false);
42 void _SetPreferredLanguages(
43 const BMessage
& languages
);
44 void _PreferredLanguagesChanged();
45 void _EnableDisableLanguages();
46 void _InsertPreferredLanguage(LanguageListItem
* item
,
50 BButton
* fRevertButton
;
51 LanguageListView
* fLanguageListView
;
52 LanguageListView
* fPreferredListView
;
53 LanguageListView
* fConventionsListView
;
54 FormatSettingsView
* fFormatView
;
55 LanguageListItem
* fInitialConventionsItem
;
56 LanguageListItem
* fDefaultConventionsItem
;
57 BMessage fInitialPreferredLanguages
;
58 BCheckBox
* fFilesystemTranslationCheckbox
;
62 #endif // LOCALE_WINDOW_H