#include <costcentremodel.h>
Inherits AbstractModel.

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 | |
| CostTypeModel * | costTypeModel |
Definition at line 13 of file costcentremodel.h.
| CostCentreModel::CostCentreModel | ( | uint | fileid, | |
| uint | type, | |||
| QString | documentname, | |||
| QObject * | parent = 0 | |||
| ) |
| bool CostCentreModel::addCostCentre | ( | QString | columnname, | |
| int | type, | |||
| QString | base = "" | |||
| ) |
Definition at line 753 of file costcentremodel.cpp.


| void CostCentreModel::addPosition | ( | QStringList | columns, | |
| bool | overwriteRowId = false | |||
| ) |
| int CostCentreModel::columnCount | ( | const QModelIndex & | parent | ) | const |
| int CostCentreModel::columnIdIndex | ( | QString | columnName | ) |
| 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 | ( | ) |
| int CostCentreModel::costTypeFileIdentification | ( | ) | [inline] |
Definition at line 61 of file costcentremodel.h.
| QVariant CostCentreModel::data | ( | const QModelIndex & | index, | |
| int | role | |||
| ) | const |
| QStringList CostCentreModel::data | ( | const int | row | ) | const |
| QDomElement CostCentreModel::documentNode | ( | ) | [virtual] |
Reimplemented from AbstractModel.
Definition at line 92 of file costcentremodel.cpp.

| QList< QStringList > CostCentreModel::entries | ( | ) |
Definition at line 717 of file costcentremodel.cpp.
| Qt::ItemFlags CostCentreModel::flags | ( | const QModelIndex & | index | ) | const |
| 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() | |||
| ) |
| bool CostCentreModel::isCostCentreColumn | ( | int | column | ) |
| bool CostCentreModel::loadDocument | ( | const QDomElement | file | ) | [virtual] |
Reimplemented from AbstractModel.
Definition at line 197 of file costcentremodel.cpp.


| void CostCentreModel::refreshSums | ( | ) | [slot] |
Definition at line 918 of file costcentremodel.cpp.


| bool CostCentreModel::removeColumns | ( | int | position, | |
| int | columns, | |||
| const QModelIndex & | index = QModelIndex() | |||
| ) |
| 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 |
| void CostCentreModel::rowRemovedWarning | ( | int | rowid | ) | [signal] |
| void CostCentreModel::setBase | ( | int | column, | |
| QString | base | |||
| ) |
| void CostCentreModel::setBase | ( | QString | columnName, | |
| QString | base | |||
| ) |
| void CostCentreModel::setCostTypeModel | ( | CostTypeModel * | model | ) |
Definition at line 83 of file costcentremodel.cpp.


| bool CostCentreModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) |
Definition at line 647 of file costcentremodel.cpp.


| double CostCentreModel::sums | ( | int | sumType, | |
| int | column | |||
| ) |
| double CostCentreModel::sums | ( | int | sumType | ) |
Definition at line 488 of file costcentremodel.cpp.


Definition at line 27 of file costcentremodel.h.
1.5.9