xref: /haiku/src/preferences/locale/FormatSettingsView.h (revision 6fd2f4a0d14b45a316defe994e9790de062ff3ff)
1fb816644SAdrien Destugues /*
2fb816644SAdrien Destugues  * Copyright 2009, Adrien Destugues, pulkomandy@gmail.com. All rights reserved.
3fb816644SAdrien Destugues  * Distributed under the terms of the MIT License.
4fb816644SAdrien Destugues  */
5fb816644SAdrien Destugues #ifndef _FORMAT_SETTINGS_H
6fb816644SAdrien Destugues #define _FORMAT_SETTINGS_H
7fb816644SAdrien Destugues 
8fb816644SAdrien Destugues 
9fb816644SAdrien Destugues #include <Box.h>
10*6fd2f4a0SOliver Tappe #include <FormattingConventions.h>
11fb816644SAdrien Destugues #include <String.h>
12fb816644SAdrien Destugues #include <View.h>
13fb816644SAdrien Destugues 
14fb816644SAdrien Destugues 
15*6fd2f4a0SOliver Tappe class BCheckBox;
16fb816644SAdrien Destugues class BCountry;
17fb816644SAdrien Destugues class BMenuField;
18fb816644SAdrien Destugues class BMessage;
19fb816644SAdrien Destugues class BRadioButton;
20fb816644SAdrien Destugues class BStringView;
21fb816644SAdrien Destugues class BTextControl;
22fb816644SAdrien Destugues 
23fb816644SAdrien Destugues 
24*6fd2f4a0SOliver Tappe static const uint32 kClockFormatChange = 'cfmc';
25*6fd2f4a0SOliver Tappe static const uint32 kStringsLanguageChange = 'strc';
26fb816644SAdrien Destugues 
27fb816644SAdrien Destugues 
28*6fd2f4a0SOliver Tappe class FormatSettingsView : public BView {
29fb816644SAdrien Destugues public:
30*6fd2f4a0SOliver Tappe 								FormatSettingsView();
31*6fd2f4a0SOliver Tappe 								~FormatSettingsView();
32fb816644SAdrien Destugues 
33fb816644SAdrien Destugues 	virtual	void				MessageReceived(BMessage* message);
34fb816644SAdrien Destugues 	virtual	void				AttachedToWindow();
35fb816644SAdrien Destugues 
36fb816644SAdrien Destugues 	virtual	void				Revert();
37*6fd2f4a0SOliver Tappe 	virtual	void				Refresh(bool setInitial = false);
38*6fd2f4a0SOliver Tappe 	virtual	bool				IsReversible() const;
39fb816644SAdrien Destugues 
40fb816644SAdrien Destugues private:
41fb816644SAdrien Destugues 			void				_UpdateExamples();
42fb816644SAdrien Destugues 
43fb816644SAdrien Destugues private:
44*6fd2f4a0SOliver Tappe 			BCheckBox*			fUseLanguageStringsCheckBox;
45fb816644SAdrien Destugues 
46*6fd2f4a0SOliver Tappe 			BRadioButton*		f24HourRadioButton;
47*6fd2f4a0SOliver Tappe 			BRadioButton*		f12HourRadioButton;
48fb816644SAdrien Destugues 
49*6fd2f4a0SOliver Tappe 			BStringView*		fFullDateExampleView;
50fb816644SAdrien Destugues 			BStringView*		fLongDateExampleView;
51*6fd2f4a0SOliver Tappe 			BStringView*		fMediumDateExampleView;
52fb816644SAdrien Destugues 			BStringView*		fShortDateExampleView;
53*6fd2f4a0SOliver Tappe 
54*6fd2f4a0SOliver Tappe 			BStringView*		fFullTimeExampleView;
55fb816644SAdrien Destugues 			BStringView*		fLongTimeExampleView;
56*6fd2f4a0SOliver Tappe 			BStringView*		fMediumTimeExampleView;
57fb816644SAdrien Destugues 			BStringView*		fShortTimeExampleView;
58bca1690bSAdrien Destugues 
59*6fd2f4a0SOliver Tappe 			BStringView*		fPositiveNumberExampleView;
60*6fd2f4a0SOliver Tappe 			BStringView*		fNegativeNumberExampleView;
61*6fd2f4a0SOliver Tappe 			BStringView*		fPositiveMonetaryExampleView;
62*6fd2f4a0SOliver Tappe 			BStringView*		fNegativeMonetaryExampleView;
63fb816644SAdrien Destugues 
64*6fd2f4a0SOliver Tappe 			bool				fLocaleIs24Hour;
65fb816644SAdrien Destugues 
66*6fd2f4a0SOliver Tappe 			BFormattingConventions	fInitialConventions;
67fb816644SAdrien Destugues 
68fb816644SAdrien Destugues 			BBox*				fDateBox;
69fb816644SAdrien Destugues 			BBox*				fTimeBox;
70*6fd2f4a0SOliver Tappe 			BBox*				fNumberBox;
71*6fd2f4a0SOliver Tappe 			BBox*				fMonetaryBox;
72fb816644SAdrien Destugues };
73fb816644SAdrien Destugues 
74fb816644SAdrien Destugues 
75fb816644SAdrien Destugues #endif	// _FORMAT_SETTINGS_H
76