xref: /haiku/src/preferences/locale/FormatSettingsView.h (revision 98e5fab3f4dc4ed9358c707d2c3765688ca29d12)
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>
106fd2f4a0SOliver Tappe #include <FormattingConventions.h>
11fb816644SAdrien Destugues #include <String.h>
12fb816644SAdrien Destugues #include <View.h>
13fb816644SAdrien Destugues 
14fb816644SAdrien Destugues 
156fd2f4a0SOliver 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 
246fd2f4a0SOliver Tappe static const uint32 kClockFormatChange = 'cfmc';
256fd2f4a0SOliver Tappe static const uint32 kStringsLanguageChange = 'strc';
26*98e5fab3SAdrien Destugues static const uint32 kMsgFilesystemTranslationChanged = 'fsys';
27fb816644SAdrien Destugues 
28fb816644SAdrien Destugues 
296fd2f4a0SOliver Tappe class FormatSettingsView : public BView {
30fb816644SAdrien Destugues public:
316fd2f4a0SOliver Tappe 								FormatSettingsView();
326fd2f4a0SOliver Tappe 								~FormatSettingsView();
33fb816644SAdrien Destugues 
34fb816644SAdrien Destugues 	virtual	void				MessageReceived(BMessage* message);
35fb816644SAdrien Destugues 	virtual	void				AttachedToWindow();
36fb816644SAdrien Destugues 
37fb816644SAdrien Destugues 	virtual	void				Revert();
386fd2f4a0SOliver Tappe 	virtual	void				Refresh(bool setInitial = false);
396fd2f4a0SOliver Tappe 	virtual	bool				IsReversible() const;
40fb816644SAdrien Destugues 
41fb816644SAdrien Destugues private:
42fb816644SAdrien Destugues 			void				_UpdateExamples();
43fb816644SAdrien Destugues 
44fb816644SAdrien Destugues private:
45*98e5fab3SAdrien Destugues 			BCheckBox*			fFilesystemTranslationCheckbox;
466fd2f4a0SOliver Tappe 			BCheckBox*			fUseLanguageStringsCheckBox;
47fb816644SAdrien Destugues 
486fd2f4a0SOliver Tappe 			BRadioButton*		f24HourRadioButton;
496fd2f4a0SOliver Tappe 			BRadioButton*		f12HourRadioButton;
50fb816644SAdrien Destugues 
516fd2f4a0SOliver Tappe 			BStringView*		fFullDateExampleView;
52fb816644SAdrien Destugues 			BStringView*		fLongDateExampleView;
536fd2f4a0SOliver Tappe 			BStringView*		fMediumDateExampleView;
54fb816644SAdrien Destugues 			BStringView*		fShortDateExampleView;
556fd2f4a0SOliver Tappe 
566fd2f4a0SOliver Tappe 			BStringView*		fFullTimeExampleView;
57fb816644SAdrien Destugues 			BStringView*		fLongTimeExampleView;
586fd2f4a0SOliver Tappe 			BStringView*		fMediumTimeExampleView;
59fb816644SAdrien Destugues 			BStringView*		fShortTimeExampleView;
60bca1690bSAdrien Destugues 
616fd2f4a0SOliver Tappe 			BStringView*		fPositiveNumberExampleView;
626fd2f4a0SOliver Tappe 			BStringView*		fNegativeNumberExampleView;
636fd2f4a0SOliver Tappe 			BStringView*		fPositiveMonetaryExampleView;
646fd2f4a0SOliver Tappe 			BStringView*		fNegativeMonetaryExampleView;
65fb816644SAdrien Destugues 
666fd2f4a0SOliver Tappe 			bool				fLocaleIs24Hour;
67fb816644SAdrien Destugues 
686fd2f4a0SOliver Tappe 			BFormattingConventions	fInitialConventions;
69*98e5fab3SAdrien Destugues 			bool	fInitialTranslateNames;
70fb816644SAdrien Destugues 
71fb816644SAdrien Destugues 			BBox*				fDateBox;
72fb816644SAdrien Destugues 			BBox*				fTimeBox;
736fd2f4a0SOliver Tappe 			BBox*				fNumberBox;
746fd2f4a0SOliver Tappe 			BBox*				fMonetaryBox;
75fb816644SAdrien Destugues };
76fb816644SAdrien Destugues 
77fb816644SAdrien Destugues 
78fb816644SAdrien Destugues #endif	// _FORMAT_SETTINGS_H
79