/* 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 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. */ //! \file #ifndef BLACKGUI_COMPONENTS_AIRCRAFTMODELVALIDATIONCOMPONENT_H #define BLACKGUI_COMPONENTS_AIRCRAFTMODELVALIDATIONCOMPONENT_H #include "blackmisc/simulation/settings/modelmatchersettings.h" #include "blackmisc/settingscache.h" #include "blackgui/overlaymessagesframe.h" #include "blackgui/blackguiexport.h" #include #include namespace Ui { class CAircraftModelValidationComponent; } namespace BlackMisc { class CStatusMessageList; namespace Simulation { class CSimulatorInfo; class CAircraftModelList; } } namespace BlackGui { namespace Components { /** * Handle validation result * \sa BlackMisc::Views:: */ class BLACKGUI_EXPORT CAircraftModelValidationComponent : public COverlayMessagesFrame { Q_OBJECT public: //! Constructor explicit CAircraftModelValidationComponent(QWidget *parent = nullptr); //! Destructor virtual ~CAircraftModelValidationComponent(); //! Validated a model set void validatedModelSet(const BlackMisc::Simulation::CSimulatorInfo &simulator, const BlackMisc::Simulation::CAircraftModelList &valid, const BlackMisc::Simulation::CAircraftModelList &invalid, bool stopped, const BlackMisc::CStatusMessageList &msgs); private: QScopedPointer ui; BlackMisc::CSetting m_matchingSettings { this }; //!< settings //! Invalid models void tempDisableModels(const BlackMisc::Simulation::CAircraftModelList &models); //! Enable/disable startup check void onCheckAtStartupChanged(bool checked); //! Button has been clicked void onButtonClicked(); }; } // ns } // ns #endif // guard