Schim
gterminal.h
1 #ifndef GTERMINAL_H
2 #define GTERMINAL_H
3 
4 #include "gobject.h"
5 
6 #include "model/terminal.h"
7 
8 class GTerminal : public GObject
9 {
10 public:
11  explicit GTerminal(Terminal *obj);
12 
13  // GETTERS
14  Terminal *get();
15  const Terminal *get() const;
16 
17  void reloadFromModel() override;
18  void applyToModel() override;
19 
20 protected:
21  // QGraphicsItem INTERFACE
22  QRectF boundingRect() const override;
23  void paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*) override;
24  QVariant itemChange(GraphicsItemChange, const QVariant &) override;
25 };
26 
27 class GConnectionSuggester : public QGraphicsLineItem
28 {
29 public:
31 };
32 
33 #endif // GTERMINAL_H
Definition: gterminal.h:27
Object * obj
The object that is being wrapped.
Definition: gobject.h:177
void applyToModel() override
Apply changes to the underlying model object.
Definition: terminal.h:16
The base class of all objects represented in a graphical scene.
Definition: gobject.h:24
Definition: gterminal.h:8
Definition: terminal.h:45
void reloadFromModel() override
Update the graphical representation to match the object from the model.