Home
last modified time | relevance | path

Searched refs:formEditorItem (Results 1 – 25 of 34) sorted by relevance

12

/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/plugins/qmldesigner/components/formeditor/
H A Dabstractformeditortool.cpp80 if (formEditorItem) in toFormEditorItemList()
96 if (formEditorItem != nullptr in topItemIsMovable()
110 if (formEditorItem in topSelectedItemIsMovable()
121 if (formEditorItem in topSelectedItemIsMovable()
178 if (formEditorItem in topMovableFormEditorItem()
196 if (formEditorItem && formEditorItem->flowHitTest(point)) in nearestFormEditorItem()
199 if (!formEditorItem || !formEditorItem->qmlItemNode().isValid()) in nearestFormEditorItem()
271 if (formEditorItem && formEditorItem->qmlItemNode() == itemNode) in containsItemNode()
292 if (formEditorItem && formEditorItem->qmlItemNode().isValid()) in mouseReleaseEvent()
313 if (formEditorItem) { in mouseDoubleClickEvent()
[all …]
H A Dcontentnoteditableindicator.cpp74 foreach (FormEditorItem *formEditorItem, itemList) in updateItems()
75 affectedFormEditorItemItems.unite(Utils::toSet(formEditorItem->offspringFormEditorItems())); in updateItems()
78 foreach (FormEditorItem *formEditorItem, affectedFormEditorItemItems) { in updateItems()
79 if (formEditorItem == entryPair.first) { in updateItems()
80 …RectF boundingRectangleInSceneSpace = formEditorItem->qmlItemNode().instanceSceneTransform().mapRe… in updateItems()
90 foreach (FormEditorItem *formEditorItem, itemList) { in addAddiationEntries()
91 const ModelNode modelNode = formEditorItem->qmlItemNode().modelNode(); in addAddiationEntries()
94 if (!m_entryList.contains(EntryPair(formEditorItem, 0))) { in addAddiationEntries()
100 …RectF boundingRectangleInSceneSpace = formEditorItem->qmlItemNode().instanceSceneTransform().mapRe… in addAddiationEntries()
105 m_entryList.append(EntryPair(formEditorItem, indicatorShape)); in addAddiationEntries()
H A Drotationcontroller.cpp44 FormEditorItem *formEditorItem);
50 FormEditorItem *formEditorItem = nullptr; member in QmlDesigner::RotationControllerData
57 RotationControllerData::RotationControllerData(LayerItem *layerItem, FormEditorItem *formEditorItem) in RotationControllerData() argument
59 , formEditorItem(formEditorItem) in RotationControllerData()
90 RotationController::RotationController(LayerItem *layerItem, FormEditorItem *formEditorItem) in RotationController() argument
91 : m_data(new RotationControllerData(layerItem, formEditorItem)) in RotationController()
133 return m_data->formEditorItem && m_data->formEditorItem->qmlItemNode().isValid(); in isValid()
156 QRectF boundingRect = m_data->formEditorItem->qmlItemNode().instanceBoundingRect(); in updatePosition()
166 const qreal rotation = m_data->formEditorItem->qmlItemNode().rotation(); in updatePosition()
176 FormEditorItem* RotationController::formEditorItem() const in formEditorItem() function in QmlDesigner::RotationController
[all …]
H A Dresizecontroller.cpp41 FormEditorItem *formEditorItem);
47 FormEditorItem *formEditorItem = nullptr; member in QmlDesigner::ResizeControllerData
58 ResizeControllerData::ResizeControllerData(LayerItem *layerItem, FormEditorItem *formEditorItem) in ResizeControllerData() argument
60 formEditorItem(formEditorItem), in ResizeControllerData()
103 ResizeController::ResizeController(LayerItem *layerItem, FormEditorItem *formEditorItem) in ResizeController() argument
104 : m_data(new ResizeControllerData(layerItem, formEditorItem)) in ResizeController()
160 return m_data->formEditorItem && m_data->formEditorItem->qmlItemNode().isValid(); in isValid()
212 QRectF boundingRect = m_data->formEditorItem->qmlItemNode().instanceBoundingRect(); in updatePosition()
222 QPointF topPointInLayerSpace(m_data->formEditorItem->mapToItem(m_data->layerItem.data(), in updatePosition()
246 FormEditorItem* ResizeController::formEditorItem() const in formEditorItem() function in QmlDesigner::ResizeController
[all …]
H A Drubberbandselectionmanipulator.cpp55 FormEditorItem *formEditorItem = FormEditorItem::fromQGraphicsItem(item); in topFormEditorItem() local
57 if (formEditorItem) in topFormEditorItem()
59 return formEditorItem; in topFormEditorItem()
98 FormEditorItem *formEditorItem = FormEditorItem::fromQGraphicsItem(item); in select() local
100 if (formEditorItem in select()
101 && formEditorItem->qmlItemNode().isValid() in select()
102 && formEditorItem->qmlItemNode().instanceIsMovable() in select()
103 && formEditorItem->qmlItemNode().modelIsMovable() in select()
104 && !formEditorItem->qmlItemNode().instanceIsInLayoutable()) in select()
106 newNodeList.append(formEditorItem->qmlItemNode()); in select()
H A Drotationmanipulator.cpp73 … m_beginBoundingRect = m_rotationController.formEditorItem()->qmlItemNode().instanceBoundingRect(); in begin()
76 … m_beginFromItemToSceneTransform = m_rotationController.formEditorItem()->instanceSceneTransform(); in begin()
77 …m_beginToParentTransform = m_rotationController.formEditorItem()->qmlItemNode().instanceTransform(… in begin()
82 QmlAnchors anchors(m_rotationController.formEditorItem()->qmlItemNode().anchors()); in begin()
88 m_beginRotation = m_rotationController.formEditorItem()->qmlItemNode().rotation(); in begin()
96 FormEditorItem *formEditorItem = m_rotationController.formEditorItem(); in update() local
106 QVariant transformOriginVar = formEditorItem->qmlItemNode().transformOrigin(); in update()
189formEditorItem->qmlItemNode().setRotation(resultCalc(cursorAngle + m_beginRotation, handleAngle)); in update()
195formEditorItem->qmlItemNode().setRotation(resultCalc(cursorAngle + m_beginRotation, handleAngle)); in update()
201formEditorItem->qmlItemNode().setRotation(resultCalc(cursorAngle + m_beginRotation, handleAngle)); in update()
[all …]
H A Dsingleselectionmanipulator.cpp72 …FormEditorItem *formEditorItem = m_editorView->currentTool()->nearestFormEditorItem(m_beginPoint, … in select() local
74 if (formEditorItem && formEditorItem->qmlItemNode().isValid()) in select()
75 selectedNode = formEditorItem->qmlItemNode(); in select()
77 if (formEditorItem && formEditorItem->qmlItemNode().isFlowTransition()) in select()
78 selectedNode = formEditorItem->qmlItemNode(); in select()
H A Dsnappinglinecreator.cpp35 SnappingLineCreator::SnappingLineCreator(FormEditorItem *formEditorItem) in SnappingLineCreator() argument
36 : m_formEditorItem(formEditorItem), in SnappingLineCreator()
37 m_topOffset(formEditorItem->formEditorView()->spacing()), in SnappingLineCreator()
38 m_bottomOffset(formEditorItem->formEditorView()->spacing()), in SnappingLineCreator()
39 m_leftOffset(formEditorItem->formEditorView()->spacing()), in SnappingLineCreator()
40 m_rightOffset(formEditorItem->formEditorView()->spacing()), in SnappingLineCreator()
41 m_topPadding(formEditorItem->formEditorView()->containerPadding()), in SnappingLineCreator()
42 m_bottomPadding(formEditorItem->formEditorView()->containerPadding()), in SnappingLineCreator()
43 m_leftPadding(formEditorItem->formEditorView()->containerPadding()), in SnappingLineCreator()
44 m_rightPadding(formEditorItem->formEditorView()->containerPadding()) in SnappingLineCreator()
H A Dresizemanipulator.cpp82 m_snapper.updateSnappingLines(m_resizeController.formEditorItem()); in begin()
114 FormEditorItem *formEditorItem = m_resizeController.formEditorItem(); in update() local
121 QmlAnchors anchors(formEditorItem->qmlItemNode().anchors()); in update()
181 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
241 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
302 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
362 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
407 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
447 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
487 formEditorItem->qmlItemNode().setSize(boundingRect.size()); in update()
[all …]
H A Dformeditorscene.cpp134 FormEditorItem* FormEditorScene::calulateNewParent(FormEditorItem *formEditorItem) in calulateNewParent() argument
136 if (formEditorItem->qmlItemNode().isValid()) { in calulateNewParent()
174 FormEditorItem *formEditorItem = nullptr; in addFormEditorItem() local
177 formEditorItem = new FormEditorFlowItem(qmlItemNode, this); in addFormEditorItem()
179 formEditorItem = new FormEditorFlowActionItem(qmlItemNode, this); in addFormEditorItem()
181 formEditorItem = new FormEditorTransitionItem(qmlItemNode, this); in addFormEditorItem()
183 formEditorItem = new FormEditorFlowDecisionItem(qmlItemNode, this); in addFormEditorItem()
185 formEditorItem = new FormEditorFlowWildcardItem(qmlItemNode, this); in addFormEditorItem()
187 formEditorItem = new FormEditorItem(qmlItemNode, this); in addFormEditorItem()
191 m_qmlItemNodeItemHash.insert(qmlItemNode, formEditorItem); in addFormEditorItem()
[all …]
H A Dmovemanipulator.cpp187 FormEditorItem *formEditorItem = hashIterator.key(); in findSnappingOffset() local
190 if (!formEditorItem || !formEditorItem->qmlItemNode().isValid()) in findSnappingOffset()
193 if (!formEditorItem->qmlItemNode().hasBindingProperty("x")) { in findSnappingOffset()
199 if (!formEditorItem->qmlItemNode().hasBindingProperty("y")) { in findSnappingOffset()
237 FormEditorItem *formEditorItem = hashIterator.key(); in tanslatedBoundingRects() local
240 if (!formEditorItem || !formEditorItem->qmlItemNode().isValid()) in tanslatedBoundingRects()
243 if (formEditorItem->qmlItemNode().hasBindingProperty("x")) in tanslatedBoundingRects()
245 if (formEditorItem->qmlItemNode().hasBindingProperty("y")) in tanslatedBoundingRects()
247 translatedBoundingRectHash.insert(formEditorItem, boundingRect.translated(offsetVector)); in tanslatedBoundingRects()
396 foreach (FormEditorItem *formEditorItem, m_itemList) in end()
[all …]
H A Dtransitiontool.cpp264 FormEditorItem *formEditorItem = nearestFormEditorItem(event->scenePos(), itemList); in mouseMoveEvent() local
266 if (formEditorItem in mouseMoveEvent()
267 && formEditorItem->qmlItemNode().isValid() in mouseMoveEvent()
268 && isTransitionTarget(formEditorItem->qmlItemNode().modelNode())) { in mouseMoveEvent()
270 setToBoundingRect(rectangleItem2(), formEditorItem); in mouseMoveEvent()
306 FormEditorItem *formEditorItem = nearestFormEditorItem(event->scenePos(), itemList); in mouseReleaseEvent() local
308 if (formEditorItem in mouseReleaseEvent()
309 && QmlFlowTargetNode(formEditorItem->qmlItemNode().modelNode()).isValid()) in mouseReleaseEvent()
310 createTransition(m_formEditorItem, formEditorItem); in mouseReleaseEvent()
H A Dscalemanipulator.cpp31 ScaleManipulator::ScaleManipulator(LayerItem *layerItem, FormEditorItem *formEditorItem) in ScaleManipulator() argument
33 m_formEditorItem(formEditorItem) in ScaleManipulator()
H A Dselectiontool.cpp66 FormEditorItem* formEditorItem = nearestFormEditorItem(event->scenePos(), itemList); in mousePressEvent() local
68 if (formEditorItem) in mousePressEvent()
69 …ndMovable = toQmlItemNodeList(view()->selectedModelNodes()).contains(formEditorItem->qmlItemNode()) in mousePressEvent()
70 … && view()->hasSingleSelectedModelNode() && !formEditorItem->qmlItemNode().isRootNode(); in mousePressEvent()
74 if (formEditorItem && m_itemSelectedAndMovable in mousePressEvent()
75 && formEditorItem->qmlItemNode().isValid()) { in mousePressEvent()
H A Dsnapper.h46 void setContainerFormEditorItem(FormEditorItem *formEditorItem);
49 void setTransformtionSpaceFormEditorItem(FormEditorItem *formEditorItem);
76 void adjustAnchoringOfItem(FormEditorItem *formEditorItem);
H A Danchorindicator.cpp124 foreach (FormEditorItem *formEditorItem, itemList) { in updateItems()
125 if (formEditorItem == m_formEditorItem) { in updateItems()
128 QmlAnchors qmlAnchors = formEditorItem->qmlItemNode().anchors(); in updateItems()
H A Drotationcontroller.h44 RotationController(LayerItem *layerItem, FormEditorItem *formEditorItem);
58 FormEditorItem *formEditorItem() const;
H A Dresizecontroller.h44 ResizeController(LayerItem *layerItem, FormEditorItem *formEditorItem);
58 FormEditorItem *formEditorItem() const;
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/plugins/qmldesigner/components/texttool/
H A Dtextedititem.cpp66 void TextEditItem::setFormEditorItem(FormEditorItem *formEditorItem) in setFormEditorItem() argument
68 m_formEditorItem = formEditorItem; in setFormEditorItem()
69 …QRectF rect = formEditorItem->qmlItemNode().instancePaintedBoundingRect().united(formEditorItem->q… in setFormEditorItem()
87 setTransform(formEditorItem->sceneTransform()); in setFormEditorItem()
91 FormEditorItem *TextEditItem::formEditorItem() const in formEditorItem() function in QmlDesigner::TextEditItem
98 if (formEditorItem()) { in updateText()
99 TextEditItemWidget::updateText(formEditorItem()->qmlItemNode(). in updateText()
H A Dtexttool.cpp199 if (removedItemList.contains(textItem()->formEditorItem())) in itemsAboutToRemoved()
210 FormEditorItem *formEditorItem = itemList.constFirst(); in selectedItemsChanged() local
211 auto text = formEditorItem->qmlItemNode().instanceValue("text").toString(); in selectedItemsChanged()
212 auto format = formEditorItem->qmlItemNode().instanceValue("format").value<int>(); in selectedItemsChanged()
215 editorDialog->setFormEditorItem(formEditorItem); in selectedItemsChanged()
221 textItem()->setFormEditorItem(formEditorItem); in selectedItemsChanged()
244 if (propertyPair.first == textItem()->formEditorItem()->qmlItemNode().modelNode() in instancePropertyChange()
H A Dtextedititem.h42 void setFormEditorItem(FormEditorItem *formEditorItem);
43 FormEditorItem *formEditorItem() const;
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/plugins/qmldesigner/components/pathtool/
H A Dpathtool.cpp241 if (removedItemList.contains(m_pathItem->formEditorItem())) in itemsAboutToRemoved()
245 static bool hasPathProperty(FormEditorItem *formEditorItem) in hasPathProperty() argument
247 return formEditorItem->qmlItemNode().modelNode().metaInfo().hasProperty("path"); in hasPathProperty()
252 if (m_pathItem.data() && itemList.contains(m_pathItem->formEditorItem())) in selectedItemsChanged()
257 FormEditorItem *formEditorItem = itemList.constFirst(); in selectedItemsChanged() local
260 m_pathItem->setFormEditorItem(formEditorItem); in selectedItemsChanged()
261 formEditorItem->qmlItemNode().modelNode().model()->attachView(&m_pathToolView); in selectedItemsChanged()
281 if (propertyPair.first == m_pathItem->formEditorItem()->qmlItemNode().modelNode() in instancePropertyChange()
304 return m_pathItem->formEditorItem()->qmlItemNode().modelNode(); in editingPathViewModelNode()
H A Dpathitem.cpp61 static ModelNode pathModelNode(FormEditorItem *formEditorItem) in pathModelNode() argument
135 ModelNode pathNode = pathModelNode(formEditorItem()); in writePathToProperty()
169 ModelNode pathNode = pathModelNode(formEditorItem()); in writePathAsCubicSegmentsOnly()
196 m_formEditorItem = formEditorItem; in setFormEditorItem()
197 setTransform(formEditorItem->sceneTransform()); in setFormEditorItem()
203 static bool hasPath(FormEditorItem *formEditorItem) in hasPath() argument
375 FormEditorItem *PathItem::formEditorItem() const in formEditorItem() function in QmlDesigner::PathItem
490 if (formEditorItem()) in instanceBoundingRect()
498 ModelNode pathNode = pathModelNode(formEditorItem()); in readControlPoints()
720 if (hasPath(formEditorItem())) { in updatePath()
[all …]
H A Dpathitem.h79 void setFormEditorItem(FormEditorItem *formEditorItem);
80 FormEditorItem *formEditorItem() const;
/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/plugins/qmldesigner/
H A Drichtexteditordialog.cpp49 void RichTextEditorDialog::setFormEditorItem(FormEditorItem* formEditorItem) in setFormEditorItem() argument
51 m_formEditorItem = formEditorItem; in setFormEditorItem()

12