dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
importexportgadget.cpp
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #include "importexportgadget.h"
31 #include "importexportgadgetconfiguration.h"
32 
34  QWidget *parent)
35  : IUAVGadget(classId, parent)
36  , m_widget(widget)
37 {
38 }
39 
41 {
42  delete m_widget;
43 }
44 
45 /*
46  This is called when a configuration is loaded, and updates the plugin's settings.
47  Careful: the plugin is already drawn before the loadConfiguration method is called the
48  first time, so you have to be careful not to assume all the plugin values are initialized
49  the first time you use them
50  */
51 void ImportExportGadget::loadConfiguration(IUAVGadgetConfiguration *config)
52 {
53  m_widget->loadConfiguration(qobject_cast<ImportExportGadgetConfiguration *>(config));
54 }
ImportExportGadget(QString classId, ImportExportGadgetWidget *widget, QWidget *parent=0)
void loadConfiguration(IUAVGadgetConfiguration *config)