Logo Search packages:      
Sourcecode: facturalux version File versions  Download package

MCalcObject Class Reference

#include <mcalcobject.h>

Inheritance diagram for MCalcObject:

MFieldObject MLabelObject MReportObject

List of all members.

Detailed Description

Kugar report calculation field object
Mutiny Bay Software

Definition at line 18 of file mcalcobject.h.

Public Types

enum  BorderStyle {
  NoPen = 0, SolidLine, DashLine, DotLine,
  DashDotLine, DashDotDotLine
enum  CalculationType {
  Count = 0, Sum, Average, Variance,
enum  DataType {
  String = 0, Integer, Float, Date,
enum  FontWeight {
  Light = 25, Normal = 50, DemiBold = 63, Bold = 75,
  Black = 87
enum  HAlignment { Left = 0, Center, Right }
enum  VAlignment { Top = 0, Middle, Bottom }

Public Member Functions

void draw (QPainter *p, int xoffset, int yoffset)
int getCalculationType ()
QString getFieldName ()
int getX ()
int getY ()
 MCalcObject (const MCalcObject &mCalcObject)
 MCalcObject ()
void move (int x, int y)
MCalcObject operator= (const MCalcObject &mCalcObject)
void setBackgroundColor (int r, int g, int b)
void setBorderColor (int r, int g, int b)
void setBorderStyle (int style)
void setBorderWidth (int width)
void setCalculationType (int type)
void setCommaSeparator (int c)
void setCurrency (const QChar c)
void setDataType (int t)
void setDateFormat (int f)
void setFieldName (const QString field)
void setFont (const QString family, int size, int weight, bool italic)
void setForegroundColor (int r, int g, int b)
void setGeometry (int x, int y, int w, int h)
void setHorizontalAlignment (int a)
void setNegValueColor (int r, int g, int b)
void setPrecision (int p)
void setText (const QString txt)
void setVerticalAlignment (int a)
void setWordWrap (bool state)
 ~MCalcObject ()

Protected Member Functions

void drawBase (QPainter *p, int xoffset, int yoffset)

Protected Attributes

QColor backgroundColor
QColor borderColor
int borderStyle
int borderWidth
int comma
QChar currency
int dataType
QString fieldName
QString fontFamily
bool fontItalic
int fontSize
int fontWeight
QColor foregroundColor
int format
int hAlignment
int height
QColor negativeValueColor
int precision
QColor saveColor
QString text
int vAlignment
int width
bool wordWrap
int xpos
int ypos

Private Member Functions

void copy (const MCalcObject *mCalcObject)

Private Attributes

int calcType

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index