Ref T681, UI to set CG from DB plus settings improvements for simulator settings

This commit is contained in:
Klaus Basan
2019-06-10 02:40:35 +02:00
committed by Mat Sutcliffe
parent a447c054ca
commit b7fd1fa777
7 changed files with 545 additions and 273 deletions

View 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