2014-02-22 17:24:20 +00:00
|
|
|
/*
|
2020-06-15 17:42:37 +02:00
|
|
|
Copyright 2006-2020 The QElectroTech Team
|
2014-02-22 17:24:20 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef SLAVEELEMENT_H
|
|
|
|
#define SLAVEELEMENT_H
|
|
|
|
|
2018-08-23 19:41:58 +00:00
|
|
|
#include "element.h"
|
2016-05-21 20:28:25 +00:00
|
|
|
#include"properties/xrefproperties.h"
|
2014-02-22 17:24:20 +00:00
|
|
|
|
2018-08-23 19:41:58 +00:00
|
|
|
class SlaveElement : public Element
|
2014-02-22 17:24:20 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-08-19 21:27:14 +02:00
|
|
|
explicit SlaveElement (const ElementsLocation &,
|
|
|
|
QGraphicsItem * = nullptr,
|
|
|
|
int * = nullptr);
|
2018-03-25 14:33:49 +00:00
|
|
|
~SlaveElement() override;
|
|
|
|
void linkToElement(Element *elmt) override;
|
|
|
|
void unlinkAllElements() override;
|
|
|
|
void unlinkElement(Element *elmt) override;
|
|
|
|
|
2014-03-21 14:40:33 +00:00
|
|
|
private:
|
2017-01-29 13:57:17 +00:00
|
|
|
QGraphicsTextItem *m_xref_item;
|
2014-02-22 17:24:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SLAVEELEMENT_H
|