From f0857041472212316ec7006e20e0761dab7861ef Mon Sep 17 00:00:00 2001 From: Stephane ALBERT <stephane.albert@c-s.fr> Date: Wed, 21 Oct 2015 11:42:06 +0200 Subject: [PATCH] BUG: MANTIS-1085; Added ::GetInput() method to otb::QtWidgetOutputFilenameParameter, otb::QtWidgetOutputImageParameter and otb::QtWidgetOutputVectorDataParameter. --- ...tbWrapperQtWidgetOutputFilenameParameter.h | 20 +++++++++++++++++++ .../otbWrapperQtWidgetOutputImageParameter.h | 19 ++++++++++++++++++ ...WrapperQtWidgetOutputVectorDataParameter.h | 20 +++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputFilenameParameter.h b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputFilenameParameter.h index 31641899e0..d2c4370b7f 100644 --- a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputFilenameParameter.h +++ b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputFilenameParameter.h @@ -42,6 +42,9 @@ public: QtWidgetOutputFilenameParameter(OutputFilenameParameter*, QtWidgetModel*); virtual ~QtWidgetOutputFilenameParameter(); + inline const QLineEdit* GetInput() const; + inline QLineEdit* GetInput(); + protected slots: void SetFileName( const QString& value ); void SelectFile(); @@ -63,6 +66,23 @@ private: }; +inline +const QLineEdit* +QtWidgetOutputFilenameParameter +::GetInput() const +{ + return m_Input; +} + +inline +QLineEdit* +QtWidgetOutputFilenameParameter +::GetInput() +{ + return m_Input; +} + + } } diff --git a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputImageParameter.h b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputImageParameter.h index 4d9e2b59a0..d0906049e1 100644 --- a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputImageParameter.h +++ b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputImageParameter.h @@ -42,6 +42,9 @@ public: QtWidgetOutputImageParameter(OutputImageParameter*, QtWidgetModel*); virtual ~QtWidgetOutputImageParameter(); + inline const QLineEdit* GetInput() const; + inline QLineEdit* GetInput(); + /** Get the PixelType*/ //itkGetMacro(PixelType, int); @@ -72,6 +75,22 @@ private: }; +inline +const QLineEdit* +QtWidgetOutputImageParameter +::GetInput() const +{ + return m_Input; +} + +inline +QLineEdit* +QtWidgetOutputImageParameter +::GetInput() +{ + return m_Input; +} + } } diff --git a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputVectorDataParameter.h b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputVectorDataParameter.h index 140d7666e4..43af269455 100644 --- a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputVectorDataParameter.h +++ b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetOutputVectorDataParameter.h @@ -42,6 +42,9 @@ public: QtWidgetOutputVectorDataParameter(OutputVectorDataParameter*, QtWidgetModel*); virtual ~QtWidgetOutputVectorDataParameter(); + inline const QLineEdit* GetInput() const; + inline QLineEdit* GetInput(); + /** Get the PixelType*/ //itkGetMacro(PixelType, int); @@ -69,6 +72,23 @@ private: }; + +inline +const QLineEdit* +QtWidgetOutputVectorDataParameter +::GetInput() const +{ + return m_Input; +} + +inline +QLineEdit* +QtWidgetOutputVectorDataParameter +::GetInput() +{ + return m_Input; +} + } } -- GitLab