2017-12-07 14:56:12 +01:00
|
|
|
#ifndef SKIN_FACTORY_H
|
|
|
|
#define SKIN_FACTORY_H
|
2017-07-25 21:34:27 +02:00
|
|
|
|
|
|
|
#include <QskSkinFactory.h>
|
|
|
|
|
|
|
|
class SkinFactory : public QskSkinFactory
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2017-07-26 17:54:25 +02:00
|
|
|
enum GraphicRoles
|
|
|
|
{
|
2019-02-26 21:49:39 +01:00
|
|
|
// to be visible on a button
|
2017-07-26 17:54:25 +02:00
|
|
|
Button,
|
|
|
|
|
2019-02-26 21:49:39 +01:00
|
|
|
// to be visible on header/footer
|
2017-07-26 17:54:25 +02:00
|
|
|
Indicator,
|
|
|
|
|
|
|
|
// in contrast to the background pixmap
|
|
|
|
Vehicle
|
|
|
|
};
|
|
|
|
|
2018-07-31 17:32:25 +02:00
|
|
|
QStringList skinNames() const override;
|
|
|
|
QskSkin* createSkin( const QString& skinName ) override;
|
2017-07-25 21:34:27 +02:00
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
public Q_SLOTS:
|
2017-07-25 21:34:27 +02:00
|
|
|
void rotateSkin();
|
|
|
|
void toggleScheme();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|