2012-04-18 02:40:24 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
* @file configpipxtremewidget.h
|
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
|
|
|
|
* @addtogroup GCSPlugins GCS Plugins
|
|
|
|
* @{
|
|
|
|
* @addtogroup ConfigPlugin Config Plugin
|
|
|
|
* @{
|
|
|
|
* @brief The Configuration Gadget used to configure PipXtreme
|
|
|
|
*****************************************************************************/
|
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
#ifndef CONFIGPIPXTREMEWIDGET_H
|
|
|
|
#define CONFIGPIPXTREMEWIDGET_H
|
|
|
|
|
2013-01-31 14:37:03 +01:00
|
|
|
#include <oplinksettings.h>
|
|
|
|
|
2012-04-18 02:40:24 +02:00
|
|
|
#include "ui_pipxtreme.h"
|
|
|
|
#include "configtaskwidget.h"
|
|
|
|
|
|
|
|
class ConfigPipXtremeWidget : public ConfigTaskWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
ConfigPipXtremeWidget(QWidget *parent = 0);
|
|
|
|
~ConfigPipXtremeWidget();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void updateStatus(UAVObject *object1);
|
2012-05-12 02:51:18 +02:00
|
|
|
void updateSettings(UAVObject *object1);
|
2013-01-31 14:37:03 +01:00
|
|
|
void refreshBindingsList();
|
2012-04-18 02:40:24 +02:00
|
|
|
|
|
|
|
private:
|
2012-10-20 20:48:22 +02:00
|
|
|
Ui_PipXtremeWidget *m_oplink;
|
2012-04-18 02:40:24 +02:00
|
|
|
|
2012-10-20 20:48:22 +02:00
|
|
|
// The OPLink status UAVObject
|
|
|
|
UAVDataObject* oplinkStatusObj;
|
2012-04-18 02:40:24 +02:00
|
|
|
|
2012-10-20 20:48:22 +02:00
|
|
|
// The OPLink ssettins UAVObject
|
2013-01-31 14:37:03 +01:00
|
|
|
OPLinkSettings* oplinkSettingsObj;
|
2012-05-12 02:51:18 +02:00
|
|
|
|
|
|
|
bool settingsUpdated;
|
|
|
|
|
2012-04-18 02:40:24 +02:00
|
|
|
private slots:
|
|
|
|
void refreshValues();
|
|
|
|
void applySettings();
|
|
|
|
void saveSettings();
|
2012-05-12 22:16:36 +02:00
|
|
|
void disconnected();
|
2013-01-31 14:37:03 +01:00
|
|
|
void pairIDToggled(bool checked);
|
|
|
|
void addBinding();
|
|
|
|
void removeBinding();
|
|
|
|
void bindingsSelectionChanged();
|
2012-04-18 02:40:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONFIGTXPIDWIDGET_H
|