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