mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
* check if model is in path * addAsValidOrInvalidModel * set corresponding simulator for validation * display validation of empty model set
58 lines
1.8 KiB
C++
58 lines
1.8 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_VIEWS_AIRCRAFTMODELVALIDATIONDIALOG_H
|
|
#define BLACKGUI_VIEWS_AIRCRAFTMODELVALIDATIONDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QScopedPointer>
|
|
#include "blackmisc/simulation/aircraftmodellist.h"
|
|
|
|
namespace Ui { class CAircraftModelValidationDialog; }
|
|
namespace BlackGui
|
|
{
|
|
namespace Views
|
|
{
|
|
/**
|
|
* Model validation
|
|
* \remark there is also a more specific validation version BlackGui::Components::CAircraftModelSetValidationDialog
|
|
*/
|
|
class CAircraftModelValidationDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CAircraftModelValidationDialog(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CAircraftModelValidationDialog() override;
|
|
|
|
//! Models
|
|
void setModels(
|
|
const BlackMisc::Simulation::CAircraftModelList &models,
|
|
const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
|
|
|
//! Trigger a validation
|
|
void triggerValidation(int delayMs = 2500);
|
|
|
|
private:
|
|
//! Validate
|
|
void validate();
|
|
|
|
QScopedPointer<Ui::CAircraftModelValidationDialog> ui;
|
|
BlackMisc::Simulation::CAircraftModelList m_models;
|
|
BlackMisc::Simulation::CSimulatorInfo m_simulator { BlackMisc::Simulation::CSimulatorInfo::None };
|
|
};
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif // guard
|