mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
65 lines
2.3 KiB
C++
65 lines
2.3 KiB
C++
/* Copyright (C) 2013
|
|
* 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 and at http://www.swift-project.org/license.html. 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.
|
|
*/
|
|
|
|
#ifndef BLACKGUI_ATCSTATIONVIEW_H
|
|
#define BLACKGUI_ATCSTATIONVIEW_H
|
|
|
|
//! \file
|
|
|
|
#include "blackgui/blackguiexport.h"
|
|
#include "viewbase.h"
|
|
#include "../models/atcstationlistmodel.h"
|
|
#include "blackmisc/project.h"
|
|
|
|
namespace BlackGui
|
|
{
|
|
namespace Views
|
|
{
|
|
//! ATC stations view
|
|
class BLACKGUI_EXPORT CAtcStationView : public CViewBase<BlackGui::Models::CAtcStationListModel, BlackMisc::Aviation::CAtcStationList, BlackMisc::Aviation::CAtcStation>
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
//! Constructor
|
|
explicit CAtcStationView(QWidget *parent = nullptr);
|
|
|
|
//! Set station mode
|
|
void setStationMode(BlackGui::Models::CAtcStationListModel::AtcStationMode stationMode);
|
|
|
|
signals:
|
|
//! Request some dummy ATC stations
|
|
void testRequestDummyAtcOnlineStations(int number);
|
|
|
|
//! Request COM frequency
|
|
void requestComFrequency(const BlackMisc::PhysicalQuantities::CFrequency &frequency, BlackMisc::Aviation::CComSystem::ComUnit unit);
|
|
|
|
//! Request a text message to
|
|
void requestTextMessageWidget(const BlackMisc::Aviation::CCallsign &callsign);
|
|
|
|
public slots:
|
|
//! \copydoc CAtcStationListModel::changedAtcStationConnectionStatus
|
|
void changedAtcStationConnectionStatus(const BlackMisc::Aviation::CAtcStation &station, bool added);
|
|
|
|
protected:
|
|
//! \copydoc CViewBase::customMenu
|
|
virtual void customMenu(QMenu &menu) const override;
|
|
|
|
private slots:
|
|
void ps_testRequest1kAtcOnlineDummies() { emit this->testRequestDummyAtcOnlineStations(1000); }
|
|
void ps_testRequest3kAtcOnlineDummies() { emit this->testRequestDummyAtcOnlineStations(3000); }
|
|
void ps_tuneInAtcCom1();
|
|
void ps_tuneInAtcCom2();
|
|
void ps_requestTextMessage();
|
|
};
|
|
}
|
|
}
|
|
#endif // guard
|