mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-17 16:59:59 +01:00
Element autonumbering. New tab inside autonumbering menu to assign formulas to element label. XML containing elements labels according ISO/IEC 81346 (./elements/10_electric/qet_labels.xml
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4563 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -33,8 +33,9 @@ MasterElement::MasterElement(const ElementsLocation &location, QGraphicsItem *qg
|
||||
{
|
||||
link_type_ = Master;
|
||||
connect(this, SIGNAL(elementInfoChange(DiagramContext, DiagramContext)), this, SLOT(updateLabel(DiagramContext, DiagramContext)));
|
||||
connect(this, SIGNAL(xChanged()),this, SLOT(changeElementInfo()));
|
||||
connect(this, SIGNAL(yChanged()),this, SLOT(changeElementInfo()));
|
||||
connect(this, SIGNAL(xChanged()), this, SLOT(changeElementInfo()));
|
||||
connect(this, SIGNAL(yChanged()), this, SLOT(changeElementInfo()));
|
||||
connect(this, SIGNAL(updateLabel()), this, SLOT(changeElementInfo()));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,8 +62,9 @@ void MasterElement::linkToElement(Element *elmt)
|
||||
|
||||
if (!cri_) cri_ = new CrossRefItem(this); //create cross ref item if not yet
|
||||
|
||||
connect(elmt, SIGNAL(xChanged()), cri_, SLOT(updateLabel()));
|
||||
connect(elmt, SIGNAL(yChanged()), cri_, SLOT(updateLabel()));
|
||||
connect(elmt, SIGNAL(xChanged()), cri_, SLOT(updateLabel()));
|
||||
connect(elmt, SIGNAL(yChanged()), cri_, SLOT(updateLabel()));
|
||||
connect(elmt, SIGNAL(updateLabel()), cri_, SLOT(updateLabel()));
|
||||
cri_ -> updateLabel();
|
||||
emit linkedElementChanged();
|
||||
}
|
||||
@@ -98,8 +100,9 @@ void MasterElement::unlinkElement(Element *elmt)
|
||||
elmt -> setHighlighted (false);
|
||||
|
||||
//update the graphics cross ref
|
||||
disconnect(elmt, SIGNAL(xChanged()), cri_, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(yChanged()), cri_, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(xChanged()), cri_, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(yChanged()), cri_, SLOT(updateLabel()));
|
||||
disconnect(elmt, SIGNAL(updateLabel()), cri_, SLOT(updateLabel()));
|
||||
|
||||
cri_ -> updateLabel();
|
||||
aboutDeleteXref();
|
||||
|
||||
Reference in New Issue
Block a user