42 {
43
45 if (showDialog && !shape->
shapeId().isEmpty()) {
47 Q_ASSERT(factory);
48 qint16 z = 0;
51 }
53
54
56 dialog->setWindowTitle(i18n(
"%1 Options", factory->
name()));
57
58 int pageCount = 0;
62 continue;
64 panel->connect(panel, SIGNAL(accept()), dialog, SLOT(accept()));
65 widgets.append(panel);
68 QString title = panel->windowTitle().isEmpty() ? panel->objectName() : panel->windowTitle();
69 dialog->addPage(panel, title);
70 pageCount ++;
71 }
72
73 if (pageCount > 0) {
74 if (pageCount > 1)
75 dialog->setFaceType(KPageDialog::Tabbed);
76 if (
dialog->exec() != KPageDialog::Accepted) {
78 return 0;
79 }
81 widget->save();
82 }
84 }
85 }
86
88 }
virtual KoShapeManager * shapeManager() const =0
virtual KoUnit unit() const =0
virtual QWidget * canvasWidget()=0
QPointer< KoCanvasResourceProvider > resourceManager
const T value(const QString &id) const
KUndo2Command * addShapesDirect(const QList< KoShape * > shapes, KoShapeContainer *parentShape, KUndo2Command *parent)
virtual QList< KoShapeConfigWidgetBase * > createShapeOptionPanels()
QList< KoShape * > shapes
static KoShapeRegistry * instance()
void setZIndex(qint16 zIndex)
ChildIterator< value_type, is_const > parent(const ChildIterator< value_type, is_const > &it)