dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
notifypluginfactory.cpp
Go to the documentation of this file.
1
15
/*
16
* This program is free software; you can redistribute it and/or modify
17
* it under the terms of the GNU General Public License as published by
18
* the Free Software Foundation; either version 3 of the License, or
19
* (at your option) any later version.
20
*
21
* This program is distributed in the hope that it will be useful, but
22
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24
* for more details.
25
*
26
* You should have received a copy of the GNU General Public License along
27
* with this program; if not, see <http://www.gnu.org/licenses/>
28
*/
29
#include "
notifypluginfactory.h
"
30
//#include "notifypluginwidget.h"
31
#include "
notifyplugin.h
"
32
#include "notifypluginconfiguration.h"
33
#include "
notifypluginoptionspage.h
"
34
#include <
coreplugin/iuavgadget.h
>
35
36
NotifyPluginFactory::NotifyPluginFactory
(QObject *parent)
37
: IUAVGadgetFactory(QString(
"Notify Plugin"
), tr(
"Notify Plugin"
), parent)
38
{
39
}
40
41
NotifyPluginFactory::~NotifyPluginFactory
() {}
42
43
Core::IUAVGadget
*
NotifyPluginFactory::createGadget
(QWidget *parent)
44
{
45
// NotifyPluginWidget* gadgetWidget = new NotifyPluginWidget(parent);
46
return
nullptr
;
// new NotifyPlugin(QString("NotifyPlugin"), gadgetWidget,
47
// parent);
48
}
49
50
IUAVGadgetConfiguration *
NotifyPluginFactory::createConfiguration
(
const
QByteArray &state)
51
{
52
return
new
NotifyPluginConfiguration(QString(
"Notify Plugin"
), state);
53
}
54
55
IOptionsPage *
NotifyPluginFactory::createOptionsPage
(IUAVGadgetConfiguration *config)
56
{
57
return
new
NotifyPluginOptionsPage
(qobject_cast<NotifyPluginConfiguration *>(config));
58
}
Core::IUAVGadget
Definition:
iuavgadget.h:45
NotifyPluginOptionsPage
Definition:
notifypluginoptionspage.h:57
NotifyPluginFactory::createOptionsPage
IOptionsPage * createOptionsPage(IUAVGadgetConfiguration *config)
Definition:
notifypluginfactory.cpp:55
notifypluginoptionspage.h
Notify Plugin options page header.
iuavgadget.h
NotifyPluginFactory::createGadget
Core::IUAVGadget * createGadget(QWidget *parent)
Definition:
notifypluginfactory.cpp:43
NotifyPluginFactory::createConfiguration
IUAVGadgetConfiguration * createConfiguration(const QByteArray &state)
Definition:
notifypluginfactory.cpp:50
notifypluginfactory.h
NotifyPluginFactory::NotifyPluginFactory
NotifyPluginFactory(QObject *parent=0)
Definition:
notifypluginfactory.cpp:36
notifyplugin.h
NotifyPluginFactory::~NotifyPluginFactory
~NotifyPluginFactory()
Definition:
notifypluginfactory.cpp:41
ground
gcs
src
plugins
notify
notifypluginfactory.cpp
Generated by
1.8.6