ShapeEdit::ShapeEdit( Id const &id , EditorManagerInterface *editorManager , qrRepo::GraphicalRepoApi const &graphicalRepoApi , MainWindow *mainWindow , EditorView *editorView ) : QWidget(NULL) , mUi(new Ui::ShapeEdit) , mRole(0) , mId(id) , mEditorManager(editorManager) , mMainWindow(mainWindow) , mEditorView(editorView) { mGraphicalElements = graphicalRepoApi.graphicalElements(Id(mId.editor(), mId.diagram(), mId.element())); init(); mUi->saveButton->setEnabled(true); connect(this, SIGNAL(saveSignal()), this, SLOT(save())); }
ShapeEdit::ShapeEdit( const Id &id , const EditorManagerInterface &editorManager , const qrRepo::GraphicalRepoApi &graphicalRepoApi , MainWindow *mainWindow , EditorView *editorView , bool useTypedPorts ) : QWidget(nullptr) , mUi(new Ui::ShapeEdit) , mRole(0) , mId(id) , mEditorManager(&editorManager) , mMainWindow(mainWindow) , mEditorView(editorView) , mUseTypedPorts(useTypedPorts) { mGraphicalElements = graphicalRepoApi.graphicalElements(Id(mId.editor(), mId.diagram(), mId.element())); init(); mUi->saveButton->setEnabled(true); connect(this, SIGNAL(saveSignal()), this, SLOT(save())); }