Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / preferences / appearance / LookAndFeelSettingsView.h
blob787c8feffb732dbe8c1fd5ce55c4959b3928b7bc
1 /*
2 * Copyright 2010-2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 * Alexander von Gluck <kallisti5@unixzen.com>
8 * John Scipione <jscipione@gmail.com>
9 * Ryan Leavengood <leavengood@gmail.com>
11 #ifndef LOOK_AND_FEEL_SETTINGS_VIEW_H
12 #define LOOK_AND_FEEL_SETTINGS_VIEW_H
15 #include <DecorInfo.h>
16 #include <String.h>
17 #include <View.h>
20 class BButton;
21 class BCheckBox;
22 class BMenuField;
23 class BPopUpMenu;
24 class FakeScrollBar;
26 class LookAndFeelSettingsView : public BView {
27 public:
28 LookAndFeelSettingsView(const char* name);
29 virtual ~LookAndFeelSettingsView();
31 virtual void AttachedToWindow();
32 virtual void MessageReceived(BMessage* message);
34 bool IsDefaultable();
35 void SetDefaults();
37 bool IsRevertable();
38 void Revert();
40 private:
41 void _SetDecor(const BString& name);
42 void _SetDecor(BPrivate::DecorInfo* decorInfo);
44 void _BuildDecorMenu();
45 void _AdoptToCurrentDecor();
46 void _AdoptInterfaceToCurrentDecor();
48 bool _DoubleScrollBarArrows();
49 void _SetDoubleScrollBarArrows(bool doubleArrows);
51 private:
52 DecorInfoUtility fDecorUtility;
54 BButton* fDecorInfoButton;
55 BMenuField* fDecorMenuField;
56 BPopUpMenu* fDecorMenu;
58 FakeScrollBar* fArrowStyleSingle;
59 FakeScrollBar* fArrowStyleDouble;
61 BString fSavedDecor;
62 BString fCurrentDecor;
64 bool fSavedDoubleArrowsValue;
67 #endif // LOOK_AND_FEEL_SETTINGS_VIEW_H