xref: /haiku/src/apps/mediaplayer/settings/SettingsWindow.h (revision 3248de3de47011137e0c667a7247dd424c827bd7)
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*			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