1/* 2 * Copyright 2008, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Fredrik Mod��en <fredrik@modeen.se> 7 */ 8#ifndef SETTINGS_WINDOW_H 9#define SETTINGS_WINDOW_H 10 11 12#include <Window.h> 13 14#include "Settings.h" 15 16 17class BCheckBox; 18class BOptionPopUp; 19class BRadioButton; 20 21 22class SettingsWindow : public BWindow { 23public: 24 SettingsWindow(BRect frame); 25 virtual ~SettingsWindow(); 26 27 virtual void Show(); 28 virtual bool QuitRequested(); 29 virtual void MessageReceived(BMessage* message); 30 31 void AdoptSettings(); 32 void ApplySettings(); 33 void Revert(); 34 bool IsRevertable() const; 35 36private: 37 mpSettings fSettings; 38 mpSettings fLastSettings; 39 40 BCheckBox* fAutostartCB; 41 BCheckBox* fCloseWindowMoviesCB; 42 BCheckBox* fCloseWindowSoundsCB; 43 BCheckBox* fLoopMoviesCB; 44 BCheckBox* fLoopSoundsCB; 45 46 BCheckBox* fUseOverlaysCB; 47 BCheckBox* fScaleBilinearCB; 48 BCheckBox* fScaleFullscreenControlsCB; 49 50 BOptionPopUp* fResumeOP; 51 BOptionPopUp* fSubtitleSizeOP; 52 BOptionPopUp* fSubtitlePlacementOP; 53 54 BRadioButton* fFullVolumeBGMoviesRB; 55 BRadioButton* fHalfVolumeBGMoviesRB; 56 BRadioButton* fMutedVolumeBGMoviesRB; 57 58 BButton* fRevertB; 59}; 60 61 62#endif // SETTINGS_WINDOW_H 63