repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / pulse / ConfigView.h
blob02f1beefaa37109e5ef9eb70dcfc113ae91c6ee6
1 /*
2 * Copyright 2002-2006 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT license.
5 * Copyright 1999, Be Incorporated. All Rights Reserved.
6 * This file may be used under the terms of the Be Sample Code License.
8 * Written by: Daniel Switkin
9 */
10 #ifndef CONFIG_VIEW_H
11 #define CONFIG_VIEW_H
14 #include "Prefs.h"
16 #include <Box.h>
17 #include <ColorControl.h>
19 class BCheckBox;
20 class BRadioButton;
21 class BTextControl;
24 class RTColorControl : public BColorControl {
25 public:
26 RTColorControl(BPoint point, BMessage *message);
27 void SetValue(int32 color);
30 class ConfigView : public BBox {
31 public:
32 ConfigView(BRect rect, const char *name, uint32 mode,
33 BMessenger& target, Prefs *prefs);
35 virtual void AttachedToWindow();
36 virtual void MessageReceived(BMessage *message);
37 virtual void GetPreferredSize(float* _width, float* _height);
39 void UpdateDeskbarIconWidth();
41 private:
42 void _ResetDefaults();
44 int32 fMode;
45 BMessenger fTarget;
46 Prefs* fPrefs;
47 RTColorControl* fColorControl;
49 bool fFirstTimeAttached;
51 // For Normal
52 BCheckBox* fFadeCheckBox;
53 // For Mini and Deskbar
54 BRadioButton* fActiveButton;
55 BRadioButton* fIdleButton;
56 BRadioButton* fFrameButton;
57 // For Deskbar
58 BTextControl* fIconWidthControl;
61 #endif // CONFIG_VIEW_H