15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_MODELPATH_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_MODELPATH_H
Defines interface IParameterTranslator and subclasses.
SessionItem * getItemFromPath(const QString &relPath, const SessionItem *parent)
returns an item from relative path wrt to given parent
QModelIndex getIndexFromPath(const SessionModel *model, const QString &path)
bool isValidItem(SessionModel *model, SessionItem *item, const QModelIndex &parent)
Iterates through all the model and returns true if item is found. This is to.
const SessionItem * ancestor(const SessionItem *item, const QString &requiredModelType)
Returns ancestor of given modelType for given item.
QString getPathFromIndex(const QModelIndex &index)
QString itemPathTranslation(const SessionItem &item, const SessionItem *topItem=0)
Returns translation of item path to domain name.