CostTypeModel Class Reference

#include <costtypemodel.h>

Inherits AbstractModel.

Collaboration diagram for CostTypeModel:

Collaboration graph
[legend]

List of all members.

Signals

void sendingOwnCapitalNode (const QDomElement)
void changedDataUpdateProxies ()
void rowEdited (int rowid)
void rowRemoved (int rowid)

Public Member Functions

 CostTypeModel (uint fileid, uint type, QString documentname, QObject *parent=0)
void setOwnCapitalModel (QPointer< OwnCapitalCalculationModel > owncapital)
void setModified (bool)
bool isModified ()
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
QVariant data (const QModelIndex &index, int role) const
QStringList data (const int row) const
QStringList dataFromRowId (const int row) const
int rowFromRowId (const int row) 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)
bool insertRows (int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows (int position, int rows, const QModelIndex &index=QModelIndex())
void removeRowById (int rowid)
QList< QStringList > getList ()
double getCompleteSum () const
double getProfitLossSum ()
void refreshSums ()
bool searchModel (QString entry)
int rowIdIndex (QString row)
virtual QDomElement documentNode ()
virtual bool loadDocument (const QDomElement file)
void setLastRowId (uint rowid)
bool reassessValueBased (QString position, int type, QString pal, QString replacementvalue, QString decliningbalance, QString usefuleconomiclife, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool reassessIndexBased (QString position, int type, QString pal, QString decliningbalance, QString usefuleconomiclife, QString purchasePrice, QString purchaseIndex, QString currentIndex, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool delimitAmount (QString position, int type, QString incomestatement, QString amounttodelimit, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool acceptCosts (QString position, int type, QString incomestatement, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool normalize (QString position, int type, QString averagecosts, QString actualcosts, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool wages (QString position, int type, QString wages, QString specialpayment, QString legaltaxes, QString paymentbyresult, QString directcostpart, QString nonwagelaborcosts, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool incidentialInterest (QString position, int ty, QString incomestatement, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool interestOnOwnBoundCapital (QString position, int ty, QString incomestatement, QString borrowed, QString owncapital, QString interestrate, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool interestOnOperatingAssets (QString position, int ty, QString incomeStatement, QString interestRateOwnBoundCapital, QString operatingAssets, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())
bool completeCostsEmployersSalary (QString position, int type, QString salarywithouttaxes, QString monthsforcalculation, QString riskpremium, int affectedRow=-1, QModelIndexList affectedRows=QModelIndexList())

Public Attributes

double revenues


Detailed Description

Definition at line 12 of file costtypemodel.h.


Constructor & Destructor Documentation

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

Definition at line 10 of file costtypemodel.cpp.

Here is the call graph for this function:


Member Function Documentation

bool CostTypeModel::acceptCosts ( QString  position,
int  type,
QString  incomestatement,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 681 of file costtypemodel.cpp.

Here is the caller graph for this function:

void CostTypeModel::changedDataUpdateProxies (  )  [signal]

Here is the caller graph for this function:

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

Definition at line 222 of file costtypemodel.cpp.

bool CostTypeModel::completeCostsEmployersSalary ( QString  position,
int  type,
QString  salarywithouttaxes,
QString  monthsforcalculation,
QString  riskpremium,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 1069 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QStringList CostTypeModel::data ( const int  row  )  const

Definition at line 330 of file costtypemodel.cpp.

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

Definition at line 228 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QStringList CostTypeModel::dataFromRowId ( const int  row  )  const

Definition at line 335 of file costtypemodel.cpp.

bool CostTypeModel::delimitAmount ( QString  position,
int  type,
QString  incomestatement,
QString  amounttodelimit,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 634 of file costtypemodel.cpp.

Here is the caller graph for this function:

QDomElement CostTypeModel::documentNode (  )  [virtual]

Reimplemented from AbstractModel.

Definition at line 40 of file costtypemodel.cpp.

Here is the call graph for this function:

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

Definition at line 523 of file costtypemodel.cpp.

double CostTypeModel::getCompleteSum (  )  const

Definition at line 471 of file costtypemodel.cpp.

Here is the caller graph for this function:

QList< QStringList > CostTypeModel::getList (  ) 

Definition at line 532 of file costtypemodel.cpp.

double CostTypeModel::getProfitLossSum (  ) 

Definition at line 485 of file costtypemodel.cpp.

Here is the caller graph for this function:

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

Definition at line 359 of file costtypemodel.cpp.

Here is the call graph for this function:

bool CostTypeModel::incidentialInterest ( QString  position,
int  ty,
QString  incomestatement,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 848 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 397 of file costtypemodel.cpp.

Here is the caller graph for this function:

bool CostTypeModel::interestOnOperatingAssets ( QString  position,
int  ty,
QString  incomeStatement,
QString  interestRateOwnBoundCapital,
QString  operatingAssets,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 990 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostTypeModel::interestOnOwnBoundCapital ( QString  position,
int  ty,
QString  incomestatement,
QString  borrowed,
QString  owncapital,
QString  interestrate,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 914 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostTypeModel::isModified (  ) 

Definition at line 537 of file costtypemodel.cpp.

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

Reimplemented from AbstractModel.

Definition at line 113 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostTypeModel::normalize ( QString  position,
int  type,
QString  averagecosts,
QString  actualcosts,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 717 of file costtypemodel.cpp.

Here is the caller graph for this function:

bool CostTypeModel::reassessIndexBased ( QString  position,
int  type,
QString  pal,
QString  decliningbalance,
QString  usefuleconomiclife,
QString  purchasePrice,
QString  purchaseIndex,
QString  currentIndex,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 599 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostTypeModel::reassessValueBased ( QString  position,
int  type,
QString  pal,
QString  replacementvalue,
QString  decliningbalance,
QString  usefuleconomiclife,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 552 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostTypeModel::refreshSums (  ) 

Definition at line 1211 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostTypeModel::removeRowById ( int  rowid  ) 

Definition at line 438 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 424 of file costtypemodel.cpp.

Here is the call graph for this function:

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

Definition at line 216 of file costtypemodel.cpp.

Here is the caller graph for this function:

void CostTypeModel::rowEdited ( int  rowid  )  [signal]

int CostTypeModel::rowFromRowId ( const int  row  )  const

Definition at line 347 of file costtypemodel.cpp.

int CostTypeModel::rowIdIndex ( QString  row  ) 

Definition at line 1199 of file costtypemodel.cpp.

Here is the caller graph for this function:

void CostTypeModel::rowRemoved ( int  rowid  )  [signal]

Here is the caller graph for this function:

bool CostTypeModel::searchModel ( QString  entry  ) 

Definition at line 1185 of file costtypemodel.cpp.

Here is the caller graph for this function:

void CostTypeModel::sendingOwnCapitalNode ( const   QDomElement  )  [signal]

Here is the caller graph for this function:

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

Definition at line 499 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostTypeModel::setLastRowId ( uint  rowid  ) 

Definition at line 547 of file costtypemodel.cpp.

void CostTypeModel::setModified ( bool  b  ) 

Definition at line 542 of file costtypemodel.cpp.

Here is the caller graph for this function:

void CostTypeModel::setOwnCapitalModel ( QPointer< OwnCapitalCalculationModel owncapital  ) 

Definition at line 35 of file costtypemodel.cpp.

bool CostTypeModel::wages ( QString  position,
int  type,
QString  wages,
QString  specialpayment,
QString  legaltaxes,
QString  paymentbyresult,
QString  directcostpart,
QString  nonwagelaborcosts,
int  affectedRow = -1,
QModelIndexList  affectedRows = QModelIndexList() 
)

Definition at line 756 of file costtypemodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 65 of file costtypemodel.h.


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

Generated on Mon Jun 15 15:34:07 2009 for Allevo I Costcalculation by  doxygen 1.5.9