2017-07-25 21:34:27 +02:00
|
|
|
#ifndef _SKIN_FACTORY_H_
|
|
|
|
#define _SKIN_FACTORY_H_
|
|
|
|
|
|
|
|
#include <QskSkinFactory.h>
|
|
|
|
|
|
|
|
class SkinFactory : public QskSkinFactory
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-07-26 17:54:25 +02:00
|
|
|
enum GraphicRoles
|
|
|
|
{
|
|
|
|
// to be visisble on a button
|
|
|
|
Button,
|
|
|
|
|
|
|
|
// to be visisble on header/footer
|
|
|
|
Indicator,
|
|
|
|
|
|
|
|
// in contrast to the background pixmap
|
|
|
|
Vehicle
|
|
|
|
};
|
|
|
|
|
2017-07-25 21:34:27 +02:00
|
|
|
virtual QStringList skinNames() const override;
|
|
|
|
virtual QskSkin* createSkin( const QString& skinName ) override;
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void rotateSkin();
|
|
|
|
void toggleScheme();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|