xref: /haiku/src/apps/deskbar/PreferencesWindow.h (revision a6e73cb9e8addfe832c064bfcb68067f1c2fa3eb)
1 /*
2  * Copyright 2009 Haiku, Inc.
3  * All Rights Reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef _PREFERENCES_WINDOW_H
6 #define _PREFERENCES_WINDOW_H
7 
8 
9 #include <Box.h>
10 #include <Button.h>
11 #include <CheckBox.h>
12 #include <RadioButton.h>
13 #include <StringView.h>
14 #include <TextControl.h>
15 #include <Window.h>
16 
17 
18 const uint32 kConfigShow = 'show';
19 const uint32 kConfigClose = 'canc';
20 const uint32 kUpdateRecentCounts = 'upct';
21 const uint32 kEditMenuInTracker = 'mtrk';
22 const uint32 kStateChanged = 'stch';
23 
24 
25 class PreferencesWindow : public BWindow
26 {
27 public:
28 							PreferencesWindow(BRect frame);
29 							~PreferencesWindow();
30 
31 	virtual void			MessageReceived(BMessage* message);
32 	virtual void			WindowActivated(bool active);
33 
34 private:
35 			void			_UpdateRecentCounts();
36 			void			_EnableDisableDependentItems();
37 
38 			BBox*			fMenuBox;
39 			BBox*			fAppsBox;
40 			BBox*			fClockBox;
41 			BBox*			fWindowBox;
42 
43 			BCheckBox*		fMenuRecentDocuments;
44 			BCheckBox*		fMenuRecentApplications;
45 			BCheckBox*		fMenuRecentFolders;
46 
47 			BTextControl*	fMenuRecentDocumentCount;
48 			BTextControl*	fMenuRecentApplicationCount;
49 			BTextControl*	fMenuRecentFolderCount;
50 
51 			BCheckBox*		fAppsSort;
52 			BCheckBox*		fAppsSortTrackerFirst;
53 			BCheckBox*		fAppsShowExpanders;
54 			BCheckBox*		fAppsExpandNew;
55 
56 			BCheckBox*		fClockSeconds;
57 
58 			BCheckBox*		fWindowAlwaysOnTop;
59 			BCheckBox*		fWindowAutoRaise;
60 			BCheckBox*		fWindowAutoHide;
61 };
62 
63 #endif	// _PREFERENCES_WINDOW_H
64 
65