WaypointViewOnlyView.h 798 Bytes
Newer Older
1 2 3
#ifndef WAYPOINTVIEWONLYVIEW_H
#define WAYPOINTVIEWONLYVIEW_H

4
#include <QWidget>
5
#include "MissionItem.h"
6 7 8 9 10 11 12 13 14 15 16
#include <iostream>

namespace Ui {
    class WaypointViewOnlyView;
}

class WaypointViewOnlyView : public QWidget
{
    Q_OBJECT

public:
17
    explicit WaypointViewOnlyView(MissionItem* wp, QWidget *parent = 0);
18 19 20
    ~WaypointViewOnlyView();

public slots:
21 22 23 24
    void changedCurrent(int state);
    void changedAutoContinue(int state);
    void updateValues(void);
    void setCurrent(bool state);
25 26 27 28 29 30

signals:
    void changeCurrentWaypoint(quint16);
    void changeAutoContinue(quint16, bool);

protected:
31
    MissionItem* wp;
32 33
    virtual void changeEvent(QEvent *e);
    virtual void paintEvent(QPaintEvent *);
34 35 36 37 38 39

private:
    Ui::WaypointViewOnlyView *m_ui;
};

#endif // WAYPOINTVIEWONLYVIEW_H