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 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 31 BCheckBox* fSwapEnabledCheckBox; 32 BSlider* fSizeSlider; 33 BButton* fDefaultsButton; 34 BButton* fRevertButton; 35 BStringView* fWarningStringView; 36 37 Settings fSettings; 38 }; 39 40 #endif /* SETTINGS_WINDOW_H */ 41