DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CreateDatabaseWidget.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/CreateDatabaseWidget.h to include/dbe/CreateDatabaseWidget.hpp).
5
6#ifndef CREATEDATABASEWIDGET_H
7#define CREATEDATABASEWIDGET_H
8
10#include <QWidget>
11#include <QStatusBar>
12#include <QFileInfo>
14#include "ui_CreateDatabaseWidget.h"
15
16namespace dbe
17{
18
19namespace Ui
20{
21class CreateDatabaseWidget;
22} // namespace Ui
23
24class CreateDatabaseWidget: public QWidget, private dbe::Ui::CreateDatabaseWidget
25{
26 Q_OBJECT
27public:
28 CreateDatabaseWidget ( QWidget * parent = nullptr, bool Include = false,
29 const QString & CreateDir = QString() );
30
31signals:
32 void CanLoadDatabase ( const QString & DatabasePath );
33 void CanIncludeDatabase ( const QString & DatabasePath );
34
35private:
36 QStatusBar * StatusBar;
37 QFileInfo DatabaseFile;
38 QFileInfo SchemaFile;
39 QString DirToCreate;
41 std::list<std::string> get_includes();
42private slots:
43 void DefineSchema();
44 void DefineDatabaseFile();
48};
49
50} // end namespace dbe
51#endif // CREATEDATABASEWIDGET_H
void CanLoadDatabase(const QString &DatabasePath)
std::list< std::string > get_includes()
void CanIncludeDatabase(const QString &DatabasePath)
CreateDatabaseWidget(QWidget *parent=nullptr, bool Include=false, const QString &CreateDir=QString())
Include QT Headers.