DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaTab.cpp
Go to the documentation of this file.
1
2#include <QVBoxLayout>
4#include "dbe/SchemaTab.hpp"
5
6dbse::SchemaTab::SchemaTab ( QWidget * parent )
7 : QWidget ( parent )
8{
10 GraphView = new QGraphicsView();
12 GraphView->setScene ( GraphScene );
13 GraphView->centerOn ( 0, 0 );
15 QVBoxLayout * TabLayout = new QVBoxLayout ( this );
16 TabLayout->addWidget ( GraphView );
17}
18
20{
21 return GraphScene;
22}
23
24QGraphicsView * dbse::SchemaTab::GetView() const
25{
26 return GraphView;
27}
28
29void dbse::SchemaTab::setName(const QString& name) {
30 m_name = name;
31}
32
33void dbse::SchemaTab::setFileName(const QString& name) {
34 m_file_name = name;
35}
36
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
void setFileName(const QString &)
Definition SchemaTab.cpp:33
QString getFileName()
Definition SchemaTab.cpp:37
QGraphicsView * GraphView
Definition SchemaTab.hpp:27
SchemaGraphicsScene * GetScene() const
Definition SchemaTab.cpp:19
SchemaGraphicsScene * GraphScene
Definition SchemaTab.hpp:28
void setName(const QString &)
Definition SchemaTab.cpp:29
QGraphicsView * GetView() const
Definition SchemaTab.cpp:24
SchemaTab(QWidget *parent=nullptr)
Including QT Headers.
Definition SchemaTab.cpp:6