xref: /haiku/src/apps/deskbar/PreferencesWindow.h (revision 7a74a5df454197933bc6e80a542102362ee98703)
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 <Window.h>
10 
11 
12 const uint32 kConfigShow			= 'show';
13 const uint32 kConfigClose			= 'canc';
14 const uint32 kUpdateRecentCounts	= 'upct';
15 const uint32 kEditMenuInTracker		= 'mtrk';
16 
17 const uint32 kTrackerFirst			= 'TkFt';
18 const uint32 kSortRunningApps		= 'SAps';
19 const uint32 kSuperExpando			= 'SprE';
20 const uint32 kExpandNewTeams		= 'ExTm';
21 const uint32 kHideLabels			= 'hLbs';
22 const uint32 kResizeTeamIcons		= 'RTIs';
23 const uint32 kAutoRaise				= 'AtRs';
24 const uint32 kAutoHide				= 'AtHd';
25 
26 const uint32 kShowHideTime			= 'ShTm';
27 const uint32 kShowSeconds			= 'SwSc';
28 const uint32 kShowDayOfWeek			= 'SwDw';
29 
30 
31 class BBox;
32 class BButton;
33 class BCheckBox;
34 class BRadioButton;
35 class BSlider;
36 class BStringView;
37 class BTextControl;
38 
39 class PreferencesWindow : public BWindow
40 {
41 public:
42 							PreferencesWindow(BRect frame);
43 							~PreferencesWindow();
44 
45 		virtual	void		MessageReceived(BMessage* message);
46 		virtual	void		WindowActivated(bool active);
47 
48 				void		UpdateRecentCounts();
49 				void		EnableDisableDependentItems();
50 
51 private:
52 			BBox*			fMenuBox;
53 			BBox*			fAppsBox;
54 			BBox*			fClockBox;
55 			BBox*			fWindowBox;
56 
57 			BCheckBox*		fMenuRecentDocuments;
58 			BCheckBox*		fMenuRecentApplications;
59 			BCheckBox*		fMenuRecentFolders;
60 
61 			BTextControl*	fMenuRecentDocumentCount;
62 			BTextControl*	fMenuRecentApplicationCount;
63 			BTextControl*	fMenuRecentFolderCount;
64 
65 			BCheckBox*		fAppsSort;
66 			BCheckBox*		fAppsSortTrackerFirst;
67 			BCheckBox*		fAppsShowExpanders;
68 			BCheckBox*		fAppsExpandNew;
69 			BCheckBox*		fAppsHideLabels;
70 			BSlider*		fAppsIconSizeSlider;
71 
72 			BCheckBox*		fWindowAlwaysOnTop;
73 			BCheckBox*		fWindowAutoRaise;
74 			BCheckBox*		fWindowAutoHide;
75 
76 			BCheckBox*		fShowSeconds;
77 			BCheckBox*		fShowDayOfWeek;
78 };
79 
80 
81 #endif	/* _PREFERENCES_WINDOW_H */
82