Files
haiku-beta6/headers/private/media/DefaultMediaTheme.h
T

37 lines
926 B
C++
Raw Normal View History

2007-10-15 14:09:14 +00:00
/*
* Copyright 2003-2007, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef DEFAULT_MEDIA_THEME_H
#define DEFAULT_MEDIA_THEME_H
#include <MediaTheme.h>
2007-10-15 14:09:14 +00:00
class BParameterGroup;
namespace BPrivate {
class DefaultMediaTheme : public BMediaTheme {
public:
DefaultMediaTheme();
2007-10-15 14:09:14 +00:00
virtual BControl* MakeControlFor(BParameter* parameter);
2007-10-15 14:09:14 +00:00
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:
2007-10-15 14:09:14 +00:00
virtual BView* MakeViewFor(BParameterWeb* web, const BRect* hintRect = NULL);
private:
2007-10-15 14:09:14 +00:00
BView* MakeViewFor(BParameterGroup& group, const BRect* hintRect);
BView* MakeSelfHostingViewFor(BParameter& parameter, const BRect* hintRect);
};
} // namespace BPrivate
#endif /* DEFAULT_MEDIA_THEME_H */