ksim
KSim::Base Class Reference
#include <common.h>

Detailed Description
class that all widgets (library dir only) HAVE to inherit if they want to change items on ksim configuration reloadany class that inherits this must re-implement the configureObject() function.
example:
include <qwidget.h> include <ksim/common.h>
class Test : public QWidget, virtual public KSim::Base { public: Test(QWidget *parent, const char *name) : QWidget(parent, name) { } ~Test() {}
void configureObject(bool repaintWidget) { // Re-Create view code here } };base class for widgets
Definition at line 69 of file common.h.
Public Member Functions | |
| Base () | |
| Base (int type) | |
| virtual | ~Base () |
| virtual void | configureObject (bool=true)=0 |
| bool | isThemeConfigOnly () const |
| void | setType (int type) |
| int | type () const |
| void | setConfigString (const QString &string) |
| const QString & | configString () const |
Protected Member Functions | |
| virtual void | extraTypeCall () |
| KSim::ThemeLoader & | themeLoader () const |
| void | setThemeConfigOnly (bool) |
Constructor & Destructor Documentation
| KSim::Base::Base | ( | ) |
Definition at line 35 of file common.cpp.
| KSim::Base::Base | ( | int | type | ) |
Definition at line 44 of file common.cpp.
| KSim::Base::~Base | ( | ) | [virtual] |
Definition at line 53 of file common.cpp.
Member Function Documentation
| virtual void KSim::Base::configureObject | ( | bool | = true |
) | [pure virtual] |
Reimplement this to change theme images/locations etc.
Implemented in KSim::Frame, KSim::Chart, KSim::Label, KSim::LedLabel, KSim::Progress, and MailLabel.
| bool KSim::Base::isThemeConfigOnly | ( | ) | const |
returns true if configureObject has been setup to contain only theme configuration
- See also:
- setThemeConfigOnly
Definition at line 60 of file common.cpp.
| void KSim::Base::setType | ( | int | type | ) |
| int KSim::Base::type | ( | ) | const |
| void KSim::Base::setConfigString | ( | const QString & | string | ) |
Set the config entry key to look for when reading gkrellmrc.
Definition at line 79 of file common.cpp.
| const QString & KSim::Base::configString | ( | ) | const |
- Returns:
- the config entry to look for when reading theme files
Definition at line 84 of file common.cpp.
| void KSim::Base::extraTypeCall | ( | ) | [protected, virtual] |
reimplement this function if you want setType() to call extra information
Reimplemented in KSim::Chart, and KSim::Label.
Definition at line 89 of file common.cpp.
| KSim::ThemeLoader & KSim::Base::themeLoader | ( | ) | const [protected] |
| void KSim::Base::setThemeConfigOnly | ( | bool | value | ) | [protected] |
set this to false if you want KSim to call your KSim::Base configureObject() when KSim's configuration has changed even if the theme settings are the same.
The default is true
Definition at line 99 of file common.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference