#include <thememanager.h>
Inheritance diagram for Themable:


Public Member Functions | |
| Themable () | |
| Default constructor for the interface. | |
| Themable (QString id, ThemeManager *thememanager) | |
| Constructor for the interface given the theme item unique ID string and a reference to the theme manager. | |
| virtual | ~Themable () |
| Destructor. | |
| QString | id () |
| Retrieve the ID of the object. | |
| ThemeManager * | thememanager () |
| Retrieve the associated theme manager of this object. | |
| double | getScale () |
| Retrieve the current scale (maximum extension) of the theme. | |
| void | setScale (double scale) |
| Set teh current scale for the object. | |
| virtual void | changeTheme ()=0 |
| Main theme notification method. | |
Doing so enables the items to be refreshed by the theme manager and allows them to retrieve theme data from a configuration theme file.
Definition at line 39 of file thememanager.h.
|
|
Default constructor for the interface.
Definition at line 418 of file thememanager.cpp. |
|
||||||||||||
|
Constructor for the interface given the theme item unique ID string and a reference to the theme manager. The ID string is used to refer to the group in the configuration file.
Definition at line 427 of file thememanager.cpp. References ThemeManager::registerTheme(), and thememanager(). Here is the call graph for this function: ![]() |
|
|
Destructor.
Definition at line 438 of file thememanager.cpp. References ThemeManager::unregisterTheme(). Here is the call graph for this function: ![]() |
|
|
Main theme notification method. This method is called in the Themable object to indicate a theme change. The object needs to overwrite this and respond with a properly scaled redraw. Implemented in CardSprite, DisplayIntro, DisplayTwo, PixmapSprite, ScoreSprite, and TextSprite. Referenced by ThemeManager::rescale(), and ThemeManager::updateTheme(). |
|
|
Retrieve the current scale (maximum extension) of the theme.
Definition at line 71 of file thememanager.h. Referenced by CardSprite::calcTargetAndSpeed(), PixmapSprite::changeTheme(), CardSprite::changeTheme(), CardSprite::deltaMove(), PixmapSprite::setPosition(), and CardSprite::setPosition(). |
|
|
Retrieve the ID of the object.
Definition at line 61 of file thememanager.h. |
|
|
Set teh current scale for the object.
Definition at line 76 of file thememanager.h. Referenced by TextSprite::changeTheme(), PixmapSprite::changeTheme(), and CardSprite::changeTheme(). |
|
|
Retrieve the associated theme manager of this object.
Definition at line 66 of file thememanager.h. Referenced by CardSprite::calcFrame(), TextSprite::changeTheme(), ScoreSprite::changeTheme(), PixmapSprite::changeTheme(), DisplayTwo::changeTheme(), DisplayIntro::changeTheme(), CardSprite::changeTheme(), DisplayTwo::convertMousePress(), DisplayTwo::deal(), PixmapSprite::getDoubleValue(), DisplayIntro::loop(), DisplayTwo::play(), DisplayTwo::remove(), TextSprite::setText(), and Themable(). |
1.4.6