dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
pathplannergadgetwidget.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 
27 #ifndef PathPlannerGADGETWIDGET_H_
28 #define PathPlannerGADGETWIDGET_H_
29 
30 #include <QLabel>
31 #include <QItemSelectionModel>
32 #include "flightdatamodel.h"
33 #include "modeluavoproxy.h"
34 
35 class Ui_PathPlanner;
36 
37 class PATHPLANNER_EXPORT PathPlannerGadgetWidget : public QLabel
38 {
39  Q_OBJECT
40 
41 public:
42  PathPlannerGadgetWidget(QWidget *parent = nullptr);
44 
45  void setModel(FlightDataModel *model, QItemSelectionModel *selection);
46 private slots:
47  void on_tbAdd_clicked();
48 
49  void on_tbDelete_clicked();
50 
51  void on_tbInsert_clicked();
52 
53  void on_tbReadFromFile_clicked();
54 
55  void on_tbSaveToFile_clicked();
56 
57  void on_tbDetails_clicked();
58 
59  void on_tbSendToUAV_clicked();
60 
61  void on_tbFetchFromUAV_clicked();
62 
64  void on_tbFilletPath_clicked();
65 
67  void on_tbUnfilletPath_clicked();
68 
69  void on_waypointSendProgress(int);
70 
71 private:
72  Ui_PathPlanner *ui;
73  FlightDataModel *model;
74  ModelUavoProxy *proxy;
75  QItemSelectionModel *selection;
76 
78  FlightDataModel *prevModel;
79  void enableButtons(bool);
80 signals:
81  void sendPathPlanToUAV();
82  void receivePathPlanFromUAV();
83 };
84 
85 #endif /* PathPlannerGADGETWIDGET_H_ */