Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Ui::OLedBox Class Reference

#include </home/clem/local/src/opie/libopie2/opieui/oledbox.h>

List of all members.

Public Slots

void toggle ()
void setOn (bool on)
void setColor (const QColor &col)

Signals

void toggled (bool)

Public Member Functions

 OLedBox (const QColor &col=red, QWidget *parent=0, const char *name=0)
virtual ~OLedBox ()
QColor color () const
bool isOn () const
void setReadOnly (bool R)
bool readOnly (void) const
virtual QSize sizeHint () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)
virtual void resizeEvent (QResizeEvent *e)
virtual void mousePressEvent (QMouseEvent *e)

Private Member Functions

void drawLed (QPixmap *, const QColor &col)

Private Attributes

QPixmap * m_pix [2]
QColor m_color
bool m_on
bool m_readonly

Static Private Attributes

static QPixmap * s_border_pix = 0


Constructor & Destructor Documentation

Opie::Ui::OLedBox::OLedBox const QColor &  col = red,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 73 of file oledbox.cpp.

References Opie::Ui::ledborder_xpm, m_color, m_on, m_pix, m_readonly, and s_border_pix.

Opie::Ui::OLedBox::~OLedBox  )  [virtual]
 

Definition at line 87 of file oledbox.cpp.

References m_pix.


Member Function Documentation

QColor Opie::Ui::OLedBox::color  )  const
 

Definition at line 103 of file oledbox.cpp.

References m_color.

Referenced by drawLed().

void Opie::Ui::OLedBox::drawLed QPixmap *  ,
const QColor &  col
[private]
 

Definition at line 169 of file oledbox.cpp.

References color(), Qt::color1, end, height, Qt::NoPen, pos, s_border_pix, and width.

Referenced by paintEvent().

bool Opie::Ui::OLedBox::isOn  )  const
 

Definition at line 98 of file oledbox.cpp.

References m_on.

Referenced by toggle().

void Opie::Ui::OLedBox::mousePressEvent QMouseEvent *  e  )  [protected, virtual]
 

Definition at line 133 of file oledbox.cpp.

References m_on, m_readonly, and toggled().

void Opie::Ui::OLedBox::paintEvent QPaintEvent *  e  )  [protected, virtual]
 

Definition at line 153 of file oledbox.cpp.

References drawLed(), m_color, m_on, m_pix, p, and size.

bool Opie::Ui::OLedBox::readOnly void   )  const [inline]
 

Definition at line 53 of file oledbox.h.

References m_readonly.

void Opie::Ui::OLedBox::resizeEvent QResizeEvent *  e  )  [protected, virtual]
 

Definition at line 144 of file oledbox.cpp.

References m_pix.

void Opie::Ui::OLedBox::setColor const QColor &  col  )  [slot]
 

Definition at line 121 of file oledbox.cpp.

References m_color, and m_pix.

Referenced by NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_ShowNode(), and NetworkSettings::SLOT_Up().

void Opie::Ui::OLedBox::setOn bool  on  )  [slot]
 

Definition at line 108 of file oledbox.cpp.

References m_on.

Referenced by Opietooth2::OTScan::SLOT_Show(), NetworkSettings::SLOT_ShowNode(), NetworkSettings::SLOT_Up(), and toggle().

void Opie::Ui::OLedBox::setReadOnly bool  R  )  [inline]
 

Definition at line 52 of file oledbox.h.

References m_readonly.

QSize Opie::Ui::OLedBox::sizeHint  )  const [virtual]
 

Definition at line 93 of file oledbox.cpp.

void Opie::Ui::OLedBox::toggle  )  [slot]
 

Definition at line 116 of file oledbox.cpp.

References isOn(), and setOn().

void Opie::Ui::OLedBox::toggled bool   )  [signal]
 

Referenced by mousePressEvent().


Member Data Documentation

QColor Opie::Ui::OLedBox::m_color [private]
 

Definition at line 77 of file oledbox.h.

Referenced by color(), OLedBox(), paintEvent(), and setColor().

bool Opie::Ui::OLedBox::m_on [private]
 

Definition at line 78 of file oledbox.h.

Referenced by isOn(), mousePressEvent(), OLedBox(), paintEvent(), and setOn().

QPixmap* Opie::Ui::OLedBox::m_pix[2] [private]
 

Definition at line 75 of file oledbox.h.

Referenced by OLedBox(), paintEvent(), resizeEvent(), setColor(), and ~OLedBox().

bool Opie::Ui::OLedBox::m_readonly [private]
 

Definition at line 79 of file oledbox.h.

Referenced by mousePressEvent(), OLedBox(), readOnly(), and setReadOnly().

QPixmap * Opie::Ui::OLedBox::s_border_pix = 0 [static, private]
 

Definition at line 71 of file oledbox.cpp.

Referenced by drawLed(), and OLedBox().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:56 2005 for OPIE by  doxygen 1.4.2