WaypointViewOnlyView.h 795 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef WAYPOINTVIEWONLYVIEW_H
#define WAYPOINTVIEWONLYVIEW_H

#include <QtGui/QWidget>
#include "Waypoint.h"
#include <iostream>

namespace Ui {
    class WaypointViewOnlyView;
}

class WaypointViewOnlyView : public QWidget
{
    Q_OBJECT

public:
    explicit WaypointViewOnlyView(Waypoint* wp, QWidget *parent = 0);
    ~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 32 33
    Waypoint* wp;
    virtual void changeEvent(QEvent *e);
    virtual void paintEvent(QPaintEvent *);
34 35 36 37 38 39

private:
    Ui::WaypointViewOnlyView *m_ui;
};

#endif // WAYPOINTVIEWONLYVIEW_H