#include <QMessageBox>
#include <QFile>
#include <QTextStream>
#include <constants.h>
#include "resource_handler_functions.h"
Funkce | |
bool | ResourceHandlerFunctions::locateFile (QString &filename) |
Najit soubor podle jmena. | |
bool | ResourceHandlerFunctions::locateFileInDir (const QDir &dir, QString &filename, int depth=0) |
Najit soubor v adresari a podadresarich. | |
bool | ResourceHandlerFunctions::loadXml (const QString &name, QDomElement &rootEl, bool checkAttrName, const QString &rootElTagName="") |
Nacist xml soubor podle jmena. | |
bool | ResourceHandlerFunctions::saveXml (const QString &filename, const QDomDocument &doc) |
Ulozit xml dokument. | |
QString | ResourceHandlerFunctions::attrNameValueFromName (const QString &name) |
Prevest obecne jmeno na hodnotu predpokladanou v atributu name. | |
QString | ResourceHandlerFunctions::filenameFromName (const QString &name) |
Prevest obecne jmeno na jmeno souboru. | |
bool | ResourceHandlerFunctions::getSubElement (const QDomElement &el, QDomElement &subEl, const QString &subElTagName, bool successIfMissing=false) |
Najit podelement podle jmena. | |
bool | ResourceHandlerFunctions::getStringAttr (const QDomElement &el, QString &attr, const QString &attrName, bool successIfMissing=false) |
Precist stringovou hodnotu atributu. | |
bool | ResourceHandlerFunctions::getIntAttr (const QDomElement &el, int &attr, const QString &attrName, bool successIfMissing=false) |
Precist integer hodnotu atributu. | |
bool | ResourceHandlerFunctions::getAttrsXY (const QDomElement &el, int &x, int &y) |
Precist hodnotu atributu x,y. | |
void | ResourceHandlerFunctions::showError (const QString &message) |
Zobrazit chybu. | |
void | ResourceHandlerFunctions::showError (const QString &message, const QString &filename, const QDomElement &el=QDomElement()) |
Zobrazit chybu, ktera se vyskytla v souboru filename . | |
void | ResourceHandlerFunctions::showError (const QString &message, const QDomElement &el, const QString &filename="") |
Zobrazit chybu, ktera se vyskytla v elementu el . | |
QString | ResourceHandlerFunctions::nodePath (const QDomNode &el, const QString &delimiter=" > ") |
Zkostruovat cestu v xml souboru k elementu el . |