LCOV - code coverage report
Current view: top level - dbe/apps/SchemaEditor - SchemaTab.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 26 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 7 0

            Line data    Source code
       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              : 
       6              : /// Including QT Headers
       7              : #include <QVBoxLayout>
       8              : /// Including Schema Editor
       9              : #include "dbe/SchemaTab.hpp"
      10              : 
      11            0 : dbse::SchemaTab::SchemaTab(QWidget* parent)
      12            0 :   : QWidget(parent)
      13              : {
      14              :   /// Generating view/schema
      15            0 :   GraphView = new QGraphicsView();
      16            0 :   GraphScene = new SchemaGraphicsScene(this);
      17            0 :   GraphView->setScene(GraphScene);
      18            0 :   GraphView->centerOn(0, 0);
      19              :   /// Adjusting layout
      20            0 :   QVBoxLayout* TabLayout = new QVBoxLayout(this);
      21            0 :   TabLayout->addWidget(GraphView);
      22            0 : }
      23              : 
      24              : dbse::SchemaGraphicsScene*
      25            0 : dbse::SchemaTab::GetScene() const
      26              : {
      27            0 :   return GraphScene;
      28              : }
      29              : 
      30              : QGraphicsView*
      31            0 : dbse::SchemaTab::GetView() const
      32              : {
      33            0 :   return GraphView;
      34              : }
      35              : 
      36              : void
      37            0 : dbse::SchemaTab::setName(const QString& name)
      38              : {
      39            0 :   m_name = name;
      40            0 : }
      41              : 
      42              : void
      43            0 : dbse::SchemaTab::setFileName(const QString& name)
      44              : {
      45            0 :   m_file_name = name;
      46            0 : }
      47              : 
      48              : QString
      49            0 : dbse::SchemaTab::getFileName()
      50              : {
      51            0 :   if (m_file_name == "") {
      52            0 :     QString fn = "./";
      53            0 :     fn.append(m_name);
      54              :     // fn.append(".view");
      55              :     return fn;
      56            0 :   } else {
      57            0 :     return m_file_name;
      58              :   }
      59              : }
      60              : 
      61            0 : dbse::SchemaTab::~SchemaTab() = default;
        

Generated by: LCOV version 2.0-1