mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-03 10:29:59 +02:00
Element editor : Add new tagg for text field (function and tension/protocol).
Report element : text field tagged function or tension/protocol display the function tension/protocol of the potential. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4195 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -27,27 +27,30 @@ class ElementTextItem;
|
||||
*this class represent an element that can be linked to an other ReportElement
|
||||
* a folio report in a diagram is a element that show a wire go on an other folio
|
||||
*/
|
||||
class ReportElement : public CustomElement {
|
||||
|
||||
class ReportElement : public CustomElement
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public :
|
||||
explicit ReportElement(const ElementsLocation &,QString link_type, QGraphicsItem * = 0, int * = 0);
|
||||
~ReportElement();
|
||||
virtual void linkToElement(Element *);
|
||||
virtual void unlinkAllElements();
|
||||
virtual void unlinkElement(Element *elmt);
|
||||
public :
|
||||
explicit ReportElement(const ElementsLocation &,QString link_type, QGraphicsItem * = 0, int * = 0);
|
||||
~ReportElement();
|
||||
virtual void linkToElement(Element *);
|
||||
virtual void unlinkAllElements();
|
||||
virtual void unlinkElement(Element *elmt);
|
||||
|
||||
private:
|
||||
int inverse_report;
|
||||
QString label_;
|
||||
ElementTextItem *m_text_field;
|
||||
int inverse_report;
|
||||
QString label_;
|
||||
ElementTextItem *m_text_field;
|
||||
Conductor *m_watched_conductor;
|
||||
|
||||
signals:
|
||||
private:
|
||||
void conductorWasAdded(Conductor *conductor);
|
||||
void conductorWasRemoved(Conductor *conductor);
|
||||
|
||||
private slots:
|
||||
void setLabel (QString label);
|
||||
void updateLabel();
|
||||
void setLabel (QString label);
|
||||
void updateLabel();
|
||||
};
|
||||
|
||||
#endif // REPORTELEMENT_H
|
||||
|
||||
Reference in New Issue
Block a user