mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Ref T609, UI to set Tx/Receive for COM unit in emulated driver
This commit is contained in:
committed by
Mat Sutcliffe
parent
b60f84244b
commit
3275d97653
59
src/blackgui/components/cockpitcomtransmissioncomponent.h
Normal file
59
src/blackgui/components/cockpitcomtransmissioncomponent.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/* Copyright (C) 2019
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
||||
* or distributed except according to the terms contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_COMPONENTS_COCKPITCOMPONENTTRANSMISSION_H
|
||||
#define BLACKGUI_COMPONENTS_COCKPITCOMPONENTTRANSMISSION_H
|
||||
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/aviation/comsystem.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CCockpitComTransmissionComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
//! Transmission for COM units
|
||||
class BLACKGUI_EXPORT CCockpitComTransmissionComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CCockpitComTransmissionComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CCockpitComTransmissionComponent() override;
|
||||
|
||||
//! Update given COM system
|
||||
void updateComSystem(BlackMisc::Aviation::CComSystem &comSystem, BlackMisc::Aviation::CComSystem::ComUnit comUnit) const;
|
||||
|
||||
//! Set values of given COM system
|
||||
void setComSystem(const BlackMisc::Aviation::CComSystem &comSystem, BlackMisc::Aviation::CComSystem::ComUnit comUnit);
|
||||
|
||||
//! Set botb systems
|
||||
void setComSystems(const BlackMisc::Simulation::CSimulatedAircraft &aircraft);
|
||||
|
||||
signals:
|
||||
//! Values changed for unit
|
||||
void changedValues(BlackMisc::Aviation::CComSystem::ComUnit unit);
|
||||
|
||||
private:
|
||||
//! Save clicked
|
||||
void onSave();
|
||||
|
||||
QScopedPointer<Ui::CCockpitComTransmissionComponent> ui;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user