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

GraphLegend Class Reference

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

Collaboration diagram for GraphLegend:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GraphLegend (QWidget *parent=0, const char *name=0, WFlags f=0)
void setData (const GraphData *p)
virtual QSize sizeHint () const
void setOrientation (Orientation o)
 GraphLegend (QWidget *parent=0, const char *name=0, WFlags f=0)
void setData (const GraphData *p)
virtual QSize sizeHint () const
void setOrientation (Orientation o)

Protected Member Functions

virtual void drawContents (QPainter *p)
virtual void drawContents (QPainter *p)

Private Attributes

const GraphDatadata
bool horz
const GraphDatadata

Constructor & Destructor Documentation

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

Definition at line 124 of file graph.cpp.

References FALSE, and horz.

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


Member Function Documentation

virtual void GraphLegend::drawContents QPainter *  p  )  [protected, virtual]
 

void GraphLegend::drawContents QPainter *  p  )  [protected, virtual]
 

Definition at line 135 of file graph.cpp.

References col, GraphData::count(), data, height, horz, i, GraphData::name(), GraphData::value(), width, Opie::MM::x, and Opie::MM::y.

void GraphLegend::setData const GraphData p  ) 
 

void GraphLegend::setData const GraphData p  ) 
 

Definition at line 177 of file graph.cpp.

References GraphData::count(), data, and horz.

Referenced by MemoryInfo::MemoryInfo().

void GraphLegend::setOrientation Orientation  o  ) 
 

void GraphLegend::setOrientation Orientation  o  ) 
 

Definition at line 130 of file graph.cpp.

References horz.

Referenced by MountInfo::MountInfo().

virtual QSize GraphLegend::sizeHint  )  const [virtual]
 

QSize GraphLegend::sizeHint  )  const [virtual]
 

Definition at line 161 of file graph.cpp.

References GraphData::count(), data, i, and GraphData::name().


Member Data Documentation

const GraphData* GraphLegend::data [private]
 

Definition at line 87 of file graph.h.

const GraphData* GraphLegend::data [private]
 

Definition at line 87 of file graph.h.

Referenced by drawContents(), setData(), and sizeHint().

bool GraphLegend::horz [private]
 

Definition at line 88 of file graph.h.

Referenced by drawContents(), GraphLegend(), setData(), and setOrientation().


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