Files
pilotclient/src/blackgui/components/transpondermodecomponent.h
Klaus Basan e463689490 Ref T573, allow different color in XPDR mode component from stylesheet
* changed signal to trigger reload of stylesheet (only way to update dynamic properties)
* made infobar left aligned (and not spacer aligned), better scaling
* adjusted qss
2019-04-11 22:11:47 +01:00

60 lines
1.7 KiB
C++

/* 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_TRANSPONDERMODECOMPONENT_H
#define BLACKGUI_COMPONENTS_TRANSPONDERMODECOMPONENT_H
#include "blackmisc/aviation/transponder.h"
#include "blackmisc/identifiable.h"
#include <QFrame>
#include <QScopedPointer>
namespace Ui { class CTransponderModeComponent; }
namespace BlackMisc { class CIdentifier; namespace Simulation { class CSimulatedAircraft; }}
namespace BlackGui
{
namespace Components
{
/**
* Small component to display XPDR mode
*/
class CTransponderModeComponent : public QFrame, BlackMisc::CIdentifiable
{
Q_OBJECT
public:
//! Ctor
explicit CTransponderModeComponent(QWidget *parent = nullptr);
//! Dtor
virtual ~CTransponderModeComponent() override;
signals:
//! value has been changed
void changed();
private:
QScopedPointer<Ui::CTransponderModeComponent> ui;
BlackMisc::Aviation::CTransponder m_transponder;
//! Init
void init();
//! Clicked
void onClicked();
//! Changed cockpit data
void onChangedAircraftCockpit(const BlackMisc::Simulation::CSimulatedAircraft &aircraft, const BlackMisc::CIdentifier &originator);
};
} // ns
} // ns
#endif // guard