DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaTab.cpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from src/SchemaEditor/SchemaTab.cpp to apps/SchemaEditor/SchemaTab.cpp).
5
7#include <QVBoxLayout>
9#include "dbe/SchemaTab.hpp"
10
12 : QWidget(parent)
13{
15 GraphView = new QGraphicsView();
17 GraphView->setScene(GraphScene);
18 GraphView->centerOn(0, 0);
20 QVBoxLayout* TabLayout = new QVBoxLayout(this);
21 TabLayout->addWidget(GraphView);
22}
23
26{
27 return GraphScene;
28}
29
30QGraphicsView*
32{
33 return GraphView;
34}
35
36void
37dbse::SchemaTab::setName(const QString& name)
38{
39 m_name = name;
40}
41
42void
43dbse::SchemaTab::setFileName(const QString& name)
44{
45 m_file_name = name;
46}
47
48QString
50{
51 if (m_file_name == "") {
52 QString fn = "./";
53 fn.append(m_name);
54 // fn.append(".view");
55 return fn;
56 } else {
57 return m_file_name;
58 }
59}
60
SchemaGraphicsScene(QObject *parent=nullptr)
void setFileName(const QString &)
Definition SchemaTab.cpp:43
QString getFileName()
Definition SchemaTab.cpp:49
QGraphicsView * GraphView
Definition SchemaTab.hpp:32
QString m_file_name
Definition SchemaTab.hpp:35
SchemaGraphicsScene * GetScene() const
Definition SchemaTab.cpp:25
SchemaGraphicsScene * GraphScene
Definition SchemaTab.hpp:33
void setName(const QString &)
Definition SchemaTab.cpp:37
QGraphicsView * GetView() const
Definition SchemaTab.cpp:31
SchemaTab(QWidget *parent=nullptr)
Including QT Headers.
Definition SchemaTab.cpp:11