/* * Copyright 2008-09, Oliver Ruiz Dorantes, * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef ANTIALIASING_SETTINGS_VIEW_H #define ANTIALIASING_SETTINGS_VIEW_H #include class BBox; class BMenuField; class BPopUpMenu; class BSlider; class ExtendedLocalDeviceView; class BluetoothSettingsView : public BView { public: BluetoothSettingsView(const char* name); virtual ~BluetoothSettingsView(); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage* message); private: void _BuildConnectionPolicy(); void _SetCurrentAntialiasing(); void _BuildHintingMenu(); void _SetCurrentHinting(); void _SetCurrentAverageWeight(); void _BuildLocalDevicesMenu(); protected: float fDivider; BMenuField* fAntialiasingMenuField; BPopUpMenu* fAntialiasingMenu; BMenuField* fHintingMenuField; BPopUpMenu* fHintingMenu; BMenuField* fLocalDevicesMenuField; BPopUpMenu* fLocalDevicesMenu; ExtendedLocalDeviceView* fExtDeviceView; BSlider* fAverageWeightControl; bool fSavedSubpixelAntialiasing; bool fCurrentSubpixelAntialiasing; bool fSavedHinting; bool fCurrentHinting; unsigned char fSavedAverageWeight; unsigned char fCurrentAverageWeight; }; #endif // ANTIALIASING_SETTINGS_VIEW_H