RemoteDrawingEngine: Reduce RP_READ_BITMAP result timeout.
[haiku.git] / src / preferences / locale / FormatSettingsView.h
blobc092d5c71c8c7cd5389bea9ae4c0c22da7dc4c0c
1 /*
2 * Copyright 2009, Adrien Destugues, pulkomandy@gmail.com. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _FORMAT_SETTINGS_H
6 #define _FORMAT_SETTINGS_H
9 #include <Box.h>
10 #include <FormattingConventions.h>
11 #include <String.h>
12 #include <View.h>
15 class BCheckBox;
16 class BCountry;
17 class BMenuField;
18 class BMessage;
19 class BRadioButton;
20 class BStringView;
21 class BTextControl;
24 static const uint32 kClockFormatChange = 'cfmc';
25 static const uint32 kStringsLanguageChange = 'strc';
28 class FormatSettingsView : public BView {
29 public:
30 FormatSettingsView();
31 ~FormatSettingsView();
33 virtual void MessageReceived(BMessage* message);
34 virtual void AttachedToWindow();
36 virtual void Revert();
37 virtual void Refresh(bool setInitial = false);
38 virtual bool IsReversible() const;
40 private:
41 void _UpdateExamples();
43 private:
44 BCheckBox* fUseLanguageStringsCheckBox;
46 BRadioButton* f24HourRadioButton;
47 BRadioButton* f12HourRadioButton;
49 BStringView* fFullDateExampleView;
50 BStringView* fLongDateExampleView;
51 BStringView* fMediumDateExampleView;
52 BStringView* fShortDateExampleView;
54 BStringView* fFullTimeExampleView;
55 BStringView* fLongTimeExampleView;
56 BStringView* fMediumTimeExampleView;
57 BStringView* fShortTimeExampleView;
59 BStringView* fPositiveNumberExampleView;
60 BStringView* fNegativeNumberExampleView;
61 BStringView* fPositiveMonetaryExampleView;
62 BStringView* fNegativeMonetaryExampleView;
64 bool fLocaleIs24Hour;
66 BFormattingConventions fInitialConventions;
68 BBox* fDateBox;
69 BBox* fTimeBox;
70 BBox* fNumberBox;
71 BBox* fMonetaryBox;
75 #endif // _FORMAT_SETTINGS_H