mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
Diagram command add QGraphicsItem and derived :
Remove each comand for each type and replace it by generic class by using template class (addItemComand). git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3368 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -147,14 +147,15 @@ class Diagram : public QGraphicsScene {
|
||||
|
||||
// methods related to graphics items addition/removal on the diagram
|
||||
void initElementsLinks();
|
||||
void addElement(Element *);
|
||||
void addConductor(Conductor *);
|
||||
void addIndependentTextItem(IndependentTextItem *);
|
||||
void addDiagramImageItem(DiagramImageItem *);
|
||||
|
||||
void removeElement(Element *);
|
||||
void removeConductor(Conductor *);
|
||||
void removeIndependentTextItem(IndependentTextItem *);
|
||||
virtual void addItem (Element *element);
|
||||
virtual void addItem (Conductor *conductor);
|
||||
virtual void addItem (IndependentTextItem *iti);
|
||||
virtual void addItem (QGraphicsItem *item);
|
||||
|
||||
virtual void removeItem (Element *element);
|
||||
virtual void removeItem (Conductor *conductor);
|
||||
virtual void removeItem (IndependentTextItem *iti);
|
||||
virtual void removeItem (QGraphicsItem *item);
|
||||
|
||||
// methods related to graphics options
|
||||
ExportProperties applyProperties(const ExportProperties &);
|
||||
|
||||
Reference in New Issue
Block a user