• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

ksim

KSim::Base

KSim::Base Class Reference

#include <common.h>

Inheritance diagram for KSim::Base:

Inheritance graph
[legend]

List of all members.


Detailed Description

class that all widgets (library dir only) HAVE to inherit if they want to change items on ksim configuration reload

any 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
Author:
Robbie Ward <linuxphreak@gmx.co.uk>

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  ) 

sets the theme type

Definition at line 65 of file common.cpp.

int KSim::Base::type (  )  const

Returns:
the theme type, eg host, mem, swap etc

Definition at line 74 of file common.cpp.

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]

Returns:
the current KSim::ThemeLoader instance

Definition at line 93 of file common.cpp.

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:
  • common.h
  • common.cpp

ksim

Skip menu "ksim"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal