dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
pfdqmlgadgetfactory.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
10  * for more details.
11  *
12  * You should have received a copy of the GNU General Public License along
13  * with this program; if not, see <http://www.gnu.org/licenses/>
14  */
15 #include "pfdqmlgadgetfactory.h"
16 #include "pfdqmlgadgetwidget.h"
17 #include "pfdqmlgadget.h"
20 #include <coreplugin/iuavgadget.h>
21 
23  : IUAVGadgetFactory(QString("PfdQmlGadget"), tr("PFD (qml)"), parent)
24 {
25 }
26 
28 {
29 }
30 
32 {
33  PfdQmlGadgetWidget *gadgetWidget = new PfdQmlGadgetWidget();
34  return new PfdQmlGadget(QString("PfdQmlGadget"), gadgetWidget, parent);
35 }
36 
37 IUAVGadgetConfiguration *PfdQmlGadgetFactory::createConfiguration(QSettings *qSettings)
38 {
39  return new PfdQmlGadgetConfiguration(QString("PfdQmlGadget"), qSettings);
40 }
41 
42 IOptionsPage *PfdQmlGadgetFactory::createOptionsPage(IUAVGadgetConfiguration *config)
43 {
44  return new PfdQmlGadgetOptionsPage(qobject_cast<PfdQmlGadgetConfiguration *>(config));
45 }
Core::IUAVGadget * createGadget(QWidget *parent)
IUAVGadgetConfiguration * createConfiguration(QSettings *qSettings)
PfdQmlGadgetFactory(QObject *parent=nullptr)
IOptionsPage * createOptionsPage(IUAVGadgetConfiguration *config)