forked from len0rd/rockbox
Theme Editor: Began in implementing tag rendering, %X tag now recognized
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27043 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
08d09e678f
commit
ac9287bdb5
11 changed files with 177 additions and 18 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "projectmodel.h"
|
||||
#include "rbrenderinfo.h"
|
||||
#include "rbimage.h"
|
||||
|
||||
class RBViewport;
|
||||
|
||||
|
@ -50,6 +51,14 @@ public:
|
|||
}
|
||||
void showViewport(QString name);
|
||||
|
||||
void loadImage(QString name, RBImage* image)
|
||||
{
|
||||
images.insert(name, image);
|
||||
}
|
||||
RBImage* getImage(QString name){ return images.value(name, 0); }
|
||||
|
||||
void setBackdrop(QString filename);
|
||||
|
||||
static QColor stringToColor(QString str, QColor fallback);
|
||||
|
||||
|
||||
|
@ -59,10 +68,13 @@ private:
|
|||
QColor bgColor;
|
||||
QColor fgColor;
|
||||
QPixmap* backdrop;
|
||||
QString themeBase;
|
||||
|
||||
ProjectModel* project;
|
||||
|
||||
QMap<QString, RBViewport*> namedViewports;
|
||||
QMap<QString, RBImage*> images;
|
||||
QMap<QString, QString>* settings;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue