LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
IColorThemeManager Class Referenceabstract

Proxy class to the color theme management engine. More...

#include "icolorthememanager.h"

Public Member Functions

virtual ~IColorThemeManager ()
 
virtual QColor GetQMLColor (const QString &section, const QString &key)=0
 Returns the color for the given QML section and key. More...
 
virtual QObject * GetQObject ()=0
 Returns the manager as a QObject. More...
 

Protected Member Functions

virtual void themeChanged ()=0
 Emitted after the color theme changes. More...
 

Detailed Description

Proxy class to the color theme management engine.

See also
LC::Util::ColorThemeProxy.

Definition at line 17 of file icolorthememanager.h.

Constructor & Destructor Documentation

◆ ~IColorThemeManager()

virtual IColorThemeManager::~IColorThemeManager ( )
inlinevirtual

Definition at line 20 of file icolorthememanager.h.

Member Function Documentation

◆ GetQMLColor()

virtual QColor IColorThemeManager::GetQMLColor ( const QString &  section,
const QString &  key 
)
pure virtual

Returns the color for the given QML section and key.

See the LC::Util::ColorThemeProxy for the list of available color sections and their keys. See the documentation for that class for the list of possible sections and keys (they are separated by the _ sign).

Parameters
[in]sectionThe color section like ToolButton or Panel.
[in]keyThe key in the section like TopColor in a ToolButton.
Returns
The given color for the section and key, or an invalid color if the combination is invalid.

◆ GetQObject()

virtual QObject* IColorThemeManager::GetQObject ( )
pure virtual

Returns the manager as a QObject.

Use this function to connect to the themeChanged() signal.

See also
themeChanged()

◆ themeChanged()

virtual void IColorThemeManager::themeChanged ( )
protectedpure virtual

Emitted after the color theme changes.

Use the GetQObject() method to get a QObject that emits this signal.

See also
GetQObject()

The documentation for this class was generated from the following file: