xref: /haiku/src/preferences/virtualmemory/SettingsWindow.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 /*
2  * Copyright 2005, 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 
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 		void GetSwapFileLimits(off_t& minSize, off_t& maxSize);
30 
31 		BCheckBox*		fSwapEnabledCheckBox;
32 		BSlider*		fSizeSlider;
33 		BButton*		fRevertButton;
34 		BStringView*	fWarningStringView;
35 
36 		Settings		fSettings;
37 };
38 
39 #endif	/* SETTINGS_WINDOW_H */
40