[Companion] Updates to use new RawSource data models in UI.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "eeprominterface.h"
|
||||
|
||||
class AutoComboBox;
|
||||
class RawSourceFilterItemModel;
|
||||
class TimerEdit;
|
||||
|
||||
namespace Ui {
|
||||
@@ -72,7 +73,7 @@ class TelemetryCustomScreen: public ModelPanel
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TelemetryCustomScreen(QWidget *parent, ModelData & model, FrSkyScreenData & screen, GeneralSettings & generalSettings, Firmware * firmware);
|
||||
TelemetryCustomScreen(QWidget *parent, ModelData & model, FrSkyScreenData & screen, GeneralSettings & generalSettings, Firmware * firmware, RawSourceFilterItemModel * srcModel);
|
||||
~TelemetryCustomScreen();
|
||||
void update();
|
||||
|
||||
@@ -85,13 +86,11 @@ class TelemetryCustomScreen: public ModelPanel
|
||||
void barMaxChanged(double value);
|
||||
void barTimeChanged();
|
||||
|
||||
protected:
|
||||
void populateTelemetrySourceCB(QComboBox * b, RawSource & source, bool last=false);
|
||||
|
||||
private:
|
||||
void updateBar(int line);
|
||||
Ui::TelemetryCustomScreen * ui;
|
||||
FrSkyScreenData & screen;
|
||||
RawSourceFilterItemModel * rawSourceItemModel;
|
||||
QComboBox * fieldsCB[4][3];
|
||||
QComboBox * barsCB[4];
|
||||
QDoubleSpinBox * minSB[4];
|
||||
@@ -137,6 +136,9 @@ class TelemetryPanel : public ModelPanel
|
||||
virtual ~TelemetryPanel();
|
||||
virtual void update();
|
||||
|
||||
signals:
|
||||
void updated();
|
||||
|
||||
private slots:
|
||||
void on_telemetryProtocol_currentIndexChanged(int index);
|
||||
void onModified();
|
||||
|
||||
Reference in New Issue
Block a user