Documentation of
MARTY
A
M
odern
AR
tificial
T
heoretical ph
Y
sicist
grafed
grafed-gui
edgeform.h
Go to the documentation of this file.
1
// This file is part of MARTY.
2
//
3
// MARTY is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, either version 3 of the License, or
6
// (at your option) any later version.
7
//
8
// MARTY is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with MARTY. If not, see <https://www.gnu.org/licenses/>.
15
23
#ifndef EDGEFORM_H
24
#define EDGEFORM_H
25
26
#include <QWidget>
27
28
namespace
Ui
{
29
class
EdgeForm
;
30
}
31
32
class
Edge
;
33
class
DiagramRenderer
;
34
class
EdgeForm
:
public
QWidget
35
{
36
Q_OBJECT
37
38
public
:
39
explicit
EdgeForm
(
40
Edge
*edge,
41
DiagramRenderer
*parent =
nullptr
);
42
43
~
EdgeForm
();
44
45
public
slots:
46
47
void
particleTypeChange(
int
row,
int
col);
48
void
setFlipped(
int
state);
49
void
changeColor();
50
51
private
:
52
Ui::EdgeForm *ui;
53
Edge
*edge;
54
DiagramRenderer
*renderer;
55
56
};
57
58
#endif // EDGEFORM_H
Ui
Definition:
diagramrenderer.h:34
EdgeForm
Definition:
edgeform.h:34
Edge
Definition:
edge.h:40
DiagramRenderer
Definition:
diagramrenderer.h:40
Generated by
1.8.13