Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 highlightning
Definition:
QmitkPythonTextEditor.h:24
MitkQtPythonExports.h
MITKQTPYTHON_EXPORT
#define MITKQTPYTHON_EXPORT
Definition:
MitkQtPythonExports.h:15
Source
Modules
QtPython
QmitkPythonTextEditor.h
Generated on Thu Mar 12 2020 10:24:11 for Medical Imaging Interaction Toolkit by
1.8.13