25 #include <QStringList>
31 #include "commonWidgets.h"
38 void ITOMWIDGETS_EXPORT qListToSTLVector(
const QStringList& list, std::vector<char*>& vector);
43 void ITOMWIDGETS_EXPORT qListToSTLVector(
const QStringList& list, std::vector<std::string>& vector);
48 void ITOMWIDGETS_EXPORT stlVectorToQList(
const std::vector<std::string>& vector, QStringList& list);
57 QStringList ITOMWIDGETS_EXPORT nameFilterToExtensions(
const QString& nameFilter);
63 QStringList ITOMWIDGETS_EXPORT nameFiltersToExtensions(
const QStringList& nameFilters);
69 QString ITOMWIDGETS_EXPORT extensionToRegExp(
const QString& extension);
76 QRegExp ITOMWIDGETS_EXPORT nameFiltersToRegExp(
const QStringList& nameFilters);
89 int ITOMWIDGETS_EXPORT significantDecimals(
double value,
int defaultDecimals = -1);
103 int ITOMWIDGETS_EXPORT orderOfMagnitude(
double value);
114 double ITOMWIDGETS_EXPORT closestPowerOfTen(
double value);
122 bool ITOMWIDGETS_EXPORT removeDirRecursively(
const QString & dirName);
132 bool ITOMWIDGETS_EXPORT copyDirRecursively(
const QString &srcPath,
const QString &dstPath);
138 QString ITOMWIDGETS_EXPORT qtHandleToString(Qt::HANDLE handle);
151 qint64 ITOMWIDGETS_EXPORT msecsTo(
const QDateTime& t1,
const QDateTime& t2);