9#include <klocalizedstring.h>
18 widget.ellipseType->clear();
19 widget.ellipseType->addItem(i18n(
"Arc"));
20 widget.ellipseType->addItem(i18n(
"Pie"));
21 widget.ellipseType->addItem(i18n(
"Chord"));
51 widget.ellipseType->setCurrentIndex(shape->
type());
89 widget.startAngle->blockSignals(
true);
90 widget.endAngle->blockSignals(
true);
92 widget.startAngle->setAngle(0.0);
93 widget.endAngle->setAngle(360.0);
95 widget.startAngle->blockSignals(
false);
96 widget.endAngle->blockSignals(
false);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
The undo / redo command for configuring an ellipse shape.
void setType(EllipseType type)
qreal startAngle() const
Returns the actual ellipse start angle in degree.
void setStartAngle(qreal angle)
qreal endAngle() const
Returns the actual ellipse end angle in degree.
void setEndAngle(qreal angle)
EllipseType type() const
Returns the actual ellipse type.
EllipseType
the possible ellipse types
@ FlipOptionsMode_MenuButton
The flip options are shown as a menu accessible via a options button.
void addShapeChangeListener(ShapeChangeListener *listener)
void removeShapeChangeListener(ShapeChangeListener *listener)
ChangeType
Used by shapeChanged() to select which change was made.
@ ParameterChanged
the shapes parameter has changed (KoParameterShape only)
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)