DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
apps
SchemaEditor
SchemaTab.cpp
Go to the documentation of this file.
1
2
#include <QVBoxLayout>
4
#include "
dbe/SchemaTab.hpp
"
5
6
dbse::SchemaTab::SchemaTab
( QWidget * parent )
7
: QWidget ( parent )
8
{
10
GraphView
=
new
QGraphicsView();
11
GraphScene
=
new
SchemaGraphicsScene
(
this
);
12
GraphView
->setScene (
GraphScene
);
13
GraphView
->centerOn ( 0, 0 );
15
QVBoxLayout * TabLayout =
new
QVBoxLayout (
this
);
16
TabLayout->addWidget (
GraphView
);
17
}
18
19
dbse::SchemaGraphicsScene
*
dbse::SchemaTab::GetScene
()
const
20
{
21
return
GraphScene
;
22
}
23
24
QGraphicsView *
dbse::SchemaTab::GetView
()
const
25
{
26
return
GraphView
;
27
}
28
29
void
dbse::SchemaTab::setName
(
const
QString& name) {
30
m_name
= name;
31
}
32
33
void
dbse::SchemaTab::setFileName
(
const
QString& name) {
34
m_file_name
= name;
35
}
36
37
QString
dbse::SchemaTab::getFileName
() {
38
if
(
m_file_name
==
""
) {
39
QString fn =
"./"
;
40
fn.append(
m_name
);
41
//fn.append(".view");
42
return
fn;
43
}
44
else
{
45
return
m_file_name
;
46
}
47
}
48
49
dbse::SchemaTab::~SchemaTab
() =
default
;
SchemaTab.hpp
dbse::SchemaGraphicsScene
Definition
SchemaGraphicsScene.hpp:16
dbse::SchemaTab::m_name
QString m_name
Definition
SchemaTab.hpp:29
dbse::SchemaTab::setFileName
void setFileName(const QString &)
Definition
SchemaTab.cpp:33
dbse::SchemaTab::getFileName
QString getFileName()
Definition
SchemaTab.cpp:37
dbse::SchemaTab::~SchemaTab
~SchemaTab()
dbse::SchemaTab::GraphView
QGraphicsView * GraphView
Definition
SchemaTab.hpp:27
dbse::SchemaTab::m_file_name
QString m_file_name
Definition
SchemaTab.hpp:30
dbse::SchemaTab::GetScene
SchemaGraphicsScene * GetScene() const
Definition
SchemaTab.cpp:19
dbse::SchemaTab::GraphScene
SchemaGraphicsScene * GraphScene
Definition
SchemaTab.hpp:28
dbse::SchemaTab::setName
void setName(const QString &)
Definition
SchemaTab.cpp:29
dbse::SchemaTab::GetView
QGraphicsView * GetView() const
Definition
SchemaTab.cpp:24
dbse::SchemaTab::SchemaTab
SchemaTab(QWidget *parent=nullptr)
Including QT Headers.
Definition
SchemaTab.cpp:6
Generated on
for DUNE-DAQ by
1.16.1