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

MGraph Class Reference

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

Collaboration diagram for MGraph:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MGraph (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~MGraph ()
void addValue (int value, bool followMax=true)
void setMax (int value)
void setMin (int value)
virtual void setFrameStyle (int style)

Protected Member Functions

virtual void drawContents (QPainter *)

Protected Attributes

int min
int max
ValueListvalues
QPixmap * background

Constructor & Destructor Documentation

MGraph::MGraph QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 27 of file mgraph.cpp.

References background, and values.

MGraph::~MGraph  ) 
 

Definition at line 66 of file mgraph.cpp.

References background, and values.


Member Function Documentation

void MGraph::addValue int  value,
bool  followMax = true
 

Definition at line 40 of file mgraph.cpp.

References QValueList< T >::append(), background, QValueList< T >::begin(), QValueList< T >::count(), max, QValueList< T >::remove(), setMax(), and values.

Referenced by WirelessApplet::updatePopupWindow().

void MGraph::drawContents QPainter *   )  [protected, virtual]
 

Definition at line 50 of file mgraph.cpp.

References background, QValueList< T >::begin(), QValueList< T >::end(), max, values, Opie::MM::x, and Opie::MM::y.

void MGraph::setFrameStyle int  style  )  [virtual]
 

Definition at line 34 of file mgraph.cpp.

References background.

Referenced by WirelessControl::WirelessControl().

void MGraph::setMax int  value  )  [inline]
 

Definition at line 36 of file mgraph.h.

References max.

Referenced by addValue(), and WirelessControl::WirelessControl().

void MGraph::setMin int  value  )  [inline]
 

Definition at line 37 of file mgraph.h.

References min.

Referenced by WirelessControl::WirelessControl().


Member Data Documentation

QPixmap* MGraph::background [protected]
 

Definition at line 47 of file mgraph.h.

Referenced by addValue(), drawContents(), MGraph(), setFrameStyle(), and ~MGraph().

int MGraph::max [protected]
 

Definition at line 44 of file mgraph.h.

Referenced by addValue(), drawContents(), and setMax().

int MGraph::min [protected]
 

Definition at line 43 of file mgraph.h.

Referenced by setMin().

ValueList* MGraph::values [protected]
 

Definition at line 45 of file mgraph.h.

Referenced by addValue(), drawContents(), MGraph(), and ~MGraph().


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