Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / plugins / importexport / importexportgadget.cpp
blobe3080d8b86d45f25431728b066278a965596e624
1 /**
2 ******************************************************************************
4 * @file importexportgadget.cpp
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
6 * @see The GNU Public License (GPL) Version 3
7 * @brief Gadget for Import/Export Plugin
8 * @addtogroup GCSPlugins GCS Plugins
9 * @{
10 * @addtogroup importexportplugin
11 * @{
13 *****************************************************************************/
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.
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.
25 * You should have received a copy of the GNU General Public License along
26 * with this program; if not, write to the Free Software Foundation, Inc.,
27 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #include "importexportgadget.h"
31 #include "importexportgadgetwidget.h"
32 #include "importexportgadgetconfiguration.h"
34 ImportExportGadget::ImportExportGadget(QString classId, ImportExportGadgetWidget *widget, QWidget *parent) :
35 IUAVGadget(classId, parent),
36 m_widget(widget)
39 ImportExportGadget::~ImportExportGadget()
41 delete m_widget;
45 This is called when a configuration is loaded, and updates the plugin's settings.
46 Careful: the plugin is already drawn before the loadConfiguration method is called the
47 first time, so you have to be careful not to assume all the plugin values are initialized
48 the first time you use them
50 void ImportExportGadget::loadConfiguration(IUAVGadgetConfiguration *config)
52 m_widget->loadConfiguration(qobject_cast<ImportExportGadgetConfiguration *>(config));
54 /**
55 * @}
56 * @}