xref: /haiku/src/apps/mediaplayer/settings/SettingsWindow.h (revision 4466b89c65970de4c7236ac87faa2bee4589f413)
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 
17 class BCheckBox;
18 class BOptionPopUp;
19 class BRadioButton;
20 
21 
22 class SettingsWindow : public BWindow {
23 public:
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 
36 private:
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*			fSubtitleSizeOP;
51 		BOptionPopUp*			fSubtitlePlacementOP;
52 
53 		BRadioButton*			fFullVolumeBGMoviesRB;
54 		BRadioButton*			fHalfVolumeBGMoviesRB;
55 		BRadioButton*			fMutedVolumeBGMoviesRB;
56 
57 		BButton*				fRevertB;
58 };
59 
60 
61 #endif	// SETTINGS_WINDOW_H
62