CostCentreModel Class Reference

#include <costcentremodel.h>

Inherits AbstractModel.

Collaboration diagram for CostCentreModel:

Collaboration graph
[legend]

List of all members.

Public Slots

void refreshSums ()

Signals

void rowChangedWarning (int rowid)
void rowRemovedWarning (int rowid)

Public Member Functions

 CostCentreModel (uint fileid, uint type, QString documentname, QObject *parent=0)
virtual QDomElement documentNode ()
virtual bool loadDocument (const QDomElement file)
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
void setCostTypeModel (CostTypeModel *model)
QStringList data (const int row) const
QVariant data (const QModelIndex &index, int role) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void addPosition (QStringList columns, bool overwriteRowId=false)
bool insertRows (int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows (int position, int rows, const QModelIndex &index=QModelIndex())
bool addCostCentre (QString columnname, int type, QString base="")
bool insertColumns (int position, int columns, const QModelIndex &index=QModelIndex())
bool removeColumns (int position, int columns, const QModelIndex &index=QModelIndex())
bool containsCostCentre (QString name, int type)
bool containsColumn (QString name)
bool containsPosition (QStringList row)
int columnIdIndex (QString columnName)
QList< QStringList > entries ()
QStringList headers ()
int costCentreCount ()
double sums (int sumType)
double sums (int sumType, int column)
bool isCostCentreColumn (int column)
int costTypeFileIdentification ()
void setBase (QString columnName, QString base)
void setBase (int column, QString base)

Public Attributes

CostTypeModelcostTypeModel


Detailed Description

Definition at line 13 of file costcentremodel.h.


Constructor & Destructor Documentation

CostCentreModel::CostCentreModel ( uint  fileid,
uint  type,
QString  documentname,
QObject *  parent = 0 
)

Definition at line 7 of file costcentremodel.cpp.

Here is the call graph for this function:


Member Function Documentation

bool CostCentreModel::addCostCentre ( QString  columnname,
int  type,
QString  base = "" 
)

Definition at line 753 of file costcentremodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostCentreModel::addPosition ( QStringList  columns,
bool  overwriteRowId = false 
)

Definition at line 795 of file costcentremodel.cpp.

Here is the caller graph for this function:

int CostCentreModel::columnCount ( const QModelIndex &  parent  )  const

Definition at line 354 of file costcentremodel.cpp.

Here is the caller graph for this function:

int CostCentreModel::columnIdIndex ( QString  columnName  ) 

Definition at line 863 of file costcentremodel.cpp.

Here is the caller graph for this function:

bool CostCentreModel::containsColumn ( QString  name  ) 

Definition at line 827 of file costcentremodel.cpp.

bool CostCentreModel::containsCostCentre ( QString  name,
int  type 
)

Definition at line 822 of file costcentremodel.cpp.

bool CostCentreModel::containsPosition ( QStringList  row  ) 

Definition at line 832 of file costcentremodel.cpp.

int CostCentreModel::costCentreCount (  ) 

Definition at line 727 of file costcentremodel.cpp.

Here is the caller graph for this function:

int CostCentreModel::costTypeFileIdentification (  )  [inline]

Definition at line 61 of file costcentremodel.h.

QVariant CostCentreModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 365 of file costcentremodel.cpp.

Here is the call graph for this function:

QStringList CostCentreModel::data ( const int  row  )  const

Definition at line 360 of file costcentremodel.cpp.

Here is the caller graph for this function:

QDomElement CostCentreModel::documentNode (  )  [virtual]

Reimplemented from AbstractModel.

Definition at line 92 of file costcentremodel.cpp.

Here is the call graph for this function:

QList< QStringList > CostCentreModel::entries (  ) 

Definition at line 717 of file costcentremodel.cpp.

Qt::ItemFlags CostCentreModel::flags ( const QModelIndex &  index  )  const

Definition at line 699 of file costcentremodel.cpp.

Here is the call graph for this function:

QVariant CostCentreModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Definition at line 410 of file costcentremodel.cpp.

QStringList CostCentreModel::headers (  ) 

Definition at line 722 of file costcentremodel.cpp.

bool CostCentreModel::insertColumns ( int  position,
int  columns,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 450 of file costcentremodel.cpp.

bool CostCentreModel::insertRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 424 of file costcentremodel.cpp.

Here is the call graph for this function:

bool CostCentreModel::isCostCentreColumn ( int  column  ) 

Definition at line 875 of file costcentremodel.cpp.

Here is the caller graph for this function:

bool CostCentreModel::loadDocument ( const QDomElement  file  )  [virtual]

Reimplemented from AbstractModel.

Definition at line 197 of file costcentremodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostCentreModel::refreshSums (  )  [slot]

Definition at line 918 of file costcentremodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostCentreModel::removeColumns ( int  position,
int  columns,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 626 of file costcentremodel.cpp.

Here is the call graph for this function:

bool CostCentreModel::removeRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 472 of file costcentremodel.cpp.

void CostCentreModel::rowChangedWarning ( int  rowid  )  [signal]

int CostCentreModel::rowCount ( const QModelIndex &  parent  )  const

Definition at line 348 of file costcentremodel.cpp.

Here is the caller graph for this function:

void CostCentreModel::rowRemovedWarning ( int  rowid  )  [signal]

void CostCentreModel::setBase ( int  column,
QString  base 
)

Definition at line 747 of file costcentremodel.cpp.

Here is the call graph for this function:

void CostCentreModel::setBase ( QString  columnName,
QString  base 
)

Definition at line 733 of file costcentremodel.cpp.

Here is the caller graph for this function:

void CostCentreModel::setCostTypeModel ( CostTypeModel model  ) 

Definition at line 83 of file costcentremodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostCentreModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 647 of file costcentremodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

double CostCentreModel::sums ( int  sumType,
int  column 
)

Definition at line 565 of file costcentremodel.cpp.

Here is the call graph for this function:

double CostCentreModel::sums ( int  sumType  ) 

Definition at line 488 of file costcentremodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 27 of file costcentremodel.h.


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

Generated on Mon Jun 15 15:33:47 2009 for Allevo I Costcalculation by  doxygen 1.5.9