xref: /haiku/src/apps/deskbar/PreferencesWindow.h (revision a906d0a031e721e2f2ec9d95274103e74a3a774f)
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 
23 
24 class PreferencesWindow : public BWindow
25 {
26 public:
27 							PreferencesWindow(BRect frame);
28 							~PreferencesWindow();
29 
30 	virtual	void			MessageReceived(BMessage* message);
31 	virtual	void			WindowActivated(bool active);
32 
33 private:
34 			void			_UpdateRecentCounts();
35 			void			_EnableDisableDependentItems();
36 
37 			BBox*			fMenuBox;
38 			BBox*			fAppsBox;
39 			BBox*			fClockBox;
40 			BBox*			fWindowBox;
41 
42 			BCheckBox*		fMenuRecentDocuments;
43 			BCheckBox*		fMenuRecentApplications;
44 			BCheckBox*		fMenuRecentFolders;
45 
46 			BTextControl*	fMenuRecentDocumentCount;
47 			BTextControl*	fMenuRecentApplicationCount;
48 			BTextControl*	fMenuRecentFolderCount;
49 
50 			BCheckBox*		fAppsSort;
51 			BCheckBox*		fAppsSortTrackerFirst;
52 			BCheckBox*		fAppsShowExpanders;
53 			BCheckBox*		fAppsExpandNew;
54 
55 			BCheckBox*		fClockSeconds;
56 
57 			BCheckBox*		fWindowAlwaysOnTop;
58 			BCheckBox*		fWindowAutoRaise;
59 };
60 
61 #endif	// _PREFERENCES_WINDOW_H
62 
63