mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
51 lines
1.5 KiB
C++
51 lines
1.5 KiB
C++
/* Copyright (C) 2013
|
|
* 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_COMPONENTS_CGSOURCESELECTOR_H
|
|
#define BLACKGUI_COMPONENTS_CGSOURCESELECTOR_H
|
|
|
|
#include "blackmisc/simulation/settings/simulatorsettings.h"
|
|
#include <QFrame>
|
|
#include <QScopedPointer>
|
|
|
|
namespace Ui { class CCGSourceSelector; }
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
//! CG (aka vertical offset) selector
|
|
class CCGSourceSelector : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Ctor
|
|
explicit CCGSourceSelector(QWidget *parent = nullptr);
|
|
|
|
//! Dtor
|
|
virtual ~CCGSourceSelector() override;
|
|
|
|
//! Get/set value @{
|
|
BlackMisc::Simulation::Settings::CSimulatorSettings::CGSource getValue() const;
|
|
void setValue(const BlackMisc::Simulation::Settings::CSimulatorSettings &settings);
|
|
void setValue(BlackMisc::Simulation::Settings::CSimulatorSettings::CGSource source);
|
|
//! @}
|
|
|
|
private:
|
|
//! Init the combobox
|
|
void initComboBox();
|
|
|
|
QScopedPointer<Ui::CCGSourceSelector> ui;
|
|
};
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif // guard
|