/* 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 "viewbase.h" #include "../models/atcstationlistmodel.h" #include "blackmisc/project.h" namespace BlackGui { namespace Views { //! ATC stations view class CAtcStationView : public CViewBase { Q_OBJECT public: //! Constructor explicit CAtcStationView(QWidget *parent = nullptr); //! Set station mode void setStationMode(Models::CAtcStationListModel::AtcStationMode stationMode); signals: //! Request some dummy ATC stations void testRequestDummyAtcOnlineStations(int number); 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); } }; } } #endif // guard