OGS
DiagramPrefsDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_DiagramPrefs.h"
18#include <QMainWindow>
19
20
21class DetailWindow;
22class DiagramList;
23class QCheckBox;
24
25namespace GeoLib
26{
27class Station;
28}
29
38class DiagramPrefsDialog : public QDialog, private Ui_DiagramPrefs
39{
40 Q_OBJECT
41
42public:
52 const QString& listName,
53 // DatabaseConnection* db,
54 QDialog* parent = nullptr);
55
62 QDialog* parent = nullptr);
63
71 explicit DiagramPrefsDialog(const QString& filename,
72 DetailWindow* window = nullptr,
73 QDialog* parent = nullptr);
74
75 ~DiagramPrefsDialog() override;
76
77private:
84
90 int loadFile(const QString &filename);
91
97 int loadList(const std::vector< std::pair<QDateTime, float> > &coords);
98
99 std::vector<DiagramList*> _list;
100 std::vector<QCheckBox*> _visability;
102
103private slots:
106 void accept() override;
107
109 void reject() override;
110
113
114signals:
115};
Creates a window containing a diagram.
Definition: DetailWindow.h:25
A List of data points and all the necessary meta-information to draw a graph.
Definition: DiagramList.h:29
A dialog that allows for setting preferences for a requested diagram.
void on_loadFileButton_clicked()
Instructions if the "Load File"-Button has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
int loadFile(const QString &filename)
DetailWindow * _window
void accept() override
int loadList(const std::vector< std::pair< QDateTime, float > > &coords)
std::vector< QCheckBox * > _visability
std::vector< DiagramList * > _list
A Station (observation site) is basically a Point with some additional information.
Definition: Station.h:37