Newer
Older
#ifndef PARAMETERINTERFACE_H
#define PARAMETERINTERFACE_H
#include <QtGui/QWidget>
#include <QtGui/QTreeView>
#include <QtGui/QTreeWidget>
#include "ParamTreeModel.h"
namespace Ui {
class ParameterInterface;
}
class ParameterInterface : public QWidget {
Q_OBJECT
public:
explicit ParameterInterface(QWidget *parent = 0);
virtual ~ParameterInterface();
public slots:
void addUAS(UASInterface* uas);
void addComponent(int uas, int component, QString componentName);
void receiveParameter(int uas, int component, QString parameterName, float value);
void setParameter(UASInterface* uas, int component, QString parameterName, float value);
void commitParameter(UASInterface* uas, int component, QString parameterName, float value);
protected:
virtual void changeEvent(QEvent *e);
ParamTreeModel* tree;
QTreeView* treeView;
QTreeWidget* treeWidget;
QMap<int, QTreeWidgetItem*>* components;