mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Enable flag for modulator. Used with the GUI for MUTE.
This commit is contained in:
@@ -65,6 +65,7 @@ namespace BlackMisc
|
|||||||
argument << this->m_digits;
|
argument << this->m_digits;
|
||||||
argument << this->m_volumeInput;
|
argument << this->m_volumeInput;
|
||||||
argument << this->m_volumeOutput;
|
argument << this->m_volumeOutput;
|
||||||
|
argument << this->m_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -78,6 +79,7 @@ namespace BlackMisc
|
|||||||
argument >> this->m_digits;
|
argument >> this->m_digits;
|
||||||
argument >> this->m_volumeInput;
|
argument >> this->m_volumeInput;
|
||||||
argument >> this->m_volumeOutput;
|
argument >> this->m_volumeOutput;
|
||||||
|
argument >> this->m_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ namespace BlackMisc
|
|||||||
BlackMisc::PhysicalQuantities::CFrequency m_frequencyStandby; //!< standby frequency
|
BlackMisc::PhysicalQuantities::CFrequency m_frequencyStandby; //!< standby frequency
|
||||||
qint32 m_volumeInput; //!< volume input
|
qint32 m_volumeInput; //!< volume input
|
||||||
qint32 m_volumeOutput; //!< volume output
|
qint32 m_volumeOutput; //!< volume output
|
||||||
|
bool m_enabled; //!< is enabled, used e.g. for mute etc.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int m_digits; //!< digits used
|
int m_digits; //!< digits used
|
||||||
@@ -46,7 +47,7 @@ namespace BlackMisc
|
|||||||
* \param digits
|
* \param digits
|
||||||
*/
|
*/
|
||||||
CModulator(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency, int digits) :
|
CModulator(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency, int digits) :
|
||||||
CAvionicsBase(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency), m_volumeInput(0), m_volumeOutput(0), m_digits(digits) {}
|
CAvionicsBase(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency), m_volumeInput(0), m_volumeOutput(0), m_digits(digits), m_enabled(true) {}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief String for converter
|
* \brief String for converter
|
||||||
@@ -299,6 +300,18 @@ namespace BlackMisc
|
|||||||
*/
|
*/
|
||||||
void setVolumeInput(qint32 volume) { this->m_volumeInput = volume; }
|
void setVolumeInput(qint32 volume) { this->m_volumeInput = volume; }
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Enabled?
|
||||||
|
* \return
|
||||||
|
*/
|
||||||
|
bool isEnabled() const { return this->m_enabled;}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Enabled?
|
||||||
|
* \param
|
||||||
|
*/
|
||||||
|
void setEnabled(bool enable) { this->m_enabled = enable;}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Register metadata
|
* \brief Register metadata
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user