mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-03 12:49:59 +02:00
Master element : comment is displayed even if there isn't slave linked
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3414 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -21,25 +21,35 @@
|
||||
#include "customelement.h"
|
||||
|
||||
class CrossRefItem;
|
||||
class CommentItem;
|
||||
|
||||
/**
|
||||
* @brief The MasterElement class
|
||||
* This class is a custom element, with extended behavior
|
||||
* to be a master element. Master element can be linked with slave element
|
||||
* and display a cross ref item for know with what other element he is linked
|
||||
*/
|
||||
class MasterElement : public CustomElement
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MasterElement(const ElementsLocation &, QGraphicsItem * = 0, Diagram * = 0, int * = 0);
|
||||
~MasterElement();
|
||||
virtual void linkToElement(Element *elmt);
|
||||
virtual void unlinkAllElements();
|
||||
virtual void unlinkElement(Element *elmt);
|
||||
explicit MasterElement(const ElementsLocation &, QGraphicsItem * = 0, Diagram * = 0, int * = 0);
|
||||
~MasterElement();
|
||||
|
||||
virtual void linkToElement (Element *elmt);
|
||||
virtual void unlinkAllElements ();
|
||||
virtual void unlinkElement (Element *elmt);
|
||||
virtual void initLink (QETProject *project);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void updateLabel();
|
||||
void updateLabel();
|
||||
|
||||
private:
|
||||
CrossRefItem *cri_;
|
||||
CrossRefItem *cri_;
|
||||
CommentItem *m_ci;
|
||||
};
|
||||
|
||||
#endif // MASTERELEMENT_H
|
||||
|
||||
Reference in New Issue
Block a user