mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-27 07:39:58 +02:00
Merge commit 'b021ac3e1fb98a56810773c7c701e3329efb3148'
Conflicts: sources/qetgraphicsitem/element.h
This commit is contained in:
@@ -1325,6 +1325,15 @@ void Element::setElementInformations(DiagramContext dc)
|
||||
emit elementInfoChange(old_info, m_data.m_informations);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Element::elementData
|
||||
* @return the element data used by this element
|
||||
*/
|
||||
ElementData Element::elementData() const
|
||||
{
|
||||
return m_data;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief comparPos
|
||||
Compare position of the two elements. Compare 3 points:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
Copyright 2006-2021 The QElectroTech Team
|
||||
This file is part of QElectroTech.
|
||||
|
||||
@@ -103,6 +103,15 @@ class Element : public QetGraphicsItem // TODO: derive from propertiesInterface!
|
||||
DiagramContext elementInformations()const
|
||||
{return m_data.m_informations;}
|
||||
virtual void setElementInformations(DiagramContext dc);
|
||||
|
||||
ElementData elementData() const;
|
||||
|
||||
/**
|
||||
* @brief kindInformations
|
||||
* @deprecated
|
||||
* use elementData function instead
|
||||
* @return
|
||||
*/
|
||||
DiagramContext kindInformations() const
|
||||
{return m_kind_informations;}
|
||||
//@kind_information_ is used to store more information
|
||||
@@ -159,8 +168,20 @@ class Element : public QetGraphicsItem // TODO: derive from propertiesInterface!
|
||||
virtual void unlinkElement(Element *) {}
|
||||
virtual void initLink(QETProject *);
|
||||
QList<Element *> linkedElements ();
|
||||
|
||||
/**
|
||||
* @brief linkType
|
||||
* use elementData function instead
|
||||
* @return
|
||||
*/
|
||||
virtual kind linkType() const {return m_link_type;} // return the linkable type
|
||||
/**
|
||||
* @brief linkTypeToString
|
||||
* use elementData function instead
|
||||
* @return
|
||||
*/
|
||||
QString linkTypeToString() const;
|
||||
|
||||
void newUuid() {m_uuid = QUuid::createUuid();} //create new uuid for this element
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user