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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

38 lines
669 B
C++

#include "gscustomplot.h"
#include "gsplot.h"
GSCustomPlot::GSCustomPlot(QWidget* parent) : QGroupBox(parent)
{
name = "Default Name";
Init();
}
GSCustomPlot::GSCustomPlot(QString iName, QWidget *parent) : QGroupBox(parent)
{
name = iName;
Init();
}
GSCustomPlot::~GSCustomPlot()
{
delete layout;
--numPlots;
}
int GSCustomPlot::numPlots = 0;
void GSCustomPlot::Init()
{
layout = new QHBoxLayout;
customPlot = new GSPlot(this);
layout->addWidget(customPlot);
setLayout(layout);
numPlots++;
setTitle(name);
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
}