1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-09 20:46:07 +01:00
LibrePilot/ground/src/plugins/emptygadget/emptygadgetfactory.cpp

27 lines
622 B
C++
Raw Normal View History

/*
* emptygadgetfactory.cpp
*
* Created on: Mar 11, 2010
* Author: peter
*/
#include "emptygadgetfactory.h"
#include "emptygadgetwidget.h"
#include "emptygadget.h"
#include <coreplugin/iuavgadget.h>
EmptyGadgetFactory::EmptyGadgetFactory(QObject *parent) : IUAVGadgetFactory(parent)
{
m_name = tr("Choose gadget...");
m_gadgetKind = QString("EmptyGadget");
}
EmptyGadgetFactory::~EmptyGadgetFactory()
{
}
Core::IUAVGadget* EmptyGadgetFactory::createUAVGadget(QWidget *parent) {
EmptyGadgetWidget* gadgetWidget = new EmptyGadgetWidget(parent);
return new EmptyGadget(gadgetWidget);
}