Ref T259, Ref T243 interpolation setup form

This commit is contained in:
Klaus Basan
2018-03-19 21:06:24 +01:00
parent 101e5bb6c3
commit 0ff3b68d5c
3 changed files with 210 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
/* 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_EDITORS_INTERPOLATIONSETUPFORM_H
#define BLACKGUI_EDITORS_INTERPOLATIONSETUPFORM_H
#include "form.h"
#include "blackmisc/simulation/interpolationrenderingsetup.h"
#include "blackmisc/statusmessagelist.h"
#include <QScopedPointer>
#include <QCheckBox>
namespace Ui { class CInterpolationSetupForm; }
namespace BlackGui
{
namespace Editors
{
//! Setup of interpolation and rendering
class CInterpolationSetupForm : public CForm
{
Q_OBJECT
public:
//! Constructor
explicit CInterpolationSetupForm(QWidget *parent = nullptr);
//! Destructor
virtual ~CInterpolationSetupForm();
//! Set value
void setValue(const BlackMisc::Simulation::CInterpolationAndRenderingSetupBase &setup);
//! Get value
BlackMisc::Simulation::CInterpolationAndRenderingSetupPerCallsign getValue() const;
//! \name Form class implementations
//! @{
virtual void setReadOnly(bool readonly) override;
virtual BlackMisc::CStatusMessageList validate(bool nested = false) const override;
//! @}
signals:
//! Value changed
void valueChanged();
private:
QScopedPointer<Ui::CInterpolationSetupForm> ui;
QList<QCheckBox *> m_allCheckBoxes;
//! Checkbox has been changed
void onCheckboxChanged(int state);
};
} // ns
} // ns
#endif // guard