DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
SchemaCustomModelInterface.hpp
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 dbe/SchemaCustomModelInterface.h to include/dbe/SchemaCustomModelInterface.hpp).
5
6
#ifndef CUSTOMMODELINTERFACE_H
7
#define CUSTOMMODELINTERFACE_H
8
10
#include <QAbstractTableModel>
11
#include <QStringList>
12
13
namespace
dbse
14
{
15
16
class
CustomModelInterface
:
public
QAbstractTableModel
17
{
18
Q_OBJECT
19
public
:
20
explicit
CustomModelInterface
( QStringList Headers, QObject * parent =
nullptr
);
21
~CustomModelInterface
();
22
int
rowCount
(
const
QModelIndex & parent )
const
;
23
int
columnCount
(
const
QModelIndex & parent )
const
;
24
Qt::ItemFlags
flags
(
const
QModelIndex & index )
const
;
25
QVariant
headerData
(
int
section, Qt::Orientation orientation,
int
role )
const
;
26
QVariant
data
(
const
QModelIndex & index,
int
role )
const
;
27
QStringList
getRowFromIndex
( QModelIndex & index );
28
virtual
void
setupModel
() = 0;
29
protected
:
30
QStringList
HeaderList
;
31
QList<QStringList>
Data
;
32
};
33
34
}
// namespace dbse
35
#endif
// CUSTOMMODELINTERFACE_H
dbse::CustomModelInterface::HeaderList
QStringList HeaderList
Definition
SchemaCustomModelInterface.hpp:30
dbse::CustomModelInterface::data
QVariant data(const QModelIndex &index, int role) const
Definition
SchemaCustomModelInterface.cpp:55
dbse::CustomModelInterface::rowCount
int rowCount(const QModelIndex &parent) const
Definition
SchemaCustomModelInterface.cpp:21
dbse::CustomModelInterface::headerData
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition
SchemaCustomModelInterface.cpp:39
dbse::CustomModelInterface::getRowFromIndex
QStringList getRowFromIndex(QModelIndex &index)
Definition
SchemaCustomModelInterface.cpp:77
dbse::CustomModelInterface::~CustomModelInterface
~CustomModelInterface()
Definition
SchemaCustomModelInterface.cpp:17
dbse::CustomModelInterface::flags
Qt::ItemFlags flags(const QModelIndex &index) const
Definition
SchemaCustomModelInterface.cpp:33
dbse::CustomModelInterface::setupModel
virtual void setupModel()=0
dbse::CustomModelInterface::CustomModelInterface
CustomModelInterface(QStringList Headers, QObject *parent=nullptr)
Including Schema Editor.
Definition
SchemaCustomModelInterface.cpp:11
dbse::CustomModelInterface::columnCount
int columnCount(const QModelIndex &parent) const
Definition
SchemaCustomModelInterface.cpp:27
dbse::CustomModelInterface::Data
QList< QStringList > Data
Definition
SchemaCustomModelInterface.hpp:31
dbse
Including QT Headers.
Definition
SchemaAttributeEditor.hpp:14
Generated on
for DUNE-DAQ by
1.17.0