CreateRemoveCommandImplementation::CreateRemoveCommandImplementation(const models::Models &models , const QList<ElementInfo> &elements) : mLogicalApi(models.logicalModelAssistApi()) , mGraphicalApi(models.graphicalModelAssistApi()) , mExploser(models.exploser()) , mElements(elements) { }
ExploserView::ExploserView(const models::Models &models , Controller &controller , const SceneCustomizer &customizer , QObject *parent) : QObject(parent) , mLogicalApi(models.logicalModelAssistApi()) , mGraphicalApi(models.graphicalModelAssistApi()) , mExploser(models.exploser()) , mController(controller) , mCustomizer(customizer) { }
Element::Element(ElementImpl *elementImpl, const Id &id, const models::Models &models) : mMoving(false) , mEnabled(true) , mId(id) , mElementImpl(elementImpl) , mModels(models) , mLogicalAssistApi(models.logicalModelAssistApi()) , mGraphicalAssistApi(models.graphicalModelAssistApi()) , mController(nullptr) { setFlags(ItemIsSelectable | ItemIsMovable | ItemIsFocusable | ItemClipsChildrenToShape | ItemClipsToShape | ItemSendsGeometryChanges); setAcceptDrops(true); setCursor(Qt::PointingHandCursor); updateEnabledState(); setHideNonHardLabels(SettingsManager::value("hideNonHardLabels").toBool()); SettingsListener::listen("hideNonHardLabels", this, &Element::setHideNonHardLabels); }
MultipleRemoveCommand::MultipleRemoveCommand(const models::Models &models) : mLogicalApi(models.logicalModelAssistApi()) , mGraphicalApi(models.graphicalModelAssistApi()) , mExploser(models.exploser()) { }
CreatePatternCommand::CreatePatternCommand(const models::Models &models, const ElementInfo &pattern) : CreateElementsCommand(models, {}) { setElements(parse(models.logicalModelAssistApi(), models.graphicalModelAssistApi(), pattern)); }