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 {
|
|
|
|
|
|
|
|
class Schema: public QGraphicsView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Schema();
|
|
|
|
|
2022-04-09 19:11:17 +00:00
|
|
|
void setSchema(std::optional<domain::Schema> schema);
|
2022-04-07 22:21:23 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QGraphicsScene scene;
|
|
|
|
|
|
|
|
std::optional<domain::Schema> schema;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace display
|
|
|
|
|
|
|
|
#endif // DISPLAY_SCHEMA_H
|