xref: /haiku/src/preferences/virtualmemory/SettingsWindow.h (revision 7a74a5df454197933bc6e80a542102362ee98703)
1 /*
2  * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef SETTINGS_WINDOW_H
6 #define SETTINGS_WINDOW_H
7 
8 
9 #include <Window.h>
10 
11 #include "Settings.h"
12 
13 class BStringView;
14 class BCheckBox;
15 class BSlider;
16 class BButton;
17 class BMenuField;
18 
19 class SettingsWindow : public BWindow {
20 	public:
21 		SettingsWindow();
22 		virtual ~SettingsWindow();
23 
24 		virtual bool QuitRequested();
25 		virtual void MessageReceived(BMessage* message);
26 
27 	private:
28 		void _Update();
29 		status_t _GetSwapFileLimits(off_t& minSize, off_t& maxSize);
30 		void _SetSwapDefaults();
31 
32 		BCheckBox*		fSwapEnabledCheckBox;
33 		BSlider*		fSizeSlider;
34 		BButton*		fDefaultsButton;
35 		BButton*		fRevertButton;
36 		BStringView*	fWarningStringView;
37 		BMenuField*		fVolumeMenuField;
38 		Settings		fSettings;
39 
40 		bool 			fLocked;
41 };
42 
43 #endif	/* SETTINGS_WINDOW_H */
44