#include <KDChartLeveyJenningsGridAttributes.h>
Definition at line 44 of file KDChartLeveyJenningsGridAttributes.h.
Public Types | |
enum | GridType { Expected, Calculated } |
enum | Range { NormalRange, CriticalRange, OutOfRange } |
Public Member Functions | |
QPen | gridPen (GridType type) const |
bool | isGridVisible (GridType type) const |
LeveyJenningsGridAttributes (const LeveyJenningsGridAttributes &) | |
LeveyJenningsGridAttributes () | |
bool | operator!= (const LeveyJenningsGridAttributes &other) const |
LeveyJenningsGridAttributes & | operator= (const LeveyJenningsGridAttributes &) |
bool | operator== (const LeveyJenningsGridAttributes &) const |
QBrush | rangeBrush (Range range) const |
void | setGridPen (GridType type, const QPen &pen) |
void | setGridVisible (GridType type, bool visible) |
void | setRangeBrush (Range range, const QBrush &brush) |
~LeveyJenningsGridAttributes () |
Definition at line 53 of file KDChartLeveyJenningsGridAttributes.h.
00054 { 00055 Expected, 00056 Calculated 00057 };
Definition at line 59 of file KDChartLeveyJenningsGridAttributes.h.
00060 { 00061 NormalRange, 00062 CriticalRange, 00063 OutOfRange 00064 };
LeveyJenningsGridAttributes::LeveyJenningsGridAttributes | ( | ) |
Definition at line 64 of file KDChartLeveyJenningsGridAttributes.cpp.
00065 : _d( new Private() ) 00066 { 00067 // this bloc left empty intentionally 00068 }
LeveyJenningsGridAttributes::LeveyJenningsGridAttributes | ( | const LeveyJenningsGridAttributes & | r | ) |
Definition at line 70 of file KDChartLeveyJenningsGridAttributes.cpp.
00071 : _d( new Private( *r.d ) ) 00072 { 00073 }
LeveyJenningsGridAttributes::~LeveyJenningsGridAttributes | ( | ) |
QPen LeveyJenningsGridAttributes::gridPen | ( | GridType | type | ) | const |
Definition at line 126 of file KDChartLeveyJenningsGridAttributes.cpp.
References d.
Referenced by operator==().
bool LeveyJenningsGridAttributes::isGridVisible | ( | GridType | type | ) | const |
Definition at line 115 of file KDChartLeveyJenningsGridAttributes.cpp.
References d.
Referenced by operator==().
bool KDChart::LeveyJenningsGridAttributes::operator!= | ( | const LeveyJenningsGridAttributes & | other | ) | const |
Definition at line 76 of file KDChartLeveyJenningsGridAttributes.h.
References KDGantt::operator==().
00076 { return !operator==(other); }
LeveyJenningsGridAttributes & LeveyJenningsGridAttributes::operator= | ( | const LeveyJenningsGridAttributes & | r | ) |
Definition at line 75 of file KDChartLeveyJenningsGridAttributes.cpp.
References d.
00076 { 00077 if( this == &r ) 00078 return *this; 00079 00080 *d = *r.d; 00081 00082 return *this; 00083 }
bool LeveyJenningsGridAttributes::operator== | ( | const LeveyJenningsGridAttributes & | r | ) | const |
Definition at line 91 of file KDChartLeveyJenningsGridAttributes.cpp.
References Calculated, Expected, gridPen(), and isGridVisible().
00092 { 00093 return isGridVisible( Expected ) == r.isGridVisible( Expected ) && 00094 isGridVisible( Calculated ) == r.isGridVisible( Calculated ) && 00095 gridPen( Expected ) == r.gridPen( Expected ) && 00096 gridPen( Calculated ) == r.gridPen( Calculated ); 00097 }
QBrush LeveyJenningsGridAttributes::rangeBrush | ( | Range | range | ) | const |
Definition at line 104 of file KDChartLeveyJenningsGridAttributes.cpp.
References d.
00105 { 00106 return d->rangeBrushes[ range ]; 00107 }
void LeveyJenningsGridAttributes::setGridPen | ( | GridType | type, | |
const QPen & | pen | |||
) |
void LeveyJenningsGridAttributes::setGridVisible | ( | GridType | type, | |
bool | visible | |||
) |
void LeveyJenningsGridAttributes::setRangeBrush | ( | Range | range, | |
const QBrush & | brush | |||
) |
Definition at line 99 of file KDChartLeveyJenningsGridAttributes.cpp.
References d.
00100 { 00101 d->rangeBrushes[ range ] = brush; 00102 }