xref: /haiku/src/preferences/bluetooth/BluetoothSettingsView.h (revision adb0d19d561947362090081e81d90dde59142026)
1 /*
2  * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com>
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef ANTIALIASING_SETTINGS_VIEW_H
6 #define ANTIALIASING_SETTINGS_VIEW_H
7 
8 
9 #include <View.h>
10 
11 class BBox;
12 class BMenuField;
13 class BPopUpMenu;
14 class BSlider;
15 
16 class ExtendedLocalDeviceView;
17 
18 class BluetoothSettingsView : public BView {
19 public:
20 							BluetoothSettingsView(const char* name);
21 	virtual					~BluetoothSettingsView();
22 
23 	virtual	void			AttachedToWindow();
24 	virtual	void			MessageReceived(BMessage* message);
25 
26 
27 private:
28 			void			_BuildConnectionPolicy();
29 			void			_SetCurrentAntialiasing();
30 			void			_BuildHintingMenu();
31 			void			_SetCurrentHinting();
32 			void			_SetCurrentAverageWeight();
33 			void			_BuildLocalDevicesMenu();
34 
35 protected:
36 			float			fDivider;
37 
38 			BMenuField*		fAntialiasingMenuField;
39 			BPopUpMenu*		fAntialiasingMenu;
40 			BMenuField*		fHintingMenuField;
41 			BPopUpMenu*		fHintingMenu;
42 			BMenuField*		fLocalDevicesMenuField;
43 			BPopUpMenu*		fLocalDevicesMenu;
44 
45 			ExtendedLocalDeviceView* fExtDeviceView;
46 
47 			BSlider*		fAverageWeightControl;
48 
49 			bool			fSavedSubpixelAntialiasing;
50 			bool			fCurrentSubpixelAntialiasing;
51 			bool			fSavedHinting;
52 			bool			fCurrentHinting;
53 			unsigned char	fSavedAverageWeight;
54 			unsigned char	fCurrentAverageWeight;
55 };
56 
57 #endif // ANTIALIASING_SETTINGS_VIEW_H
58