mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
* dialog for CDbOwnModelsComponent / CDbOwnModelSetComponent * qss * added page in wizard
55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
/* 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 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_DBAIRLINEICAOSELECTORBASE_DBOWNMODELSDIALOG_H
|
|
#define BLACKGUI_DBAIRLINEICAOSELECTORBASE_DBOWNMODELSDIALOG_H
|
|
|
|
#include "blackgui/blackguiexport.h"
|
|
#include "blackmisc/simulation/simulatorinfo.h"
|
|
#include <QDialog>
|
|
#include <QScopedPointer>
|
|
|
|
namespace Ui { class CDbOwnModelsDialog; }
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
class CDbOwnModelsComponent;
|
|
|
|
//! Own models dialog
|
|
class BLACKGUI_EXPORT CDbOwnModelsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CDbOwnModelsDialog(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CDbOwnModelsDialog();
|
|
|
|
//! \copydoc CDbOwnModelsComponent::setSimulator
|
|
void setSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
|
|
|
//! \copydoc CDbOwnModelsComponent::requestModelsInBackground
|
|
bool requestModelsInBackground(const BlackMisc::Simulation::CSimulatorInfo &simulator, bool onlyIfNotEmpty);
|
|
|
|
//! Direct access to component
|
|
//! \remark allows to use the powerful component class
|
|
const CDbOwnModelsComponent *modelsComponent() const;
|
|
|
|
private:
|
|
QScopedPointer<Ui::CDbOwnModelsDialog> ui;
|
|
};
|
|
} // ns
|
|
} // ns
|
|
#endif // guard
|