7#ifndef KISDOCUMENTAWARESPINBOXUNITMANAGER_H
8#define KISDOCUMENTAWARESPINBOXUNITMANAGER_H
13#include "kritaui_export.h"
38 static void setDocumentAwarenessToExistingUnitSpinBox(
KisDoubleParseUnitSpinBox* spinBox,
bool setUnitFromOutsideToggle =
false);
53 virtual bool hasPercent(
int unitDim)
const override;
KisSpinBoxUnitManager * buildUnitManager(QObject *parent) override
The KisDocumentAwareSpinBoxUnitManager class is a KisSpinBoxUnitManager that is able to connect to th...
The KisDoubleParseUnitSpinBox class is an evolution of the.
The KisSpinBoxUnitManagerBuilder class is the base class, used in the strategy pattern of KisSpinBoxU...
The KisSpinBoxUnitManager class is an abstract interface for the unitspinboxes classes to manage diff...
virtual qreal getConversionConstant(int dim, QString symbol) const
some units conversions are done via an affine transform, not just a linear transform....
virtual qreal getConversionFactor(int dim, QString symbol) const
gets the conversion factor of a managed unit, or -1 in case of error. This method is the one that nee...
virtual bool hasPercent(int unitDim) const
indicate if the unit manager has some kind of way of using a percent unit, used by the main class to ...