29 lines
406 B
C++
29 lines
406 B
C++
#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();
|
|
|
|
void setSchema(std::optional<domain::Schema> schema);
|
|
|
|
private:
|
|
QGraphicsScene scene;
|
|
|
|
std::optional<domain::Schema> schema;
|
|
|
|
};
|
|
|
|
} // namespace display
|
|
|
|
#endif // DISPLAY_SCHEMA_H
|