summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire/ftnoir_tracker_hat_dialog.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-09 16:21:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-09 16:21:32 +0200
commitfd0ad89c7c6f61aa14d6e908e9217121f4afa5c6 (patch)
tree5274ef7761b249c5ee48a823a48b2c744c4df593 /tracker-hatire/ftnoir_tracker_hat_dialog.h
parente6fb571266c22f120c0111731da1f2e6bf4d812d (diff)
tracker/hatire: move to opentrack settings API
Diffstat (limited to 'tracker-hatire/ftnoir_tracker_hat_dialog.h')
-rwxr-xr-xtracker-hatire/ftnoir_tracker_hat_dialog.h50
1 files changed, 1 insertions, 49 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat_dialog.h b/tracker-hatire/ftnoir_tracker_hat_dialog.h
index f1c16219..b93c4301 100755
--- a/tracker-hatire/ftnoir_tracker_hat_dialog.h
+++ b/tracker-hatire/ftnoir_tracker_hat_dialog.h
@@ -28,54 +28,8 @@ private:
public slots:
void WriteMsgInfo(const QByteArray &MsgInfo);
-protected slots:
- void set_mod_port(const QString & val) { settings.SerialPortName =val; settings_changed(); }
- void set_ena_roll(bool val) { settings.EnableRoll = val; settings_changed(); }
- void set_ena_pitch(bool val) { settings.EnablePitch = val; settings_changed(); }
- void set_ena_yaw(bool val) { settings.EnableYaw = val; settings_changed(); }
- void set_ena_x(bool val) { settings.EnableX = val; settings_changed(); }
- void set_ena_y(bool val) { settings.EnableY = val; settings_changed(); }
- void set_ena_z(bool val) { settings.EnableZ = val; settings_changed(); }
-
- void set_inv_roll(bool val) { settings.InvertRoll = val; settings_changed(); }
- void set_inv_pitch(bool val) { settings.InvertPitch = val; settings_changed(); }
- void set_inv_yaw(bool val) { settings.InvertYaw = val; settings_changed(); }
- void set_inv_x(bool val) { settings.InvertX = val; settings_changed(); }
- void set_inv_y(bool val) { settings.InvertY = val; settings_changed(); }
- void set_inv_z(bool val) { settings.InvertZ = val; settings_changed(); }
-
- void set_diag_logging(bool val) { settings.EnableLogging = val; settings_changed(); }
-
-
- void set_rot_roll(int val) { settings.RollAxis = val; settings_changed(); }
- void set_rot_pitch(int val) { settings.PitchAxis = val; settings_changed(); }
- void set_rot_yaw(int val) { settings.YawAxis = val; settings_changed(); }
- void set_acc_x(int val) { settings.XAxis = val; settings_changed(); }
- void set_acc_y(int val) { settings.YAxis = val; settings_changed(); }
- void set_acc_z(int val) { settings.ZAxis = val; settings_changed(); }
-
- void set_cmd_start(const QString &val) { settings.CmdStart = val; settings_changed(); }
- void set_cmd_stop(const QString &val) { settings.CmdStop = val; settings_changed(); }
- void set_cmd_init(const QString &val) { settings.CmdInit = val; settings_changed(); }
- void set_cmd_reset(const QString &val) { settings.CmdReset = val; settings_changed(); }
- void set_cmd_center(const QString &val) { settings.CmdCenter = val; settings_changed(); }
- void set_cmd_zero(const QString &val) { settings.CmdZero = val; settings_changed(); }
-
- void set_DelayInit(int val) { settings.DelayInit = val; settings_changed(); }
- void set_DelayStart(int val) { settings.DelayStart = val; settings_changed(); }
- void set_DelaySeq(int val) { settings.DelaySeq = val; settings_changed(); }
-
- void set_endian(bool val) { settings.BigEndian = val; settings_changed(); }
-
- void set_mod_baud(int val) { settings.pBaudRate = static_cast<QSerialPort::BaudRate>(ui.QCB_Serial_baudRate->itemData(val).toInt()) ; settings_changed(); }
- void set_mod_dataBits(int val) { settings.pDataBits = static_cast<QSerialPort::DataBits>(ui.QCB_Serial_dataBits->itemData(val).toInt()) ; settings_changed(); }
- void set_mod_parity(int val) { settings.pParity = static_cast<QSerialPort::Parity>(ui.QCB_Serial_parity->itemData(val).toInt()) ; settings_changed(); }
- void set_mod_stopBits(int val) { settings.pStopBits = static_cast<QSerialPort::StopBits>(ui.QCB_Serial_stopBits->itemData(val).toInt()); settings_changed(); }
- void set_mod_flowControl(int val) { settings.pFlowControl = static_cast<QSerialPort::FlowControl>(ui.QCB_Serial_flowControl->itemData(val).toInt()) ; settings_changed(); }
-
void doOK();
void doCancel();
- void doSave();
void doReset();
//void doCenter();
void doZero();
@@ -84,9 +38,7 @@ protected slots:
void doSerialInfo();
protected:
- bool settingsDirty;
- void settings_changed();
- TrackerSettings settings;
+ TrackerSettings s;
QTimer timer;
private slots: