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

ksim

KSim::LedLabel

KSim::LedLabel Class Reference

#include <led.h>

Inheritance diagram for KSim::LedLabel:

Inheritance graph
[legend]

List of all members.


Detailed Description

A custom widget that inheriits KSim::Progress.

this wiget provides two KSim::Led's and a label

Label widget with 2 leds

Author:
Robbie Ward <linuxphreak@gmx.co.uk>

Definition at line 110 of file led.h.


Public Slots

virtual void reset ()
void setOn (Led::Type type)
void setOff (Led::Type type)
void toggle (Led::Type type)

Public Member Functions

 LedLabel (int max, int type, const QString &label, QWidget *parent, const char *name=0, Qt::WFlags fl=0)
 LedLabel (int max, int type, QWidget *parent, const char *name=0, Qt::WFlags fl=0)
 LedLabel (int max, QWidget *parent, const char *name=0, Qt::WFlags fl=0)
virtual ~LedLabel ()
virtual void configureObject (bool reapaintWidget=true)
virtual QSize sizeHint () const

Protected Member Functions

void drawLeds ()
virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)

Constructor & Destructor Documentation

KSim::LedLabel::LedLabel ( int  max,
int  type,
const QString &  label,
QWidget *  parent,
const char *  name = 0,
Qt::WFlags  fl = 0 
)

Constructs a KSim::LedLabel.

Parameters:
type is the theme type
label is the default text to display
parent is the parent widget
See also:
KSim::ThemeLoader

Definition at line 189 of file led.cpp.

KSim::LedLabel::LedLabel ( int  max,
int  type,
QWidget *  parent,
const char *  name = 0,
Qt::WFlags  fl = 0 
)

Constructs a KSim::LedLabel.

Parameters:
type is the theme type
label is the default text to display
parent is the parent widget
See also:
KSim::ThemeLoader

Definition at line 197 of file led.cpp.

KSim::LedLabel::LedLabel ( int  max,
QWidget *  parent,
const char *  name = 0,
Qt::WFlags  fl = 0 
)

Constructs a KSim::LedLabel.

Parameters:
label is the default text to display
parent is the parent widget
See also:
KSim::ThemeLoader

Definition at line 204 of file led.cpp.

KSim::LedLabel::~LedLabel (  )  [virtual]

destructor for KSim::LedLabel.

Definition at line 212 of file led.cpp.


Member Function Documentation

void KSim::LedLabel::configureObject ( bool  reapaintWidget = true  )  [virtual]

reimplemented for internal reasons

Reimplemented from KSim::Progress.

Definition at line 217 of file led.cpp.

QSize KSim::LedLabel::sizeHint (  )  const [virtual]

reimplemented for internal reasons

Reimplemented from KSim::Progress.

Definition at line 240 of file led.cpp.

void KSim::LedLabel::reset (  )  [virtual, slot]

reimplemented for internal reasons

Reimplemented from KSim::Progress.

Definition at line 250 of file led.cpp.

void KSim::LedLabel::setOn ( Led::Type  type  )  [slot]

sets ledType on

Definition at line 257 of file led.cpp.

void KSim::LedLabel::setOff ( Led::Type  type  )  [slot]

sets ledType off

Definition at line 275 of file led.cpp.

void KSim::LedLabel::toggle ( Led::Type  type  )  [slot]

toggles the state of ledType if the led is on then it will be set off, if the led is off it will be set on.

Definition at line 293 of file led.cpp.

void KSim::LedLabel::drawLeds (  )  [protected]

Definition at line 303 of file led.cpp.

void KSim::LedLabel::paintEvent ( QPaintEvent *  ev  )  [protected, virtual]

reimplemented for internal reasons

Reimplemented from KSim::Progress.

Definition at line 309 of file led.cpp.

void KSim::LedLabel::resizeEvent ( QResizeEvent *  ev  )  [protected, virtual]

reimplemented for internal reasons

Reimplemented from KSim::Progress.

Definition at line 316 of file led.cpp.


The documentation for this class was generated from the following files:
  • led.h
  • led.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