mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
-add class for store Xref properties
-add widget for edit it -make link betwen QET -> QETproject -> Diagram, for transmit the xrefproperties -xrefpropertie can save/load to xml and setting. -XRefItem don't use the properties yet git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2983 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1187,12 +1187,19 @@ QETProject *Diagram::project() const {
|
||||
}
|
||||
|
||||
/**
|
||||
@param project le nouveau projet auquel ce schema appartient ou 0 s'il
|
||||
s'agit d'un schema independant. Indiquer 0 pour rendre ce schema independant.
|
||||
*/
|
||||
* @brief Diagram::setProject
|
||||
* @param project: set parent project of this diagram or 0 if this diagram haven't got a parent project
|
||||
*/
|
||||
void Diagram::setProject(QETProject *project) {
|
||||
if (project_) {
|
||||
disconnect (project_, SIGNAL(reportPropertiesChanged(QString)), this, SIGNAL(reportPropertiesChanged(QString)));
|
||||
disconnect (project_, SIGNAL(XRefPropertiesChanged(XRefProperties)), this, SIGNAL(XRefPropertiesChanged(XRefProperties)));
|
||||
}
|
||||
project_ = project;
|
||||
connect(project_, SIGNAL(reportPropertiesChanged(QString)), this, SIGNAL(reportPropertiesChanged(QString)));
|
||||
if (project_) {
|
||||
connect (project_, SIGNAL(reportPropertiesChanged(QString)), this, SIGNAL(reportPropertiesChanged(QString)));
|
||||
connect (project_, SIGNAL(XRefPropertiesChanged(XRefProperties)), this, SIGNAL(XRefPropertiesChanged(XRefProperties)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user