Elaztek Developer Hub
Blamite Game Engine - Keystone  00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
themes.h File Reference
#include <string>
#include <vector>
#include <map>
#include <Strings/components/resources/resources.h>
+ Include dependency graph for themes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BlamEditorThemeVariant
 Structure representing a theme variant. More...
 
class  BlamEditorTheme
 Class representing a Blamite Editor Theme. More...
 

Namespaces

 BlamKeystone
 Namespace for anything within the Keystone library.
 
 BlamKeystone::Themes
 Namespace containing functions for the Keystone theme component.
 

Macros

#define KEYSTONE
 
#define DEFAULT_QT_STYLE   "windowsvista"
 The default Qt style. More...
 
#define THEME_RESOURCE(group_id, id)   BlamKeystone::Themes::GetActiveTheme()->GetResource(group_id, id)
 

Enumerations

enum  BlamEditorThemeType { BuiltIn, User, QtTheme }
 Enumerator for all possible theme types. More...
 

Functions

KEYSTONE bool BlamKeystone::Themes::LoadThemes ()
 Loads all themes from Qt and the keystone theme folders. More...
 
KEYSTONE bool BlamKeystone::Themes::ApplyTheme (std::string name)
 Applies a new theme to the application. More...
 
KEYSTONE std::vector< BlamEditorTheme > * BlamKeystone::Themes::GetThemeList ()
 Retrieves the list of loaded themes. More...
 
KEYSTONE BlamEditorThemeBlamKeystone::Themes::GetTheme (std::string name)
 Retrieves a theme. More...
 
KEYSTONE BlamEditorThemeBlamKeystone::Themes::GetActiveTheme ()
 Retrieves the currently selected theme. More...
 
KEYSTONE void BlamKeystone::Themes::UpdateActiveTheme (BlamEditorTheme *theme)
 Updates the stored index of the current active theme. More...
 

Macro Definition Documentation

◆ DEFAULT_QT_STYLE

#define DEFAULT_QT_STYLE   "windowsvista"

The default Qt style.

Used in any themes which don't specify a base style.

◆ KEYSTONE

#define KEYSTONE

◆ THEME_RESOURCE

#define THEME_RESOURCE (   group_id,
  id 
)    BlamKeystone::Themes::GetActiveTheme()->GetResource(group_id, id)

Enumeration Type Documentation

◆ BlamEditorThemeType

Enumerator for all possible theme types.

Enumerator
BuiltIn 

Indicates the theme is a built-in theme, provided by Elaztek.

User 

Indicates the theme is a custom theme added by the user.

QtTheme 

Indicates the theme is a default theme made available from Qt.