QGCToolWidget.h 728 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
#ifndef QGCTOOLWIDGET_H
#define QGCTOOLWIDGET_H

#include <QWidget>
#include <QAction>
#include <QVBoxLayout>

#include "UAS.h"

namespace Ui {
    class QGCToolWidget;
}

class QGCToolWidget : public QWidget
{
    Q_OBJECT

public:
    explicit QGCToolWidget(QWidget *parent = 0);
    ~QGCToolWidget();

public slots:
    void addUAS(UASInterface* uas);

protected:
    QAction* addParamAction;
    QAction* addButtonAction;
    QAction* setTitleAction;
    QVBoxLayout* toolLayout;
    UAS* mav;

    void contextMenuEvent(QContextMenuEvent* event);
    void createActions();

protected slots:
    void addParam();
    void addAction();
    void setTitle();


private:
    Ui::QGCToolWidget *ui;
};

#endif // QGCTOOLWIDGET_H