ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonRuntimeSettings.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <PythonConfig.h>
11 
12 #include <QDialog>
13 
14 class Ui_PythonRuntimeSettings;
15 
16 class PythonRuntimeSettings final : public QDialog
17 {
18  public:
19  explicit PythonRuntimeSettings(QWidget *parent = nullptr);
20 
21  QStringList pluginsPaths() const;
23  bool isDefaultPythonEnv() const;
24 
25  private: // Methods
26  QString selectedEnvType() const;
27  QString localEnvPath() const;
28 
29  void restoreSettings();
30  void saveSettings() const;
31  void handleEditPluginsPaths();
32  void handleEnvComboBoxChange(const QString &envTypeName);
33  void handleSelectLocalEnv();
34 
35  private:
36  Ui_PythonRuntimeSettings *m_ui;
37  QStringList m_pluginsPaths;
38 };
PythonRuntimeSettings(QWidget *parent=nullptr)
QStringList pluginsPaths() const
PythonConfig pythonEnvConfig() const