You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
686 B
C++
33 lines
686 B
C++
#ifndef GSCUSTOMPLOT_H
|
|
#define GSCUSTOMPLOT_H
|
|
|
|
#pragma once
|
|
#include <QGroupBox>
|
|
#include "gs_headers.h"
|
|
|
|
class GSPlot;
|
|
|
|
|
|
class GSCustomPlot : public QGroupBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
GSCustomPlot(QWidget* parent = nullptr);
|
|
GSCustomPlot(QString iName, QWidget* parent = nullptr);
|
|
~GSCustomPlot();
|
|
|
|
static int GetNumberOfPlots() { return numPlots; }
|
|
QString GetName() const { return name; }
|
|
void SetName(QString iName) { name = iName; }
|
|
GSPlot& GetPlot() { return *customPlot; }
|
|
private:
|
|
GSPlot* customPlot;
|
|
QHBoxLayout* layout;
|
|
QString name;
|
|
static int numPlots;
|
|
void Init();
|
|
};
|
|
|
|
#endif // GSCUSTOMPLOT_H
|