DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
apps
SchemaEditor
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
11
dbse::SchemaTab::SchemaTab
(QWidget* parent)
12
: QWidget(parent)
13
{
15
GraphView
=
new
QGraphicsView();
16
GraphScene
=
new
SchemaGraphicsScene
(
this
);
17
GraphView
->setScene(
GraphScene
);
18
GraphView
->centerOn(0, 0);
20
QVBoxLayout* TabLayout =
new
QVBoxLayout(
this
);
21
TabLayout->addWidget(
GraphView
);
22
}
23
24
dbse::SchemaGraphicsScene
*
25
dbse::SchemaTab::GetScene
()
const
26
{
27
return
GraphScene
;
28
}
29
30
QGraphicsView*
31
dbse::SchemaTab::GetView
()
const
32
{
33
return
GraphView
;
34
}
35
36
void
37
dbse::SchemaTab::setName
(
const
QString& name)
38
{
39
m_name
= name;
40
}
41
42
void
43
dbse::SchemaTab::setFileName
(
const
QString& name)
44
{
45
m_file_name
= name;
46
}
47
48
QString
49
dbse::SchemaTab::getFileName
()
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
61
dbse::SchemaTab::~SchemaTab
() =
default
;
SchemaTab.hpp
dbse::SchemaGraphicsScene
Definition
SchemaGraphicsScene.hpp:15
dbse::SchemaGraphicsScene::SchemaGraphicsScene
SchemaGraphicsScene(QObject *parent=nullptr)
Definition
SchemaGraphicsScene.cpp:23
dbse::SchemaTab::m_name
QString m_name
Definition
SchemaTab.hpp:34
dbse::SchemaTab::setFileName
void setFileName(const QString &)
Definition
SchemaTab.cpp:43
dbse::SchemaTab::getFileName
QString getFileName()
Definition
SchemaTab.cpp:49
dbse::SchemaTab::~SchemaTab
~SchemaTab()
dbse::SchemaTab::GraphView
QGraphicsView * GraphView
Definition
SchemaTab.hpp:32
dbse::SchemaTab::m_file_name
QString m_file_name
Definition
SchemaTab.hpp:35
dbse::SchemaTab::GetScene
SchemaGraphicsScene * GetScene() const
Definition
SchemaTab.cpp:25
dbse::SchemaTab::GraphScene
SchemaGraphicsScene * GraphScene
Definition
SchemaTab.hpp:33
dbse::SchemaTab::setName
void setName(const QString &)
Definition
SchemaTab.cpp:37
dbse::SchemaTab::GetView
QGraphicsView * GetView() const
Definition
SchemaTab.cpp:31
dbse::SchemaTab::SchemaTab
SchemaTab(QWidget *parent=nullptr)
Including QT Headers.
Definition
SchemaTab.cpp:11
Generated on
for DUNE-DAQ by
1.18.0