2003-06-13 07:53:41 +04:00
|
|
|
/*
|
2003-06-13 08:16:42 +04:00
|
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
2003-06-13 07:53:41 +04:00
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
|
|
|
#ifndef DEFAULT_MEDIA_THEME_H
|
|
|
|
#define DEFAULT_MEDIA_THEME_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <MediaTheme.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
|
|
class DefaultMediaTheme : public BMediaTheme {
|
|
|
|
public:
|
|
|
|
DefaultMediaTheme();
|
|
|
|
|
|
|
|
virtual BControl *MakeControlFor(BParameter *parameter);
|
|
|
|
|
|
|
|
static BControl *MakeViewFor(BParameter *parameter, const BRect *hintRect = NULL);
|
|
|
|
// this is also called by the BMediaTheme::MakeFallbackViewFor()
|
|
|
|
// method - that's why it's a static.
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual BView *MakeViewFor(BParameterWeb *web, const BRect *hintRect = NULL);
|
|
|
|
|
|
|
|
private:
|
2003-07-05 16:53:10 +04:00
|
|
|
BView *MakeViewFor(BParameterGroup &group, const BRect &hintRect);
|
|
|
|
BView *MakeSelfHostingViewFor(BParameter ¶meter, const BRect &hintRect);
|
2003-06-13 07:53:41 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
#endif /* DEFAULT_MEDIA_THEME_H */
|