tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / preferences / locale / LocaleWindow.h
blob45f42a39c98a2f5b869d360056a0511178090f7a
1 /*
2 * Copyright 2005-2010, Axel Dörfler, axeld@pinc-software.de.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef LOCALE_WINDOW_H
6 #define LOCALE_WINDOW_H
9 #include <Message.h>
10 #include <Window.h>
13 static const uint32 kMsgRevert = 'revt';
16 class BButton;
17 class BCheckBox;
18 class BListView;
19 class FormatSettingsView;
20 class LanguageListItem;
21 class LanguageListView;
24 class LocaleWindow : public BWindow {
25 public:
26 LocaleWindow();
27 virtual ~LocaleWindow();
29 virtual void MessageReceived(BMessage* message);
30 virtual bool QuitRequested();
31 virtual void Show();
33 private:
34 void _SettingsChanged();
35 void _SettingsReverted();
37 bool _IsReversible() const;
39 void _Refresh(bool setInitial = false);
40 void _Revert();
42 void _SetPreferredLanguages(
43 const BMessage& languages);
44 void _PreferredLanguagesChanged();
45 void _EnableDisableLanguages();
46 void _InsertPreferredLanguage(LanguageListItem* item,
47 int32 atIndex = -1);
48 void _Defaults();
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