28 #ifndef SCOPEGADGETOPTIONSPAGE_H
29 #define SCOPEGADGETOPTIONSPAGE_H
34 #include "ui_scopegadgetoptionspage.h"
37 #include <QStringList>
39 #include <QColorDialog>
57 enum userRoleShift { UR_UAVOBJECT, UR_UAVFIELD, UR_SCALE, UR_COLOR, UR_MEAN, UR_MATHFUNCTION };
61 QWidget *createPage(QWidget *parent);
66 Ui::ScopeGadgetOptionsPage *options_page;
69 void addPlot2dCurveConfig(QString uavObject, QString uavField,
int scale,
unsigned int mean,
70 QString mathFunction, QVariant varColor);
71 void setPlot2dCurveProperties(QListWidgetItem *listWidgetItem, QString uavObject,
72 QString uavField,
int scale,
unsigned int mean,
73 QString mathFunction, QVariant varColor);
74 void set2dYAxisWidgetFromDataSource();
75 void setButtonColor(
const QColor &color);
76 bool eventFilter(QObject *obj, QEvent *evt);
78 QString dataSourceStyleSheetTemplate;
79 QListWidgetItem *selectedItem;
82 void on_lst2dCurves_currentRowChanged(
int currentRow);
83 void on_lst2dItem_clicked(QListWidgetItem *);
84 void on_btnAdd2dCurve_clicked();
85 void on_btnApply2dCurve_clicked();
86 void on_btnRemove2dCurve_clicked();
87 void on_cmbUAVObjects_currentIndexChanged(QString val);
88 void on_cmbUAVObjectsSpectrogram_currentIndexChanged(QString val);
89 void on_btnColor_clicked();
90 void on_mathFunctionComboBox_currentIndexChanged(
int currentIndex);
91 void on_cmbXAxisScatterplot2d_currentIndexChanged(QString currentText);
92 void on_cmbSpectrogramSource_currentIndexChanged(QString currentIndex);
93 void on_cmb2dPlotType_currentIndexChanged(QString);
94 void on_cmb3dPlotType_currentIndexChanged(QString);
97 #endif // SCOPEGADGETOPTIONSPAGE_H
The IOptionsPage is an interface for providing options pages.