 |
Blamite Game Engine - Keystone
00367.02.08.23.1815.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Go to the documentation of this file.
6 #include <Strings/components/resources/resources.h>
17 #define DEFAULT_QT_STYLE "windowsvista"
52 std::string description;
54 std::string base_qt_style;
58 std::string stylesheet;
59 std::string content_dir;
61 std::vector<BlamEditorThemeVariant> variants;
62 std::map<std::string, BlamResourceGroup> resource_group_overrides;
93 std::string _qt_style, std::vector<BlamEditorThemeVariant> _variants, std::string _content_dir,
94 std::map<std::string, BlamResourceGroup> _resource_group_overrides);
170 std::string
GetResource(std::string group_id, std::string
id);
std::map< std::string, std::string > properties
The list of properties for this theme variant.
Definition: themes.h:37
std::string GetResource(std::string group_id, std::string id)
Retrieves a resource path from the theme.
Definition: BlamEditorTheme.cpp:170
std::string GetAuthor()
Retrieves the theme author.
Definition: BlamEditorTheme.cpp:140
Interface used to listen to theme change events.
Definition: KeystoneThemeChangeReceiver.h:10
KEYSTONE void UpdateActiveTheme(BlamEditorTheme *theme)
Updates the stored index of the current active theme.
Definition: themes.cpp:345
Namespace containing functions for the Keystone theme component.
Definition: themes.h:176
BlamEditorThemeType
Enumerator for all possible theme types.
Definition: themes.h:22
@ BuiltIn
Indicates the theme is a built-in theme, provided by Elaztek.
Definition: themes.h:24
bool ApplyVariant(std::string variant_name)
Applies a specified theme variant to the application.
Definition: BlamEditorTheme.cpp:81
Class representing a Blamite Editor Theme.
Definition: themes.h:47
std::string name
The name of this theme variant.
Definition: themes.h:36
#define KEYSTONE
Definition: themes.h:11
std::vector< BlamEditorThemeVariant > GetVariants()
Retrieves the list of theme variants.
Definition: BlamEditorTheme.cpp:165
Structure representing a theme variant.
Definition: themes.h:34
KEYSTONE bool ApplyTheme(std::string name)
Applies a new theme to the application.
Definition: themes.cpp:300
std::string GetVersion()
Retrieves the theme version.
Definition: BlamEditorTheme.cpp:150
KEYSTONE BlamEditorTheme * GetActiveTheme()
Retrieves the currently selected theme.
Definition: themes.cpp:335
KEYSTONE void RemoveReceiver(KeystoneThemeChangeReceiver *receiver)
Unregisters a theme change receiver.
Definition: themes.cpp:378
bool ApplyTheme()
Applies this theme to the application.
Definition: BlamEditorTheme.cpp:37
KEYSTONE bool LoadThemes()
Loads all themes from Qt and the keystone theme folders.
Definition: themes.cpp:259
std::string GetDescription()
Retrieves the theme description.
Definition: BlamEditorTheme.cpp:145
KEYSTONE BlamEditorTheme * GetTheme(std::string name)
Retrieves a theme.
Definition: themes.cpp:320
std::string GetName()
Retrieves the theme name.
Definition: BlamEditorTheme.cpp:135
BlamEditorThemeType GetThemeType()
Retrieves the theme type.
Definition: BlamEditorTheme.cpp:155
@ User
Indicates the theme is a custom theme added by the user.
Definition: themes.h:25
KEYSTONE void AddReceiver(KeystoneThemeChangeReceiver *receiver)
Registers a new theme change receiver, which will be notified whenever the active theme changes.
Definition: themes.cpp:370
BlamEditorTheme(std::string _name, std::string _author, std::string _desc, std::string _ver, BlamEditorThemeType type, std::string _content_dir)
Prepares a new Editor Theme.
Definition: BlamEditorTheme.cpp:25
std::string GetStylesheet()
Retrieves the theme stylesheet.
Definition: BlamEditorTheme.cpp:160
@ QtTheme
Indicates the theme is a default theme made available from Qt.
Definition: themes.h:26
KEYSTONE std::vector< BlamEditorTheme > * GetThemeList()
Retrieves the list of loaded themes.
Definition: themes.cpp:315