Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkCtkPythonShell.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkCtkPythonShell_h
14 #define QmitkCtkPythonShell_h
15 
16 #include <ctkPythonConsole.h>
17 #include <QString>
18 #include <MitkQtPythonExports.h>
19 
23 struct QmitkCtkPythonShellData;
24 class ctkAbstractPythonManager;
25 class QDragEnterEvent;
26 class QDropEvent;
27 class QMimeData;
28 
33 class MITKQTPYTHON_EXPORT QmitkCtkPythonShell : public ctkPythonConsole
34 {
35  Q_OBJECT
36 
37 public:
38  QmitkCtkPythonShell(QWidget* parent = nullptr);
39  ~QmitkCtkPythonShell() override;
40 public slots:
41  void Paste( const QString& command );
42 protected:
43  void dragEnterEvent(QDragEnterEvent *event) override;
44  void dropEvent(QDropEvent *event) override;
45  bool canInsertFromMimeData( const QMimeData *source ) const;
46  void executeCommand(const QString& command) override;
47 
48 private:
49  QmitkCtkPythonShellData* d;
50 };
51 
52 
53 
54 
55 #endif
QmitkCtkPythonShell
Definition: QmitkCtkPythonShell.h:33