QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
terminalelement.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef TERMINALELEMENT_H
19#define TERMINALELEMENT_H
20
21
22#include "element.h"
23#include "../TerminalStrip/terminalstrip.h"
24
25class QETProject;
26class RealTerminal;
31{
32 Q_OBJECT
33 public:
35 QGraphicsItem * = nullptr, int * = nullptr);
36 ~TerminalElement() override;
37 void initLink(QETProject *project) override;
38
39 QSharedPointer<RealTerminal> realTerminal() const;
42
43 private:
44 QSharedPointer<RealTerminal> m_real_terminal;
45};
46
47#endif // TERMINALELEMENT_H
Definition element.h:43
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition elementslocation.h:47
Definition qetproject.h:62
The RealTerminal class Represent a real terminal. A real terminal can be a drawn terminal in a folio ...
Definition realterminal.h:43
The TerminalElement class.
Definition terminalelement.h:31
TerminalStrip * parentTerminalStrip() const
TerminalElement::parentTerminalStrip.
Definition terminalelement.cpp:60
QSharedPointer< RealTerminal > m_real_terminal
Definition terminalelement.h:44
QSharedPointer< RealTerminal > realTerminal() const
TerminalElement::realTerminal.
Definition terminalelement.cpp:51
~TerminalElement() override
Definition terminalelement.cpp:36
void setParentTerminalStrip(TerminalStrip *strip)
void initLink(QETProject *project) override
TerminalElement::initLink.
Definition terminalelement.cpp:43
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45