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
*
dbse::SchemaTab::GetScene
()
const
25
{
26
return
GraphScene
;
27
}
28
29
QGraphicsView *
dbse::SchemaTab::GetView
()
const
30
{
31
return
GraphView
;
32
}
33
34
void
dbse::SchemaTab::setName
(
const
QString& name) {
35
m_name
= name;
36
}
37
38
void
dbse::SchemaTab::setFileName
(
const
QString& name) {
39
m_file_name
= name;
40
}
41
42
QString
dbse::SchemaTab::getFileName
() {
43
if
(
m_file_name
==
""
) {
44
QString fn =
"./"
;
45
fn.append(
m_name
);
46
//fn.append(".view");
47
return
fn;
48
}
49
else
{
50
return
m_file_name
;
51
}
52
}
53
54
dbse::SchemaTab::~SchemaTab
() =
default
;
SchemaTab.hpp
dbse::SchemaGraphicsScene
Definition
SchemaGraphicsScene.hpp:16
dbse::SchemaTab::m_name
QString m_name
Definition
SchemaTab.hpp:34
dbse::SchemaTab::setFileName
void setFileName(const QString &)
Definition
SchemaTab.cpp:38
dbse::SchemaTab::getFileName
QString getFileName()
Definition
SchemaTab.cpp:42
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:24
dbse::SchemaTab::GraphScene
SchemaGraphicsScene * GraphScene
Definition
SchemaTab.hpp:33
dbse::SchemaTab::setName
void setName(const QString &)
Definition
SchemaTab.cpp:34
dbse::SchemaTab::GetView
QGraphicsView * GetView() const
Definition
SchemaTab.cpp:29
dbse::SchemaTab::SchemaTab
SchemaTab(QWidget *parent=nullptr)
Including QT Headers.
Definition
SchemaTab.cpp:11
Generated on
for DUNE-DAQ by
1.17.0