25 m_canvas(tool->canvas())
29 widget.corner->setDefaultAction(tool->
action(
"pathpoint-corner"));
30 widget.smooth->setDefaultAction(tool->
action(
"pathpoint-smooth"));
31 widget.symmetric->setDefaultAction(tool->
action(
"pathpoint-symmetric"));
32 widget.lineSegment->setDefaultAction(tool->
action(
"pathsegment-line"));
33 widget.curveSegment->setDefaultAction(tool->
action(
"pathsegment-curve"));
34 widget.linePoint->setDefaultAction(tool->
action(
"pathpoint-line"));
35 widget.curvePoint->setDefaultAction(tool->
action(
"pathpoint-curve"));
36 widget.addPoint->setDefaultAction(tool->
action(
"pathpoint-insert"));
37 widget.removePoint->setDefaultAction(tool->
action(
"pathpoint-remove"));
38 widget.breakPoint->setDefaultAction(tool->
action(
"path-break-point"));
39 widget.breakSegment->setDefaultAction(tool->
action(
"path-break-segment"));
40 widget.joinSegment->setDefaultAction(tool->
action(
"pathpoint-join"));
41 widget.mergePoints->setDefaultAction(tool->
action(
"pathpoint-merge"));
43 widget.wdgShapeProperties->setVisible(
false);
44 widget.lineShapeProperties->setVisible(
false);
46 connect(
widget.convertToPath, SIGNAL(released()), tool->
action(
"convert-to-path"), SLOT(trigger()));
57 widget.stackedWidget->setCurrentIndex(0);
59 widget.stackedWidget->setCurrentIndex(1);
64 if (!pathShape)
return QString();
70 shapeId = paramShape->
shapeId();
98 if (!panels.isEmpty()) {
114 QLayout *baseLayout =
widget.wdgShapeProperties->layout();
115 QVBoxLayout *layout =
dynamic_cast<QVBoxLayout*
>(
widget.wdgShapeProperties->layout());
121 layout =
new QVBoxLayout(
widget.wdgShapeProperties);
150 QWidget::showEvent(event);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
virtual KoUnit unit() const =0
virtual void addCommand(KUndo2Command *command)=0
const T value(const QString &id) const
bool isParametricShape() const
Check if object is a parametric shape.
The position of a path point within a path shape.
virtual QString pathShapeId() const
virtual QList< KoShapeConfigWidgetBase * > createShapeOptionPanels()
static KoShapeRegistry * instance()
#define KIS_SAFE_ASSERT_RECOVER(cond)
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
#define KIS_ASSERT_RECOVER_RETURN(cond)