mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-23 12:09:58 +02:00
Element now use the pattern and variable of formula to create the label, both stored in diagram context (instead of the label with a pattern and formula, to create the final label)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4795 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -32,7 +32,8 @@ class NumerotationContext;
|
||||
/**
|
||||
This is the base class for electrical elements.
|
||||
*/
|
||||
class Element : public QetGraphicsItem {
|
||||
class Element : public QetGraphicsItem
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
// constructors, destructor
|
||||
@@ -139,14 +140,17 @@ class Element : public QetGraphicsItem {
|
||||
autonum::sequenceStruct sequenceStruct () const {return m_autoNum_seq;}
|
||||
autonum::sequenceStruct& rSequenceStruct() {return m_autoNum_seq;}
|
||||
|
||||
void SetUpSequential ();
|
||||
void setUpFormula(bool code_letter = true);
|
||||
void setPrefix(QString);
|
||||
QString getPrefix() const;
|
||||
void freezeLabel();
|
||||
void unfreezeLabel();
|
||||
void freezeNewAddedElement();
|
||||
|
||||
//ATTRIBUTES
|
||||
protected:
|
||||
void setUpConnectionForFormula(QString old_formula, QString new_formula);
|
||||
|
||||
//ATTRIBUTES
|
||||
protected:
|
||||
DiagramContext m_element_informations, kind_informations_;
|
||||
autonum::sequenceStruct m_autoNum_seq;
|
||||
|
||||
Reference in New Issue
Block a user