27 #ifndef WAYPOINT_DIALOG_H
28 #define WAYPOINT_DIALOG_H
32 #include <QDataWidgetMapper>
33 #include <QItemDelegate>
34 #include <QItemSelectionModel>
37 class Ui_waypoint_dialog;
47 WaypointDialog(QWidget *parent, QAbstractItemModel *model, QItemSelectionModel *selection);
51 void editWaypoint(
int number);
55 void currentIndexChanged(
int index);
58 void setupModeWidgets();
61 void onCancelButton_clicked();
64 void onOkButton_clicked();
67 void onPreviousButton_clicked();
70 void onNextButton_clicked();
73 void currentRowChanged(QModelIndex, QModelIndex);
76 void enableEditWidgets();
80 Ui_waypoint_dialog *ui;
83 QDataWidgetMapper *mapper;
86 QAbstractItemModel *model;
89 QItemSelectionModel *itemSelection;
The WaypointDialog class creates a dialog for editing the properties of a single waypoint.