mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
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:
52
src/blackgui/components/installfsxterrainprobecomponent.h
Normal file
52
src/blackgui/components/installfsxterrainprobecomponent.h
Normal 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
|
||||
Reference in New Issue
Block a user