xref: /haiku/headers/private/media/DefaultMediaTheme.h (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 /*
2 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the OpenBeOS License.
4 */
5 #ifndef DEFAULT_MEDIA_THEME_H
6 #define DEFAULT_MEDIA_THEME_H
7 
8 
9 #include <MediaTheme.h>
10 
11 
12 namespace BPrivate {
13 
14 class DefaultMediaTheme : public BMediaTheme {
15 	public:
16 		DefaultMediaTheme();
17 
18 		virtual	BControl *MakeControlFor(BParameter *parameter);
19 
20 		static BControl *MakeViewFor(BParameter *parameter, const BRect *hintRect = NULL);
21 			// this is also called by the BMediaTheme::MakeFallbackViewFor()
22 			// method - that's why it's a static.
23 
24 	protected:
25 		virtual	BView *MakeViewFor(BParameterWeb *web, const BRect *hintRect = NULL);
26 
27 	private:
28 		BView *MakeViewFor(BParameterGroup &group, const BRect &hintRect);
29 		BView *MakeSelfHostingViewFor(BParameter &parameter, const BRect &hintRect);
30 };
31 
32 }	// namespace BPrivate
33 
34 #endif	/* DEFAULT_MEDIA_THEME_H */
35