2014-07-23 19:54:25 +00:00
|
|
|
/*
|
2021-02-20 12:13:46 +01:00
|
|
|
Copyright 2006-2021 The QElectroTech Team
|
2014-07-23 19:54:25 +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 TERMINALELEMENT_H
|
|
|
|
#define TERMINALELEMENT_H
|
|
|
|
|
2018-08-23 19:41:58 +00:00
|
|
|
|
|
|
|
#include "element.h"
|
2021-09-10 23:30:20 +02:00
|
|
|
#include "../TerminalStrip/terminalstrip.h"
|
2014-07-23 19:54:25 +00:00
|
|
|
|
2016-09-02 05:28:26 +00:00
|
|
|
class QETProject;
|
2020-07-15 18:20:08 +02:00
|
|
|
/**
|
|
|
|
@brief The TerminalElement class
|
|
|
|
*/
|
2018-08-23 19:41:58 +00:00
|
|
|
class TerminalElement : public Element
|
2014-07-23 19:54:25 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-07-15 18:20:08 +02:00
|
|
|
TerminalElement(const ElementsLocation &,
|
|
|
|
QGraphicsItem * = nullptr, int * = nullptr);
|
2017-08-05 02:10:01 +00:00
|
|
|
~TerminalElement() override;
|
|
|
|
void initLink(QETProject *project) override;
|
2021-09-10 23:30:20 +02:00
|
|
|
|
|
|
|
void setParentTerminalStrip(TerminalStrip *strip);
|
|
|
|
TerminalStrip *parentTerminalStrip() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QPointer<TerminalStrip> m_parent_terminal_strip;
|
2014-07-23 19:54:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TERMINALELEMENT_H
|