1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00
LibrePilot/ground/src/plugins/scope/scopegadgetfactory.cpp

28 lines
732 B
C++
Raw Normal View History

/*
* scopegadgetfactory.cpp
*
* Created on: Mar 11, 2010
* Author: peter
*/
#include "scopegadgetfactory.h"
#include "scopegadgetwidget.h"
#include "scopegadget.h"
#include <coreplugin/iuavgadget.h>
ScopeGadgetFactory::ScopeGadgetFactory(QObject *parent) :
IUAVGadgetFactory(QString("ScopeGadget"),
tr("Scope Gadget"),
parent)
{
}
ScopeGadgetFactory::~ScopeGadgetFactory()
{
}
Core::IUAVGadget* ScopeGadgetFactory::createGadget(QList<IUAVGadgetConfiguration*> *configurations, QWidget *parent) {
ScopeGadgetWidget* gadgetWidget = new ScopeGadgetWidget(parent);
return new ScopeGadget(QString("ScopeGadget"), configurations, gadgetWidget);
}