93 warnScript <<
"AngleSelector::flipOptionsMode() doesn't handle mode '" << mode <<
"'!";
168 dbgScript <<
"Script using AngleSelector.setFlipOptionsMode() passed invalid mode '" << newMode <<
"', ignoring.";
183 dbgScript <<
"Script using AngleSelector.setIncreasingDirection() passed invalid mode '" << newIncreasingDirection <<
"', ignoring.";
const QList< QString > FlipOptionsMode
const QList< QString > IncreasingDirection
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
qreal angle() const
Gets the current angle.
qreal minimum() const
Gets the minimum value for the angle.
qreal maximum() const
Gets the maximum value for the angle.
~AngleSelector() override
int widgetsHeight() const
Gets the common height of the widgets inside this angle selector.
void setMinimum(qreal newMinimum)
Sets the minimum value for the angle.
QString increasingDirection() const
Gets the direction in which the angle increases in the angle gauge.
QString prefix() const
Gets the prefix shown in the spin box.
void reset()
Sets the current angle to the reset angle.
void setRange(qreal newMinimum, qreal newMaximum)
Sets the minimum and maximum values for the angle.
static qreal flipAngle(qreal angle, Qt::Orientations orientations)
Flips an angle horizontally, vertically, or both.
void setPrefix(const QString &newPrefix)
Sets the prefix shown in the spin box.
void useFlatSpinBox(bool newUseFlatSpinBox)
Sets if the spin box should be flat.
void setIncreasingDirection(QString newIncreasingDirection)
Sets the increasing direction in the angle gauge.
QString flipOptionsMode() const
Gets the mode in which the flip options should be shown.
qreal snapAngle() const
Gets the angle to which multiples the selected angle will snap.
void setFlipOptionsMode(QString newMode)
Sets the mode in which the flip options should be shown.
void flip(Qt::Orientations orientations)
Flips the angle horizontally, vertically, or both.
void setResetAngle(qreal newResetAngle)
Sets the angle that is used to reset the current angle.
bool wrapping() const
Gets if the angle should wrap pass the minimum or maximum angles.
void setSnapAngle(qreal newSnapAngle)
Sets the angle to which multiples the selected angle will snap.
void setMaximum(qreal newMaximum)
Sets the maximum value for the angle.
QWidget * widget() const
Get the internal KisAngleSelector as a QWidget, so it may be added to a UI.
bool isUsingFlatSpinBox() const
Gets if the spin box is flat (no border or background)
qreal resetAngle() const
Gets the angle that is used to reset the current angle.
void angleChanged(qreal angle)
int decimals() const
Gets the number of decimals (precision) used by the angle.
void setWidgetsHeight(int newHeight)
Sets the common height of the widgets inside this angle selector. Use 0 to reset widgets to default h...
static qreal closestCoterminalAngleInRange(qreal angle, qreal minimum, qreal maximum, bool *ok=nullptr)
Gets the closest coterminal angle to the provided angle that is in the range provided.
void setDecimals(int newNumberOfDecimals)
Sets the number of decimals (precision) used by the angle.
void setAngle(qreal newAngle)
Sets the current angle.
void setWrapping(bool newWrapping)
Sets if the angle should wrap pass the minimum or maximum angles.
A widget with several options to select an angle.
void setResetAngle(qreal newResetAngle)
Sets the angle that is used to reset the current angle.
static qreal flipAngle(qreal angle, Qt::Orientations orientations)
Flips an angle horizontally, vertically, or both.
FlipOptionsMode
Options to select how the flip options should be presented.
void setPrefix(const QString &newPrefix)
Sets the prefix shown in the spin box.
bool wrapping() const
Gets if the angle should wrap pass the minimum or maximum angles.
int widgetsHeight() const
Gets the common height of the widgets inside this angle selector.
void setWrapping(bool newWrapping)
Sets if the angle should wrap pass the minimum or maximum angles.
qreal angle() const
Gets the current angle.
void setFlipOptionsMode(FlipOptionsMode newMode)
Sets the mode in which the flip options should be shown.
FlipOptionsMode flipOptionsMode() const
Gets the mode in which the flip options should be shown.
void setSnapAngle(qreal newSnapAngle)
Sets the angle to which multiples the selected angle will snap.
void setIncreasingDirection(KisAngleGauge::IncreasingDirection newIncreasingDirection)
Sets the increasing direction in the angle gauge.
qreal resetAngle() const
Gets the angle that is used to reset the current angle.
QString prefix() const
Gets the prefix shown in the spin box.
void useFlatSpinBox(bool newUseFlatSpinBox)
Sets if the spin box should be flat.
qreal maximum() const
Gets the maximum value for the angle.
qreal minimum() const
Gets the minimum value for the angle.
void setAngle(qreal newAngle)
Sets the current angle.
void setRange(qreal newMinimum, qreal newMaximum)
Sets the minimum and maximum values for the angle.
void setMaximum(qreal newMaximum)
Sets the maximum value for the angle.
qreal snapAngle() const
Gets the angle to which multiples the selected angle will snap.
void setWidgetsHeight(int newHeight)
Sets the common height of the widgets inside this angle selector. Use 0 to reset widgets to default h...
static qreal closestCoterminalAngleInRange(qreal angle, qreal minimum, qreal maximum, bool *ok=nullptr)
Gets the closest coterminal angle to the provided angle that is in the range provided.
void setDecimals(int newNumberOfDecimals)
Sets the number of decimals (precision) used by the angle.
void reset()
Sets the current angle to the reset angle.
bool isUsingFlatSpinBox() const
Gets if the spin box is flat (no border or background)
KisAngleGauge::IncreasingDirection increasingDirection() const
Gets the direction in which the angle increases in the angle gauge.
void setMinimum(qreal newMinimum)
Sets the minimum value for the angle.
int decimals() const
Gets the number of decimals (precision) used by the angle.
KisAngleSelector * widget