xref: /haiku/src/apps/mediaplayer/settings/SettingsWindow.h (revision b671e9bbdbd10268a042b4f4cc4317ccd03d105e)
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 
9 #ifndef _SETTINGS_WINDOW_H
10 #define _SETTINGS_WINDOW_H
11 
12 #include <Window.h>
13 #include <CheckBox.h>
14 #include <RadioButton.h>
15 
16 #include "Settings.h"
17 
18 class SettingsWindow : public BWindow {
19 public:
20 								SettingsWindow(BRect frame);
21 		virtual					~SettingsWindow();
22 
23 		virtual	void			Show();
24 		virtual	bool			QuitRequested();
25 		virtual	void			MessageReceived(BMessage* message);
26 
27 		void					AdoptSettings();
28 		void					ApplySettings();
29 		void					Revert();
30 		bool					IsRevertable() const;
31 
32 private:
33 		mpSettings 				fSettings;
34 		mpSettings 				fLastSettings;
35 
36 		BCheckBox* 				fAutostartCB;
37 		BCheckBox*				fCloseWindowMoviesCB;
38 		BCheckBox*				fCloseWindowSoundsCB;
39 		BCheckBox*				fLoopMoviesCB;
40 		BCheckBox*				fLoopSoundsCB;
41 
42 		BCheckBox*				fUseOverlaysCB;
43 		BCheckBox*				fScaleBilinearCB;
44 
45 		BRadioButton*			fFullVolumeBGMoviesRB;
46 		BRadioButton*			fHalfVolumeBGMoviesRB;
47 		BRadioButton*			fMutedVolumeBGMoviesRB;
48 
49 		BButton*				fRevertB;
50 };
51 
52 #endif
53