OGS
DetailWindow.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_DetailWindow.h"
18#include <QWidget>
19
20
24class DetailWindow : public QWidget, private Ui_DetailWindow
25{
26 Q_OBJECT
27
28public:
30 explicit DetailWindow(QWidget* parent = nullptr);
36 explicit DetailWindow(QString filename, QWidget* parent = nullptr);
37
43 explicit DetailWindow(DiagramList* list, QWidget* parent = nullptr);
44
45 explicit DetailWindow(std::vector<std::size_t> data,
46 QWidget* parent = nullptr);
47
48 ~DetailWindow() override;
49
53 void addList(DiagramList* list);
54
58 void addList(DiagramList* list, QColor c);
59
60private:
62 void resizeWindow();
63
64private slots:
67};
Creates a window containing a diagram.
void on_addDataButton_clicked()
void on_closeButton_clicked()
void resizeWindow()
Automatically resize window based on the measurements of the included graphs.
DetailWindow(QWidget *parent=nullptr)
Creates an empty diagram window.
void addList(DiagramList *list)
~DetailWindow() override
A List of data points and all the necessary meta-information to draw a graph.
Definition DiagramList.h:29