Ref T357, wizard page to copy terrain probe

- changed xSwiftBus page and added terrain probe copy Ui as well
- component for terrain probe
This commit is contained in:
Klaus Basan
2018-09-17 03:02:43 +02:00
parent 6b01021a0a
commit 00651ae9f8
7 changed files with 397 additions and 43 deletions

View File

@@ -0,0 +1,52 @@
/* 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_COMPONENTS_INSTALLFSXTERRAINPROBECOMPONENT_H
#define BLACKGUI_COMPONENTS_INSTALLFSXTERRAINPROBECOMPONENT_H
#include "blackmisc/simulation/settings/simulatorsettings.h"
#include <QFrame>
#include <QScopedPointer>
namespace Ui { class CInstallFsxTerrainProbeComponent; }
namespace BlackGui
{
namespace Components
{
//! Install the FSX/P3D terrain probe
class CInstallFsxTerrainProbeComponent : public QFrame
{
Q_OBJECT
public:
explicit CInstallFsxTerrainProbeComponent(QWidget *parent = nullptr);
//! Destructors
virtual ~CInstallFsxTerrainProbeComponent();
private:
QScopedPointer<Ui::CInstallFsxTerrainProbeComponent> ui;
//! Select the directory
void selectSimObjectsDir();
//! Copy probe
void copyProbe();
//! Simulator has been changed
void onSimulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator);
BlackMisc::Simulation::Settings::CMultiSimulatorSettings m_simulatorSettings { this }; //!< for SimObjects directories
};
} // ns
} // ns
#endif // guard