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
11dbse::SchemaTab::SchemaTab ( QWidget * parent )
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
28
29QGraphicsView * dbse::SchemaTab::GetView() const
30{
31 return GraphView;
32}
33
34void dbse::SchemaTab::setName(const QString& name) {
35 m_name = name;
36}
37
38void dbse::SchemaTab::setFileName(const QString& name) {
39 m_file_name = name;
40}
41
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
void setFileName(const QString &)
Definition SchemaTab.cpp:38
QString getFileName()
Definition SchemaTab.cpp:42
QGraphicsView * GraphView
Definition SchemaTab.hpp:32
QString m_file_name
Definition SchemaTab.hpp:35
SchemaGraphicsScene * GetScene() const
Definition SchemaTab.cpp:24
SchemaGraphicsScene * GraphScene
Definition SchemaTab.hpp:33
void setName(const QString &)
Definition SchemaTab.cpp:34
QGraphicsView * GetView() const
Definition SchemaTab.cpp:29
SchemaTab(QWidget *parent=nullptr)
Including QT Headers.
Definition SchemaTab.cpp:11