swift
dbownmodelsetdialog.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #include "dbownmodelsetdialog.h"
5 
6 #include "ui_dbownmodelsetdialog.h"
7 
8 using namespace swift::misc::simulation;
9 
10 namespace swift::gui::components
11 {
12  CDbOwnModelSetDialog::CDbOwnModelSetDialog(QWidget *parent) : QDialog(parent), ui(new Ui::CDbOwnModelSetDialog)
13  {
14  ui->setupUi(this);
15  ui->comp_OwnModelSet->setSimulatorSelectorMode(CSimulatorSelector::ComboBox);
16  this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
17  }
18 
20 
22  {
23  ui->comp_OwnModelSet->setSimulator(simulator);
24  }
25 
26  const CDbOwnModelSetComponent *CDbOwnModelSetDialog::modelSetComponent() const { return ui->comp_OwnModelSet; }
27 
29 
30  void CDbOwnModelSetDialog::enableButtons(bool firstSet, bool newSet)
31  {
32  ui->comp_OwnModelSet->enableButtons(firstSet, newSet);
33  }
34 } // namespace swift::gui::components
const CDbOwnModelSetComponent * modelSetComponent() const
Direct access to CDbOwnModelSetComponent.
void setSimulator(const swift::misc::simulation::CSimulatorInfo &simulator)
Simulator.
void enableButtons(bool firstSet, bool newSet)
Enable buttons.
Simple hardcoded info about the corresponding simulator.
Definition: simulatorinfo.h:41
High level reusable GUI components.
Definition: aboutdialog.cpp:13