OGS
DiagramPrefsDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include "ui_DiagramPrefs.h"
7#include <QMainWindow>
8
9
10class DetailWindow;
11class DiagramList;
12class QCheckBox;
13
14namespace GeoLib
15{
16class Station;
17}
18
27class DiagramPrefsDialog : public QDialog, private Ui_DiagramPrefs
28{
29 Q_OBJECT
30
31public:
41 const QString& listName,
42 // DatabaseConnection* db,
43 QDialog* parent = nullptr);
44
51 QDialog* parent = nullptr);
52
60 explicit DiagramPrefsDialog(const QString& filename,
61 DetailWindow* window = nullptr,
62 QDialog* parent = nullptr);
63
64 ~DiagramPrefsDialog() override;
65
66private:
73
79 int loadFile(const QString &filename);
80
86 int loadList(const std::vector< std::pair<QDateTime, float> > &coords);
87
88 std::vector<DiagramList*> _list;
89 std::vector<QCheckBox*> _visability;
91
92private slots:
95 void accept() override;
96
98 void reject() override;
99
102
103signals:
104};
Creates a window containing a diagram.
A List of data points and all the necessary meta-information to draw a graph.
Definition DiagramList.h:18
void on_loadFileButton_clicked()
Instructions if the "Load File"-Button has been pressed.
DiagramPrefsDialog(const GeoLib::Station *stn, const QString &listName, QDialog *parent=nullptr)
void reject() override
Instructions if the Cancel-Button has been pressed.
int loadFile(const QString &filename)
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:26