376
376
extern const qreal PrintDPI;
378
double ToPixel(double val, const Unit &unit) Q_REQUIRED_RESULT;
379
double FromPixel(double pix, const Unit &unit) Q_REQUIRED_RESULT;
378
Q_REQUIRED_RESULT double ToPixel(double val, const Unit &unit);
379
Q_REQUIRED_RESULT double FromPixel(double pix, const Unit &unit);
381
qreal UnitConvertor(qreal value, const Unit &from, const Unit &to) Q_REQUIRED_RESULT;
381
Q_REQUIRED_RESULT qreal UnitConvertor(qreal value, const Unit &from, const Unit &to);
383
383
void InitLanguages(QComboBox *combobox);
384
QStringList SupportedLocales() Q_REQUIRED_RESULT;
386
QString StrippedName(const QString &fullFileName) Q_REQUIRED_RESULT;
387
QString RelativeMPath(const QString &patternPath, const QString &absoluteMPath) Q_REQUIRED_RESULT;
388
QString AbsoluteMPath(const QString &patternPath, const QString &relativeMPath) Q_REQUIRED_RESULT;
390
QSharedPointer<QPrinter> PreparePrinter(const QPrinterInfo &info,
391
QPrinter::PrinterMode mode = QPrinter::ScreenResolution) Q_REQUIRED_RESULT;
384
Q_REQUIRED_RESULT QStringList SupportedLocales();
386
Q_REQUIRED_RESULT QString StrippedName(const QString &fullFileName);
387
Q_REQUIRED_RESULT QString RelativeMPath(const QString &patternPath, const QString &absoluteMPath);
388
Q_REQUIRED_RESULT QString AbsoluteMPath(const QString &patternPath, const QString &relativeMPath);
390
Q_REQUIRED_RESULT QSharedPointer<QPrinter> PreparePrinter(const QPrinterInfo &info,
391
QPrinter::PrinterMode mode = QPrinter::ScreenResolution);
393
393
QMarginsF GetMinPrinterFields(const QSharedPointer<QPrinter> &printer);
394
394
QMarginsF GetPrinterFields(const QSharedPointer<QPrinter> &printer);
396
QPixmap darkenPixmap(const QPixmap &pixmap) Q_REQUIRED_RESULT;
396
Q_REQUIRED_RESULT QPixmap darkenPixmap(const QPixmap &pixmap);
398
398
void ShowInGraphicalShell(const QString &filePath);
400
static inline bool VFuzzyComparePossibleNulls(double p1, double p2) Q_REQUIRED_RESULT;
400
Q_REQUIRED_RESULT static inline bool VFuzzyComparePossibleNulls(double p1, double p2);
401
401
static inline bool VFuzzyComparePossibleNulls(double p1, double p2)
403
403
if(qFuzzyIsNull(p1))