Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkPythonTextEditor.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 QmitkPythonTextEditor_h
14
#define QmitkPythonTextEditor_h
15
16
#include <QTextEdit>
17
#include <QDragEnterEvent>
18
#include <QDropEvent>
19
#include <MitkQtPythonExports.h>
20
struct
QmitkPythonTextEditorData;
21
24
class
MITKQTPYTHON_EXPORT
QmitkPythonTextEditor
:
public
QWidget
25
{
26
Q_OBJECT
27
28
public
:
29
QmitkPythonTextEditor
(QWidget *parent =
nullptr
);
30
~
QmitkPythonTextEditor
()
override
;
31
public
slots:
32
void
Paste(
const
QString& command);
33
34
protected
slots:
35
void
on_SaveScript_triggered(
bool
checked=
false
);
36
void
on_LoadScript_triggered(
bool
checked=
false
);
37
void
on_RunScript_triggered(
bool
checked=
false
);
38
39
protected
:
40
void
dragEnterEvent(QDragEnterEvent *event)
override
;
41
void
dropEvent(QDropEvent *event)
override
;
42
//bool canInsertFromMimeData( const QMimeData *source ) const;
43
QString ReadFile(
const
QString &filename);
44
45
private
:
46
QmitkPythonTextEditorData* d;
47
};
48
49
#endif
QmitkPythonTextEditor
this is a python text editor with syntax highlighting
Definition:
QmitkPythonTextEditor.h:24
src
MITK
Modules
QtPython
QmitkPythonTextEditor.h
Generated on Sat Nov 23 2024 02:13:16 for Medical Imaging Interaction Toolkit by
1.8.17