swift
dbmodelmappingmodifydialog.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #include <QWidget>
7 
8 #include "ui_dbmodelmappingmodifydialog.h"
9 
11 
12 using namespace swift::misc;
13 using namespace swift::misc::simulation;
14 
15 namespace swift::gui::components
16 {
17  CDbModelMappingModifyDialog::CDbModelMappingModifyDialog(QWidget *parent)
18  : QDialog(parent), CDbMappingComponentAware(parent), ui(new Ui::CDbModelMappingModifyDialog)
19  {
20  ui->setupUi(this);
22  }
23 
25 
27  {
28  return (ui->editor_ModelMappingModify->getValues());
29  }
30 
32  {
33  ui->editor_ModelMappingModify->setValue(model);
34  }
35 } // namespace swift::gui::components
Allows subcomponents to gain access to model component.
swift::misc::CPropertyIndexVariantMap getValues() const
Get the values.
void setValue(const swift::misc::simulation::CAircraftModel &model)
Set default values.
Specialized value object compliant map for variants, based on indexes.
Aircraft model (used by another pilot, my models on disk)
Definition: aircraftmodel.h:71
High level reusable GUI components.
Definition: aboutdialog.cpp:14
Free functions in swift::misc.
WindowContextHelpButtonHint
void setWindowFlags(Qt::WindowFlags type)