ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonActionLauncher.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 <QListWidget>
11 #include <QWidget>
12 
13 class Ui_ActionLauncher;
15 class PythonInterpreter;
16 class PluginListModel;
17 
18 class PythonActionLauncher : public QWidget
19 {
20  Q_OBJECT
21 
22  friend PluginListModel;
23 
24  public:
25  explicit PythonActionLauncher(const PythonPluginManager *pluginManager,
26  PythonInterpreter *interpreter,
27  QWidget *parent = nullptr);
28 
29  protected:
30  void showEvent(QShowEvent *event) override;
31  void populateToolBox();
32  void clearToolBox();
33  void disable();
34  void enable();
35 
36  private: // Members
37  Ui_ActionLauncher *m_ui;
38  const PythonPluginManager *m_pluginManager;
39  PythonInterpreter *m_interpreter;
40 };
MouseEvent event
void showEvent(QShowEvent *event) override
PythonActionLauncher(const PythonPluginManager *pluginManager, PythonInterpreter *interpreter, QWidget *parent=nullptr)