Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkCtkPythonShell_h
18 #define QmitkCtkPythonShell_h
19 
20 #include <ctkPythonConsole.h>
21 #include <QString>
22 #include <MitkQtPythonExports.h>
23 
27 struct QmitkCtkPythonShellData;
28 class ctkAbstractPythonManager;
29 class QDragEnterEvent;
30 class QDropEvent;
31 class QMimeData;
32 
37 class MITKQTPYTHON_EXPORT QmitkCtkPythonShell : public ctkPythonConsole
38 {
39  Q_OBJECT
40 
41 public:
42  QmitkCtkPythonShell(QWidget* parent = 0);
44 public slots:
45  void Paste( const QString& command );
46 protected:
47  void dragEnterEvent(QDragEnterEvent *event);
48  void dropEvent(QDropEvent *event);
49  bool canInsertFromMimeData( const QMimeData *source ) const;
50  void executeCommand(const QString& command);
51 
52 private:
53  QmitkCtkPythonShellData* d;
54 };
55 
56 
57 
58 
59 #endif // QmitkCtkPythonShell_h
60