2 * Copyright 2009, Adrien Destugues, pulkomandy@gmail.com. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _FORMAT_SETTINGS_H
6 #define _FORMAT_SETTINGS_H
10 #include <FormattingConventions.h>
24 static const uint32 kClockFormatChange
= 'cfmc';
25 static const uint32 kStringsLanguageChange
= 'strc';
28 class FormatSettingsView
: public BView
{
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;
41 void _UpdateExamples();
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
;
66 BFormattingConventions fInitialConventions
;
75 #endif // _FORMAT_SETTINGS_H