#include <costpositionmodel.h>

Public Slots | |
| void | clearPositions () |
Signals | |
| void | costTypePositionsNotReadable () |
| void | clearCostPositions (bool clearEntries) |
Public Member Functions | |
| CostPositionModel (QObject *parent=0, bool empty=false) | |
| ~CostPositionModel () | |
| void | readCategories () |
| QVariant | data (const QModelIndex &index, int role) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | parent (const QModelIndex &index) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| CostPositionItem * | getRootItem () |
| CostPositionItem * | getCostPositionItem (QString name, QString sectName) const |
| void | dataChange () |
| void | addCategory (uint sectionid, QString name, bool editable) |
| void | addCostPosition (QString desc, QString lang, int actionid, int costtype, QString secName, bool editable) |
| bool | existsCategory (QString name) |
| bool | existsPositionInCategory (QString posName, int sectionid) |
| bool | isCategoryEditable (int sectionId) |
| bool | isPositionEditable (QString positionName, int sectionId) |
| int | getSectionId (QString cat) |
| int | getSectionIdFromPosition (QString position) |
| QString | getCategoryNameFromSectionId (int id) |
| void | deletePosition (QString positionname, int sectionId) |
| void | deleteCategory (int sectionid) |
| void | editCategory (QString oldCat, QString newCat) |
| void | editPosition (QMap< QString, QVariant > *changes) |
| void | addOtherPositions (int sectionId, CostPositionItem *&oldCat) |
| QDomElement | dataNode () |
category -> categoryName QMap -> sectionId -> editable
position -> positionName QMap -> actionId -> costtype -> language -> sectionId -> editable
Definition at line 29 of file costpositionmodel.h.
| CostPositionModel::CostPositionModel | ( | QObject * | parent = 0, |
|
| bool | empty = false | |||
| ) |
| CostPositionModel::~CostPositionModel | ( | ) |
Definition at line 21 of file costpositionmodel.cpp.
| void CostPositionModel::addCategory | ( | uint | sectionid, | |
| QString | name, | |||
| bool | editable | |||
| ) |
Definition at line 166 of file costpositionmodel.cpp.


| void CostPositionModel::addCostPosition | ( | QString | desc, | |
| QString | lang, | |||
| int | actionid, | |||
| int | costtype, | |||
| QString | secName, | |||
| bool | editable | |||
| ) |
Definition at line 181 of file costpositionmodel.cpp.


| void CostPositionModel::addOtherPositions | ( | int | sectionId, | |
| CostPositionItem *& | oldCat | |||
| ) |
Definition at line 412 of file costpositionmodel.cpp.


| void CostPositionModel::clearCostPositions | ( | bool | clearEntries | ) | [signal] |

| void CostPositionModel::clearPositions | ( | ) | [slot] |
Definition at line 571 of file costpositionmodel.cpp.


| int CostPositionModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
| void CostPositionModel::costTypePositionsNotReadable | ( | ) | [signal] |

| QVariant CostPositionModel::data | ( | const QModelIndex & | index, | |
| int | role | |||
| ) | const |
| void CostPositionModel::dataChange | ( | ) | [inline] |
Definition at line 50 of file costpositionmodel.h.
| QDomElement CostPositionModel::dataNode | ( | ) |
Definition at line 528 of file costpositionmodel.cpp.


| void CostPositionModel::deleteCategory | ( | int | sectionid | ) |
| void CostPositionModel::deletePosition | ( | QString | positionname, | |
| int | sectionId | |||
| ) |
| void CostPositionModel::editCategory | ( | QString | oldCat, | |
| QString | newCat | |||
| ) |
| void CostPositionModel::editPosition | ( | QMap< QString, QVariant > * | changes | ) |
| bool CostPositionModel::existsCategory | ( | QString | name | ) |
Definition at line 269 of file costpositionmodel.cpp.


| bool CostPositionModel::existsPositionInCategory | ( | QString | posName, | |
| int | sectionid | |||
| ) |
Definition at line 283 of file costpositionmodel.cpp.


| Qt::ItemFlags CostPositionModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 82 of file costpositionmodel.cpp.
| QString CostPositionModel::getCategoryNameFromSectionId | ( | int | id | ) |
| CostPositionItem * CostPositionModel::getCostPositionItem | ( | QString | name, | |
| QString | sectName | |||
| ) | const |
Definition at line 61 of file costpositionmodel.cpp.


| CostPositionItem* CostPositionModel::getRootItem | ( | ) | [inline] |
| int CostPositionModel::getSectionId | ( | QString | cat | ) |
Definition at line 223 of file costpositionmodel.cpp.


| int CostPositionModel::getSectionIdFromPosition | ( | QString | position | ) |
Definition at line 237 of file costpositionmodel.cpp.


| QVariant CostPositionModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const |
| QModelIndex CostPositionModel::index | ( | int | row, | |
| int | column, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const |
| bool CostPositionModel::isCategoryEditable | ( | int | sectionId | ) |
Definition at line 305 of file costpositionmodel.cpp.


| bool CostPositionModel::isPositionEditable | ( | QString | positionName, | |
| int | sectionId | |||
| ) |
Definition at line 321 of file costpositionmodel.cpp.


| QModelIndex CostPositionModel::parent | ( | const QModelIndex & | index | ) | const |
| void CostPositionModel::readCategories | ( | ) |
Definition at line 471 of file costpositionmodel.cpp.


| int CostPositionModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
1.5.9