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

BrightnessApplet Class Reference

#include </home/clem/local/src/opie/noncore/applets/brightnessapplet/brightnessapplet.h>

Inheritance diagram for BrightnessApplet:

Inheritance graph
[legend]
Collaboration diagram for BrightnessApplet:

Collaboration graph
[legend]
List of all members.

Public Slots

void sliderMoved (int value)

Public Member Functions

 BrightnessApplet (QWidget *parent=0, const char *name=0)
 ~BrightnessApplet ()
void writeSystemBrightness (int brightness)
int readSystemBrightness ()
int calcBrightnessValue ()

Static Public Member Functions

static int position ()

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void mousePressEvent (QMouseEvent *)

Private Attributes

BrightnessAppletControl_control
QPixmap _pixmap

Constructor & Destructor Documentation

BrightnessApplet::BrightnessApplet QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 149 of file brightnessapplet.cpp.

References _control, _pixmap, Opie::Core::OResource::loadPixmap(), Opie::Core::OResource::SmallIcon, and AppLnk::smallIconSize().

BrightnessApplet::~BrightnessApplet  ) 
 

Definition at line 192 of file brightnessapplet.cpp.


Member Function Documentation

int BrightnessApplet::calcBrightnessValue  ) 
 

Definition at line 210 of file brightnessapplet.cpp.

References _control, BrightnessAppletControl::slider, and v.

Referenced by BrightnessAppletControl::hideEvent(), and sliderMoved().

void BrightnessApplet::mousePressEvent QMouseEvent *   )  [protected, virtual]
 

Definition at line 228 of file brightnessapplet.cpp.

References _control, Opie::Ui::OTaskbarApplet::popup(), readSystemBrightness(), BrightnessAppletControl::slider, sliderMoved(), and v.

void BrightnessApplet::paintEvent QPaintEvent *   )  [protected, virtual]
 

Definition at line 203 of file brightnessapplet.cpp.

References _pixmap, and p.

int BrightnessApplet::position  )  [static]
 

Definition at line 197 of file brightnessapplet.cpp.

int BrightnessApplet::readSystemBrightness  ) 
 

Definition at line 175 of file brightnessapplet.cpp.

References PowerStatus::acStatus(), odebug, oendl, PowerStatus::Online, Config::readNumEntry(), PowerStatusManager::readStatus(), and Config::setGroup().

Referenced by mousePressEvent().

void BrightnessApplet::sliderMoved int  value  )  [slot]
 

Definition at line 217 of file brightnessapplet.cpp.

References calcBrightnessValue().

Referenced by mousePressEvent().

void BrightnessApplet::writeSystemBrightness int  brightness  ) 
 

Definition at line 159 of file brightnessapplet.cpp.

References PowerStatus::acStatus(), odebug, oendl, PowerStatus::Online, PowerStatusManager::readStatus(), Config::setGroup(), Config::write(), and Config::writeEntry().

Referenced by BrightnessAppletControl::hideEvent().


Member Data Documentation

BrightnessAppletControl* BrightnessApplet::_control [private]
 

Definition at line 76 of file brightnessapplet.h.

Referenced by BrightnessApplet(), calcBrightnessValue(), and mousePressEvent().

QPixmap BrightnessApplet::_pixmap [private]
 

Definition at line 77 of file brightnessapplet.h.

Referenced by BrightnessApplet(), and paintEvent().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:27:30 2005 for OPIE by  doxygen 1.4.2