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

MFieldObject Class Reference

#include <mfieldobject.h>

Inheritance diagram for MFieldObject:

MLabelObject MReportObject MCalcObject

List of all members.


Detailed Description

Kugar report field object
Author:
Mutiny Bay Software

Definition at line 20 of file mfieldobject.h.


Public Types

enum  BorderStyle {
  NoPen = 0, SolidLine, DashLine, DotLine,
  DashDotLine, DashDotDotLine
}
enum  DataType {
  String = 0, Integer, Float, Date,
  Currency
}
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)
QString getFieldName ()
int getX ()
int getY ()
 MFieldObject (const MFieldObject &mFieldObject)
 MFieldObject ()
void move (int x, int y)
MFieldObject operator= (const MFieldObject &mFieldObject)
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 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)
virtual ~MFieldObject ()

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 MFieldObject *mFieldObject)
void formatCommas ()
void formatNegValue ()

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

Generated by  Doxygen 1.6.0   Back to index