OP-1900 have path_progress updated correctly for leg_remaining and error_below end...
[librepilot.git] / ground / openpilotgcs / src / plugins / pathactioneditor / pathactioneditorgadgetwidget.h
blobd68836a8edf69a16fc106c9abe3b913129404c86
1 /**
2 ******************************************************************************
3 * @file pathactioneditorgadgetwidget.h
4 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
5 * @addtogroup PathAction Editor GCS Plugins
6 * @{
7 * @addtogroup PathActionEditorGadgetPlugin PathAction Editor Gadget Plugin
8 * @{
9 * @brief A gadget to edit a list of pathactions
10 *****************************************************************************/
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #ifndef PathActionEditorGADGETWIDGET_H_
28 #define PathActionEditorGADGETWIDGET_H_
30 #include <QLabel>
31 #include <QWidget>
32 #include <QTreeView>
33 #include "pathaction.h"
34 #include "waypoint.h"
35 #include "pathactioneditortreemodel.h"
37 class Ui_PathActionEditor;
39 class PathActionEditorGadgetWidget : public QLabel {
40 Q_OBJECT
42 public:
43 PathActionEditorGadgetWidget(QWidget *parent = 0);
44 ~PathActionEditorGadgetWidget();
46 signals:
48 protected slots:
49 void pathactionChanged(UAVObject *);
50 void addPathActionInstance();
51 void addWaypointInstance();
53 private:
54 Ui_PathActionEditor *m_pathactioneditor;
55 PathActionEditorTreeModel *m_model;
56 PathAction *pathactionObj;
57 Waypoint *waypointObj;
60 #endif /* PathActionEditorGADGETWIDGET_H_ */