Revampe nomenclature

Nomenclature is now totally revamped, user can define information to
export and the order of theme.
This commit is contained in:
joshua
2019-11-03 13:27:46 +01:00
parent 7d9b3d8c36
commit ff7eb4d11c
6 changed files with 1158 additions and 4 deletions

View File

@@ -1387,7 +1387,28 @@ void Element::initLink(QETProject *prj)
foreach (Element *elmt, ep.fromUuids(tmp_uuids_link)) {
elmt->linkToElement(this);
}
tmp_uuids_link.clear();
tmp_uuids_link.clear();
}
QString Element::linkTypeToString() const
{
switch (m_link_type)
{
case Simple:
return "Simple";
case NextReport :
return "NextReport";
case PreviousReport:
return "PreviousReport";
case Master:
return "Master";
case Slave:
return "Slave";
case Terminale:
return "Terminale";
default:
return "Unknow";
}
}
/**

View File

@@ -136,6 +136,7 @@ class Element : public QetGraphicsItem
virtual void initLink (QETProject *);
QList<Element *> linkedElements ();
virtual kind linkType() const {return m_link_type;} // @return the linkable type
QString linkTypeToString() const;
void newUuid() {m_uuid = QUuid::createUuid();} //create new uuid for this element
protected: