39 lines
713 B
C++
39 lines
713 B
C++
#ifndef PROJECTSETTINGS_H
|
|
#define PROJECTSETTINGS_H
|
|
|
|
#include <QDialog>
|
|
#include <QLineEdit>
|
|
#include <QSettings>
|
|
|
|
struct ProjectMetadata
|
|
{
|
|
QString projectName;
|
|
QString experimenter;
|
|
QString experiment;
|
|
QString condition;
|
|
QString subject;
|
|
QString setupName;
|
|
QString comment;
|
|
};
|
|
|
|
|
|
//! [0]
|
|
class ProjectSettings : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ProjectSettings(QWidget *parent = nullptr);
|
|
~ProjectSettings();
|
|
|
|
ProjectMetadata getMetadata();
|
|
|
|
private:
|
|
ProjectMetadata metadata;
|
|
QSettings settings;
|
|
QLineEdit *projectEdit, *experimentEdit, *experimenterEdit, *subjectEdit, *setupEdit, *conditionEdit, *commentEdit;
|
|
|
|
void accept();
|
|
|
|
};
|
|
|
|
#endif |