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