OP-1900 have path_progress updated correctly for leg_remaining and error_below end...
[librepilot.git] / ground / openpilotgcs / src / plugins / notify / notifypluginfactory.cpp
blob454fafe949e6ba84f4446955bca54f538865f3c9
1 /**
2 ******************************************************************************
4 * @file notifypluginfactory.cpp
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
6 * @brief
7 * @see The GNU Public License (GPL) Version 3
8 * @defgroup notifyplugin
9 * @{
11 *****************************************************************************/
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "notifypluginfactory.h"
28 // #include "notifypluginwidget.h"
29 #include "notifyplugin.h"
30 #include "notifypluginconfiguration.h"
31 #include "notifypluginoptionspage.h"
32 #include <coreplugin/iuavgadget.h>
34 NotifyPluginFactory::NotifyPluginFactory(QObject *parent) :
35 IUAVGadgetFactory(QString("Notify Plugin"),
36 tr("Notify Plugin"),
37 parent)
40 NotifyPluginFactory::~NotifyPluginFactory()
43 Core::IUAVGadget *NotifyPluginFactory::createGadget(QWidget *parent)
45 // NotifyPluginWidget* gadgetWidget = new NotifyPluginWidget(parent);
46 return (Core::IUAVGadget *)0; // new NotifyPlugin(QString("NotifyPlugin"), gadgetWidget, parent);
49 IUAVGadgetConfiguration *NotifyPluginFactory::createConfiguration(const QByteArray &state)
51 return new NotifyPluginConfiguration(QString("Notify Plugin"), state);
54 IOptionsPage *NotifyPluginFactory::createOptionsPage(IUAVGadgetConfiguration *config)
56 return new NotifyPluginOptionsPage(qobject_cast<NotifyPluginConfiguration *>(config));