2022-04-07 22:21:23 +00:00
|
|
|
#ifndef DISPLAY_SCHEMA_H
|
|
|
|
#define DISPLAY_SCHEMA_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QGraphicsView>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include <comdel/domain/schema.h>
|
|
|
|
|
|
|
|
namespace display {
|
|
|
|
|
2022-05-17 22:14:33 +00:00
|
|
|
class BusConnection;
|
|
|
|
|
2022-04-07 22:21:23 +00:00
|
|
|
class Schema: public QGraphicsView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Schema();
|
|
|
|
|
2022-05-17 22:14:33 +00:00
|
|
|
std::vector<BusConnection*> connections;
|
|
|
|
|
2022-04-18 09:41:02 +00:00
|
|
|
void setSchema(domain::Schema* schema);
|
2022-04-07 22:21:23 +00:00
|
|
|
|
2022-05-17 22:14:33 +00:00
|
|
|
void updateConnections();
|
|
|
|
|
2022-04-07 22:21:23 +00:00
|
|
|
private:
|
|
|
|
QGraphicsScene scene;
|
|
|
|
|
2022-04-18 09:41:02 +00:00
|
|
|
domain::Schema* schema;
|
2022-04-07 22:21:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace display
|
|
|
|
|
|
|
|
#endif // DISPLAY_SCHEMA_H
|