Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkPythonTextEditor Class Reference

this is a python text editor with syntax highlightning More...

#include <QmitkPythonTextEditor.h>

Inheritance diagram for QmitkPythonTextEditor:
Collaboration diagram for QmitkPythonTextEditor:

Public Slots

void Paste (const QString &command)
 

Public Member Functions

 QmitkPythonTextEditor (QWidget *parent=nullptr)
 
 ~QmitkPythonTextEditor () override
 

Protected Slots

void on_SaveScript_triggered (bool checked=false)
 
void on_LoadScript_triggered (bool checked=false)
 
void on_RunScript_triggered (bool checked=false)
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
QString ReadFile (const QString &filename)
 

Detailed Description

this is a python text editor with syntax highlightning

Definition at line 24 of file QmitkPythonTextEditor.h.

Constructor & Destructor Documentation

◆ QmitkPythonTextEditor()

QmitkPythonTextEditor::QmitkPythonTextEditor ( QWidget *  parent = nullptr)

Definition at line 50 of file QmitkPythonTextEditor.cpp.

References us::GetModuleContext().

◆ ~QmitkPythonTextEditor()

QmitkPythonTextEditor::~QmitkPythonTextEditor ( )
override

Definition at line 97 of file QmitkPythonTextEditor.cpp.

References us::GetModuleContext().

Member Function Documentation

◆ dragEnterEvent()

void QmitkPythonTextEditor::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

Definition at line 105 of file QmitkPythonTextEditor.cpp.

◆ dropEvent()

void QmitkPythonTextEditor::dropEvent ( QDropEvent *  event)
overrideprotected

Definition at line 110 of file QmitkPythonTextEditor.cpp.

References Paste().

◆ on_LoadScript_triggered

void QmitkPythonTextEditor::on_LoadScript_triggered ( bool  checked = false)
protectedslot

Definition at line 166 of file QmitkPythonTextEditor.cpp.

References ReadFile().

◆ on_RunScript_triggered

void QmitkPythonTextEditor::on_RunScript_triggered ( bool  checked = false)
protectedslot

◆ on_SaveScript_triggered

void QmitkPythonTextEditor::on_SaveScript_triggered ( bool  checked = false)
protectedslot

Definition at line 154 of file QmitkPythonTextEditor.cpp.

◆ Paste

void QmitkPythonTextEditor::Paste ( const QString &  command)
slot

Definition at line 125 of file QmitkPythonTextEditor.cpp.

Referenced by dropEvent().

◆ ReadFile()

QString QmitkPythonTextEditor::ReadFile ( const QString &  filename)
protected

Definition at line 134 of file QmitkPythonTextEditor.cpp.

References line, and MITK_ERROR.

Referenced by on_LoadScript_triggered().


The documentation for this class was generated from the following files: