/* Copyright (C) 2018 * 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_VIEW_AIRCRAFTMODELSTATISTICSDIALOG_H #define BLACKGUI_VIEW_AIRCRAFTMODELSTATISTICSDIALOG_H #include "blackmisc/simulation/aircraftmodellist.h" #include #include namespace Ui { class CAircraftModelStatisticsDialog; } namespace QtCharts { class QBarSeries; class QHorizontalBarSeries; } namespace BlackGui { namespace Views { //! Info about the models class CAircraftModelStatisticsDialog : public QDialog { Q_OBJECT public: //! Constructor explicit CAircraftModelStatisticsDialog(QWidget *parent = nullptr); //! Destructor virtual ~CAircraftModelStatisticsDialog(); //! Set and analyze the models void analyzeModels(const BlackMisc::Simulation::CAircraftModelList &models); private: //! Display the HTML matrix void displayHTMLMatrix(); //! Chart void showChart(); //! Chart for distributors void chartDistributors(); //! Chart for aircraft ICAO void chartAircraftIcao(); //! Orientation Qt::Orientation getOrientation() const; QScopedPointer ui; BlackMisc::Simulation::CAircraftModelList m_models; }; } // ns } // ns #endif // guard