// Copyright 2014 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include #include #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, TOOLBAR_GRAPHICS, TOOLBAR_CONTROLLERS, TOOLBAR_HELP, MEMCARD, HOTKEYS, DOLPHIN_LOGO, DOLPHIN_LOGO_LARGE, BANNER_MISSING, NUM_ICONS }; private: static QVector m_platforms; static QVector m_regions; static QVector m_ratings; static QVector m_pixmaps; static QString GetImageFilename(QString name, QString dir); };