swift
dbownmodelsdialog.h
Go to the documentation of this file.
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 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_CDBOWNMODELSDIALOG_H
7 #define SWIFT_GUI_COMPONENTS_CDBOWNMODELSDIALOG_H
8 
9 #include <QDialog>
10 #include <QScopedPointer>
11 
12 #include "gui/swiftguiexport.h"
14 
15 namespace Ui
16 {
17  class CDbOwnModelsDialog;
18 }
19 namespace swift::gui::components
20 {
21  class CDbOwnModelsComponent;
22 
24  class SWIFT_GUI_EXPORT CDbOwnModelsDialog : public QDialog
25  {
26  Q_OBJECT
27 
28  public:
30  explicit CDbOwnModelsDialog(QWidget *parent = nullptr);
31 
33  virtual ~CDbOwnModelsDialog() override;
34 
36  void setSimulator(const swift::misc::simulation::CSimulatorInfo &simulator);
37 
39  bool requestModelsInBackground(const swift::misc::simulation::CSimulatorInfo &simulator, bool onlyIfNotEmpty);
40 
42  int getOwnModelsCount() const;
43 
46  const CDbOwnModelsComponent *modelsComponent() const;
47 
48  signals:
51 
52  private:
53  QScopedPointer<Ui::CDbOwnModelsDialog> ui;
54  };
55 } // namespace swift::gui::components
56 #endif // SWIFT_GUI_COMPONENTS_CDBOWNMODELSDIALOG_H
Handling of own models on disk (the models installed for the simulator)
void successfullyLoadedModels(const swift::misc::simulation::CSimulatorInfo &simulator, int count)
Models have been successfully loaded.
Simple hardcoded info about the corresponding simulator.
Definition: simulatorinfo.h:41
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.