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

#include <QmitkCtkPythonShell.h>

Inheritance diagram for QmitkCtkPythonShell:
Collaboration diagram for QmitkCtkPythonShell:

Public Slots

void Paste (const QString &command)
 

Public Member Functions

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

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
bool canInsertFromMimeData (const QMimeData *source) const
 
void executeCommand (const QString &command) override
 

Detailed Description

Reimplements the ctkPythonConsole with drag and drop functionality for text Furthermore it calls NotifyObserver() on the IPythonService to inform listeners

Definition at line 33 of file QmitkCtkPythonShell.h.

Constructor & Destructor Documentation

◆ QmitkCtkPythonShell()

QmitkCtkPythonShell::QmitkCtkPythonShell ( QWidget *  parent = nullptr)

◆ ~QmitkCtkPythonShell()

QmitkCtkPythonShell::~QmitkCtkPythonShell ( )
override

Definition at line 55 of file QmitkCtkPythonShell.cpp.

References us::GetModuleContext().

Member Function Documentation

◆ canInsertFromMimeData()

bool QmitkCtkPythonShell::canInsertFromMimeData ( const QMimeData *  source) const
protected

Definition at line 75 of file QmitkCtkPythonShell.cpp.

◆ dragEnterEvent()

void QmitkCtkPythonShell::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected

Definition at line 62 of file QmitkCtkPythonShell.cpp.

◆ dropEvent()

void QmitkCtkPythonShell::dropEvent ( QDropEvent *  event)
overrideprotected

Definition at line 66 of file QmitkCtkPythonShell.cpp.

References mitk::IPythonService::SINGLE_LINE_COMMAND.

◆ executeCommand()

void QmitkCtkPythonShell::executeCommand ( const QString &  command)
overrideprotected

Definition at line 80 of file QmitkCtkPythonShell.cpp.

References MITK_DEBUG, and mitk::IPythonService::MULTI_LINE_COMMAND.

◆ Paste

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

Definition at line 87 of file QmitkCtkPythonShell.cpp.


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