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