6 #include "ui_cockpitcomtransmissioncomponent.h"
8 using namespace swift::misc::aviation;
9 using namespace swift::misc::simulation;
13 CCockpitComTransmissionComponent::CCockpitComTransmissionComponent(QWidget *parent)
17 connect(ui->pb_Com1Save, &QPushButton::released,
this, &CCockpitComTransmissionComponent::onSave);
18 connect(ui->pb_Com2Save, &QPushButton::released,
this, &CCockpitComTransmissionComponent::onSave);
30 case CComSystem::Com1:
36 case CComSystem::Com2:
50 case CComSystem::Com1:
56 case CComSystem::Com2:
72 void CCockpitComTransmissionComponent::onSave()
74 const QObject *s = QObject::sender();
75 const CComSystem::ComUnit unit = (s == ui->pb_Com2Save) ? CComSystem::Com2 : CComSystem::Com1;
Transmission for COM units.
virtual ~CCockpitComTransmissionComponent()
Destructor.
void setComSystems(const swift::misc::simulation::CSimulatedAircraft &aircraft)
Set botb systems.
void updateComSystem(swift::misc::aviation::CComSystem &comSystem, swift::misc::aviation::CComSystem::ComUnit comUnit) const
Update given COM system.
void changedValues(swift::misc::aviation::CComSystem::ComUnit unit)
Values changed for unit.
void setComSystem(const swift::misc::aviation::CComSystem &comSystem, swift::misc::aviation::CComSystem::ComUnit comUnit)
Set values of given COM system.
bool isTransmitEnabled() const
Enabled?
void setVolumeReceive(int volume)
Output volume 0.100.
int getVolumeTransmit() const
Input volume 0..100.
void setTransmitEnabled(bool enable)
Enabled?
int getVolumeReceive() const
Output volume 0..100.
void setVolumeTransmit(int volume)
Input volume 0..100.
bool isReceiveEnabled() const
Enabled?
void setReceiveEnabled(bool enable)
Enabled?
Comprehensive information of an aircraft.
const aviation::CComSystem & getCom2System() const
Get COM2 system.
const aviation::CComSystem & getCom1System() const
Get COM1 system.
High level reusable GUI components.