2014-10-18 15:07:17 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2014-10-18 15:07:17 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QPixmap>
|
|
|
|
#include <QVector>
|
|
|
|
|
|
|
|
#include "DiscIO/Volume.h"
|
|
|
|
|
|
|
|
class Resources
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void Init();
|
|
|
|
static void UpdatePixmaps();
|
|
|
|
|
|
|
|
static QPixmap& GetPlatformPixmap(int console);
|
|
|
|
static QPixmap& GetRegionPixmap(DiscIO::IVolume::ECountry region);
|
|
|
|
static QPixmap& GetRatingPixmap(int rating);
|
|
|
|
static QPixmap& GetPixmap(int id);
|
|
|
|
static QIcon GetIcon(int id);
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
TOOLBAR_OPEN = 0,
|
|
|
|
TOOLBAR_REFRESH,
|
|
|
|
TOOLBAR_BROWSE,
|
|
|
|
TOOLBAR_PLAY,
|
|
|
|
TOOLBAR_STOP,
|
|
|
|
TOOLBAR_PAUSE,
|
|
|
|
TOOLBAR_FULLSCREEN,
|
|
|
|
TOOLBAR_SCREENSHOT,
|
|
|
|
TOOLBAR_CONFIGURE,
|
2015-09-11 14:13:18 +00:00
|
|
|
TOOLBAR_GRAPHICS,
|
|
|
|
TOOLBAR_CONTROLLERS,
|
2014-10-18 15:07:17 +00:00
|
|
|
TOOLBAR_HELP,
|
|
|
|
MEMCARD,
|
|
|
|
HOTKEYS,
|
|
|
|
DOLPHIN_LOGO,
|
2015-09-11 03:02:47 +00:00
|
|
|
DOLPHIN_LOGO_LARGE,
|
2014-10-18 15:07:17 +00:00
|
|
|
BANNER_MISSING,
|
|
|
|
NUM_ICONS
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
static QVector<QPixmap> m_platforms;
|
|
|
|
static QVector<QPixmap> m_regions;
|
|
|
|
static QVector<QPixmap> m_ratings;
|
|
|
|
static QVector<QPixmap> m_pixmaps;
|
2014-10-27 17:11:55 +00:00
|
|
|
|
2015-11-26 04:05:43 +00:00
|
|
|
static QString GetImageFilename(const char* name, QString dir);
|
2014-10-18 15:07:17 +00:00
|
|
|
};
|