diff --git a/Modules/Bundles/org.mitk.gui.qt.python.console/CMakeLists.txt b/Modules/Bundles/org.mitk.gui.qt.python.console/CMakeLists.txt index 6688fc4482..69fda8fa1e 100644 --- a/Modules/Bundles/org.mitk.gui.qt.python.console/CMakeLists.txt +++ b/Modules/Bundles/org.mitk.gui.qt.python.console/CMakeLists.txt @@ -1,20 +1,20 @@ # The project name must correspond to the directory name of your plug-in # and must not contain periods. -#IF(MITK_USE_PYTHON) +IF(MITK_USE_PYTHON) PROJECT(org_mitk_gui_qt_python_console) set(SWIG_PYTHON_WRAPPER _mitkCorePython SwigRuntimePython) MACRO_CREATE_MITK_CTK_PLUGIN( EXPORT_DIRECTIVE CONSOLE_EXPORT EXPORTED_INCLUDE_SUFFIXES src MODULE_DEPENDENCIES QmitkExt CTK ) -# INCLUDE_DIRECTORIES("${MITK_WRAPPING_SOURCE_DIR}/CSwig" "${MITK_WRAPPING_BINARY_DIR}/CSwig/Core") + INCLUDE_DIRECTORIES("${MITK_WRAPPING_SOURCE_DIR}/CSwig" "${MITK_WRAPPING_BINARY_DIR}/CSwig/Core") -# TARGET_LINK_LIBRARIES(org_mitk_gui_qt_python_console ${SWIG_PYTHON_WRAPPER}) + TARGET_LINK_LIBRARIES(org_mitk_gui_qt_python_console ${SWIG_PYTHON_WRAPPER}) -#ELSE() -# MESSAGE("MITK Python Console needs Python. Enable MITK_USE_PYTHON") -#ENDIF() \ No newline at end of file +ELSE() + MESSAGE("MITK Python Console needs Python. Enable MITK_USE_PYTHON") +ENDIF() \ No newline at end of file diff --git a/Modules/Bundles/org.mitk.gui.qt.python.console/src/internal/QmitkPythonVariableStack.h b/Modules/Bundles/org.mitk.gui.qt.python.console/src/internal/QmitkPythonVariableStack.h index f2f9d897e4..6d48dfc0dc 100644 --- a/Modules/Bundles/org.mitk.gui.qt.python.console/src/internal/QmitkPythonVariableStack.h +++ b/Modules/Bundles/org.mitk.gui.qt.python.console/src/internal/QmitkPythonVariableStack.h @@ -1,100 +1,100 @@ /*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef _QMITKPYTHONVARIABLESTACK_H #define _QMITKPYTHONVARIABLESTACK_H #include #include "berryISizeProvider.h" #include #include #include #include "QmitkStepperAdapter.h" #include "ui_QmitkPythonVariableStack.h" #include "QmitkPythonVariableStackTreeWidget.h" #include #include "berryISizeProvider.h" #include #include #include #include #include #include #include #include /*! * \ingroup org_mitk_gui_qt_imagenavigator_internal * * \brief QmitkPythonVariableStack * * Document your class here. * * \sa QmitkFunctionality */ -class QmitkPythonVariableStack : public QObject, public berry::QtViewPart, public berry::ISizeProvider +class QmitkPythonVariableStack : public berry::QtViewPart, public berry::ISizeProvider { // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject) Q_OBJECT public: static const std::string VIEW_ID; QmitkPythonVariableStack(); QmitkPythonVariableStack(const QmitkPythonVariableStack& other) { Q_UNUSED(other) throw std::runtime_error("Copy constructor not implemented"); } virtual ~QmitkPythonVariableStack(); virtual void CreateQtPartControl(QWidget *parent); QmitkStdMultiWidget* GetActiveStdMultiWidget(); void SetFocus(); virtual int GetSizeFlags(bool width); virtual int ComputePreferredSize(bool width, int /*availableParallel*/, int /*availablePerpendicular*/, int preferredResult); QmitkPythonVariableStackTreeWidget* getModel(); public slots: protected slots: protected: QmitkStdMultiWidget* m_MultiWidget; QTableWidget *m_tableWidget; Ui::QmitkPythonConsoleViewControls* m_Controls; QmitkPythonVariableStackTreeWidget* m_treeModel; private: }; #endif // _QmitkPythonVariableStack_H_INCLUDED