|
| MasterElement (const ElementsLocation &, QGraphicsItem *=nullptr, int *=nullptr) |
| MasterElement::MasterElement Default constructor.
|
|
| ~MasterElement () override |
| MasterElement::~MasterElement default destructor.
|
|
void | linkToElement (Element *elmt) override |
| MasterElement::linkToElement Link this master to another element For this class element must be a slave.
|
|
void | unlinkAllElements () override |
| MasterElement::unlinkAllElements Unlink all of the element in the QList connected_elements.
|
|
void | unlinkElement (Element *elmt) override |
| MasterElement::unlinkElement Unlink the given element in parameter.
|
|
void | initLink (QETProject *project) override |
| MasterElement::initLink.
|
|
QRectF | XrefBoundingRect () const |
| MasterElement::XrefBoundingRect.
|
|
| Element (const ElementsLocation &location, QGraphicsItem *=nullptr, int *state=nullptr, Element::kind link_type=Element::Simple) |
| Element::Element.
|
|
| ~Element () override |
| Element::~Element.
|
|
int | type () const override |
|
QList< Terminal * > | terminals () const |
| Element::terminals.
|
|
QList< Conductor * > | conductors () const |
| Element::conductors.
|
|
QList< QPair< Terminal *, Terminal * > > | AlignedFreeTerminals () const |
| Element::AlignedFreeTerminals.
|
|
DiagramContext | elementInformations () const |
|
virtual void | setElementInformations (DiagramContext dc) |
| Element::setElementInformations Set new information for this element. If new information is different of current infotmation emit elementInfoChange.
|
|
ElementData | elementData () const |
| Element::elementData.
|
|
void | setElementData (ElementData data) |
| Element::setElementData Set new data for this element. If m_information of data is changed, emit elementInfoChange.
|
|
DiagramContext | kindInformations () const |
| kindInformations
|
|
autonum::sequentialNumbers | sequenceStruct () const |
|
autonum::sequentialNumbers & | rSequenceStruct () |
|
void | setUpFormula (bool code_letter=true) |
| Element::setUpFormula Set up the formula used to create the label of this element.
|
|
void | setPrefix (QString) |
| Element::setPrefix set Element Prefix.
|
|
QString | getPrefix () const |
| Element::getPrefix get Element Prefix.
|
|
void | freezeLabel (bool freeze) |
| Element::freezeLabel Freeze this element label.
|
|
bool | isFreezeLabel () const |
|
void | freezeNewAddedElement () |
| Element::freezeNewAddedElement Freeze this label if needed.
|
|
QString | actualLabel () |
| Element::actualLabel Always return the current label to be displayed. This function is useful when label is based on formula, because label can change at any time.
|
|
QString | name () const override |
| Element::name.
|
|
ElementsLocation | location () const |
|
virtual void | setHighlighted (bool) |
|
void | displayHelpLine (bool b=true) |
| Element::displayHelpLine Display the help line of each terminal if b is true.
|
|
QSize | size () const |
|
QPixmap | pixmap () |
| Element::pixmap.
|
|
QPoint | setHotspot (QPoint) |
|
QPoint | hotspot () const |
|
void | editProperty () override |
|
virtual bool | fromXml (QDomElement &, QHash< int, Terminal * > &) |
| Element::fromXml Import the parameters of this element from a xml document. When call this function ensure this element is already in a scene, because the dynamic text item and element text item group (in the xml file) are created in this function and need a diagram for create their Xref, when this element is linked to another. If not the Xref can be not displayed, until the next call of update Xref of the group or text item.
|
|
virtual QDomElement | toXml (QDomDocument &, QHash< Terminal *, int > &) const |
| Element::toXml Allows to export the element in XML.
|
|
QUuid | uuid () const |
| Element::uuid.
|
|
int | orientation () const |
|
void | addDynamicTextItem (DynamicElementTextItem *deti=nullptr) |
| Element::addDynamiqueTextItem Add deti as a dynamic text item of this element, deti is reparented to this If deti is null, a new DynamicElementTextItem is created and added to this element.
|
|
void | removeDynamicTextItem (DynamicElementTextItem *deti) |
| Element::removeDynamicTextItem Remove deti, no matter if is a child of this element or a child of a group of this element. Set he parent item of deti to 0, deti is not deleted.
|
|
QList< DynamicElementTextItem * > | dynamicTextItems () const |
| Element::dynamicTextItems.
|
|
ElementTextItemGroup * | addTextGroup (const QString &name) |
| Element::addTextGroup Create and add an element text item group to this element. If this element already have a group with the same name, then name will renamed to name1 or name2 etc....
|
|
void | addTextGroup (ElementTextItemGroup *group) |
| Element::addTextGroup.
|
|
void | removeTextGroup (ElementTextItemGroup *group) |
| Element::removeTextGroup Remove the text group group from this element, and set the parent of group to 0. group is not deleted. All texts owned by the group will be reparented to this element.
|
|
ElementTextItemGroup * | textGroup (const QString &name) const |
| Element::textGroup.
|
|
QList< ElementTextItemGroup * > | textGroups () const |
| Element::textGroups.
|
|
bool | addTextToGroup (DynamicElementTextItem *text, ElementTextItemGroup *group) |
| Element::addTextToGroup Add the text text to the group group; If group isn't owned by this element return false. The text must be a text of this element.
|
|
bool | removeTextFromGroup (DynamicElementTextItem *text, ElementTextItemGroup *group) |
| Element::removeTextFromGroup Remove the text text from the group group, en reparent text to this element.
|
|
bool | isFree () const |
|
QList< Element * > | linkedElements () |
| Element::linkedElements.
|
|
virtual kind | linkType () const |
| linkType use elementData function instead
|
|
QString | linkTypeToString () const |
| linkTypeToString use elementData function instead
|
|
void | newUuid () |
|
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override |
| Element::paint.
|
|
QRectF | boundingRect () const override |
|
| QetGraphicsItem (QGraphicsItem *parent=nullptr) |
| QetGraphicsItem::QetGraphicsItem Default constructor.
|
|
| ~QetGraphicsItem () override=0 |
|
Diagram * | diagram () const |
|
virtual void | setPos (const QPointF &p) |
|
virtual void | setPos (qreal x, qreal y) |
|
virtual bool | isMovable () const |
|
virtual void | setMovable (bool movable) |
|
bool | isHovered () const |
|
QET::GraphicsItemState | state () const |
| QetGraphicsItem::state.
|
|
The MasterElement class This class is a custom element, with extended behavior to be a master element. Master element can be linked with slave element and display a cross ref item for know with what other element he is linked.