Ref T265, Ref T430, Ref T473 renamed to CDbModelMappingModifyDialog (as it is a dialog)

This commit is contained in:
Klaus Basan
2018-12-21 10:44:50 +01:00
committed by Mat Sutcliffe
parent 4aec50ccfc
commit ddb26a0ea5
5 changed files with 24 additions and 39 deletions

View File

@@ -0,0 +1,47 @@
/* Copyright (C) 2016
* 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.
*/
#include "blackgui/components/dbmodelmappingmodifydialog.h"
#include "blackgui/editors/modelmappingmodifyform.h"
#include "ui_dbmodelmappingmodifydialog.h"
#include <QWidget>
using namespace BlackMisc;
using namespace BlackMisc::Simulation;
namespace BlackGui
{
namespace Components
{
CDbModelMappingModifyDialog::CDbModelMappingModifyDialog(QWidget *parent) :
QDialog(parent),
CDbMappingComponentAware(parent),
ui(new Ui::CDbModelMappingModifyDialog)
{
ui->setupUi(this);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
}
CDbModelMappingModifyDialog::~CDbModelMappingModifyDialog()
{
// void
}
CPropertyIndexVariantMap CDbModelMappingModifyDialog::getValues() const
{
return (ui->editor_ModelMappingModify->getValues());
}
void CDbModelMappingModifyDialog::setValue(const CAircraftModel &model)
{
ui->editor_ModelMappingModify->setValue(model);
}
} // ns
} // ns