2 * Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
3 * Copyright 2009, Pier Luigi Fiorini.
4 * Distributed under the terms of the MIT License.
6 #ifndef _GENERAL_VIEW_H
7 #define _GENERAL_VIEW_H
13 #include <MenuField.h>
15 #include <RadioButton.h>
17 #include <StringView.h>
18 #include <TextControl.h>
20 #include "SettingsPane.h"
23 class GeneralView
: public SettingsPane
{
25 GeneralView(SettingsHost
* host
);
27 virtual void AttachedToWindow();
28 virtual void MessageReceived(BMessage
* msg
);
31 status_t
Load(BMessage
&);
32 status_t
Save(BMessage
&);
34 bool RevertPossible();
36 bool DefaultsPossible();
37 bool UseDefaultRevertButtons();
40 BCheckBox
* fNotificationBox
;
41 BSlider
* fDurationSlider
;
42 BSlider
* fWidthSlider
;
44 int32 fOriginalTimeout
;
46 icon_size fOriginalIconSize
;
48 void _EnableControls();
49 void _SetWidthLabel(int32 value
);
50 void _SetTimeoutLabel(int32 value
);
51 bool _IsServerRunning();
54 #endif // _GENERAL_VIEW_H