2010-03-19 17:31:35 +00:00
|
|
|
/*
|
|
|
|
* scopegadgetfactory.cpp
|
|
|
|
*
|
|
|
|
* Created on: Mar 11, 2010
|
|
|
|
* Author: peter
|
|
|
|
*/
|
|
|
|
#include "scopegadgetfactory.h"
|
|
|
|
#include "scopegadgetwidget.h"
|
|
|
|
#include "scopegadget.h"
|
|
|
|
#include <coreplugin/iuavgadget.h>
|
|
|
|
|
2010-03-24 19:50:09 +00:00
|
|
|
ScopeGadgetFactory::ScopeGadgetFactory(QObject *parent) :
|
|
|
|
IUAVGadgetFactory(QString("ScopeGadget"),
|
|
|
|
tr("Scope Gadget"),
|
|
|
|
parent)
|
2010-03-19 17:31:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ScopeGadgetFactory::~ScopeGadgetFactory()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-03-27 19:24:21 +00:00
|
|
|
Core::IUAVGadget* ScopeGadgetFactory::createGadget(QWidget *parent) {
|
|
|
|
ScopeGadgetWidget* gadgetWidget = new ScopeGadgetWidget(parent);
|
|
|
|
return new ScopeGadget(QString("ScopeGadget"), gadgetWidget, parent);
|
2010-03-19 17:31:35 +00:00
|
|
|
}
|