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 ¶meter, const BRect &hintRect); 30 }; 31 32 } // namespace BPrivate 33 34 #endif /* DEFAULT_MEDIA_THEME_H */ 35