mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Ref T681, UI to set CG from DB plus settings improvements for simulator settings
This commit is contained in:
committed by
Mat Sutcliffe
parent
a447c054ca
commit
b7fd1fa777
50
src/blackgui/components/cgsourceselector.h
Normal file
50
src/blackgui/components/cgsourceselector.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user