CostPositionModel Class Reference

#include <costpositionmodel.h>

Collaboration diagram for CostPositionModel:

Collaboration graph
[legend]

List of all members.

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
CostPositionItemgetRootItem ()
CostPositionItemgetCostPositionItem (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 ()


Detailed Description

The model, which contains all positions and it's categorys, with all necessary informations.

category -> categoryName QMap -> sectionId -> editable

position -> positionName QMap -> actionId -> costtype -> language -> sectionId -> editable

Definition at line 29 of file costpositionmodel.h.


Constructor & Destructor Documentation

CostPositionModel::CostPositionModel ( QObject *  parent = 0,
bool  empty = false 
)

Definition at line 7 of file costpositionmodel.cpp.

Here is the call graph for this function:

CostPositionModel::~CostPositionModel (  ) 

Definition at line 21 of file costpositionmodel.cpp.


Member Function Documentation

void CostPositionModel::addCategory ( uint  sectionid,
QString  name,
bool  editable 
)

Definition at line 166 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostPositionModel::addCostPosition ( QString  desc,
QString  lang,
int  actionid,
int  costtype,
QString  secName,
bool  editable 
)

Definition at line 181 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostPositionModel::addOtherPositions ( int  sectionId,
CostPositionItem *&  oldCat 
)

Definition at line 412 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void CostPositionModel::clearPositions (  )  [slot]

Definition at line 571 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CostPositionModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const

Definition at line 26 of file costpositionmodel.cpp.

Here is the call graph for this function:

void CostPositionModel::costTypePositionsNotReadable (  )  [signal]

Here is the caller graph for this function:

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

Definition at line 38 of file costpositionmodel.cpp.

Here is the call graph for this function:

void CostPositionModel::dataChange (  )  [inline]

Definition at line 50 of file costpositionmodel.h.

QDomElement CostPositionModel::dataNode (  ) 

Definition at line 528 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CostPositionModel::deleteCategory ( int  sectionid  ) 

Definition at line 366 of file costpositionmodel.cpp.

Here is the call graph for this function:

void CostPositionModel::deletePosition ( QString  positionname,
int  sectionId 
)

Definition at line 345 of file costpositionmodel.cpp.

Here is the call graph for this function:

void CostPositionModel::editCategory ( QString  oldCat,
QString  newCat 
)

Definition at line 381 of file costpositionmodel.cpp.

Here is the call graph for this function:

void CostPositionModel::editPosition ( QMap< QString, QVariant > *  changes  ) 

Definition at line 444 of file costpositionmodel.cpp.

Here is the call graph for this function:

bool CostPositionModel::existsCategory ( QString  name  ) 

Definition at line 269 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostPositionModel::existsPositionInCategory ( QString  posName,
int  sectionid 
)

Definition at line 283 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 82 of file costpositionmodel.cpp.

QString CostPositionModel::getCategoryNameFromSectionId ( int  id  ) 

Definition at line 254 of file costpositionmodel.cpp.

Here is the call graph for this function:

CostPositionItem * CostPositionModel::getCostPositionItem ( QString  name,
QString  sectName 
) const

Definition at line 61 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CostPositionItem* CostPositionModel::getRootItem (  )  [inline]

Definition at line 48 of file costpositionmodel.h.

Here is the caller graph for this function:

int CostPositionModel::getSectionId ( QString  cat  ) 

Definition at line 223 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CostPositionModel::getSectionIdFromPosition ( QString  position  ) 

Definition at line 237 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QVariant CostPositionModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 92 of file costpositionmodel.cpp.

Here is the call graph for this function:

QModelIndex CostPositionModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 102 of file costpositionmodel.cpp.

Here is the call graph for this function:

bool CostPositionModel::isCategoryEditable ( int  sectionId  ) 

Definition at line 305 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CostPositionModel::isPositionEditable ( QString  positionName,
int  sectionId 
)

Definition at line 321 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QModelIndex CostPositionModel::parent ( const QModelIndex &  index  )  const

Definition at line 131 of file costpositionmodel.cpp.

Here is the call graph for this function:

void CostPositionModel::readCategories (  ) 

Definition at line 471 of file costpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 149 of file costpositionmodel.cpp.

Here is the call graph for this function:


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

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