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);
21  this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
22  }
23 
25  {
26  // void
27  }
28 
30  {
31  return (ui->editor_ModelMappingModify->getValues());
32  }
33 
35  {
36  ui->editor_ModelMappingModify->setValue(model);
37  }
38 } // 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:13
Free functions in swift::misc.