diff --git a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetView.h b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetView.h index 09f905c46b240faada2afd7af530c7f6242c7f6d..0f1ac8a3455cd5487c7af6b2dfd45b3c25069984 100644 --- a/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetView.h +++ b/Modules/Wrappers/QtWidget/include/otbWrapperQtWidgetView.h @@ -105,8 +105,7 @@ public: // // Public SLOTS. public slots: - void UnhandledException(QString message); - void OnExceptionRaised( QString what ); + /*-[ SIGNALS SECTION ]-----------------------------------------------------*/ // @@ -123,6 +122,10 @@ signals: // Protected methods. protected: + bool IsRunning(); + + virtual QWidget* CreateInputWidgets(); + // // QWidget overloads. @@ -137,6 +140,15 @@ protected: /** Html section for 'Failed' icon */ std::string m_IconPathFailed; + +protected slots: + + /** + */ + void OnExecButtonClicked(); + + void UnhandledException(QString message); + void OnExceptionRaised( QString what ); /*-[ PRIVATE SECTION ]-----------------------------------------------------*/ @@ -149,8 +161,6 @@ private: QWidget* CreateFooter(); - QWidget* CreateInputWidgets(); - QWidget* CreateDoc(); @@ -180,10 +190,6 @@ private slots: void UpdateMessageAfterExecution(int status); void UpdateMessageAfterApplicationReady(bool val); - /** - */ - void OnExecButtonClicked(); - /** */ inline void OnProgressReportBegin(); diff --git a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetView.cxx b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetView.cxx index 2daeb8d697cb3af39e49c65401e3e97a0bda626d..f689d59d81183f5c54173b29afdd2307403c1bbe 100644 --- a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetView.cxx +++ b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetView.cxx @@ -284,6 +284,11 @@ void QtWidgetView::OnExceptionRaised( QString /*message*/) m_TabWidget->setCurrentIndex(1); } +bool QtWidgetView::IsRunning() +{ + return m_IsRunning; } -} + +} // end of namespace Wrapper +} // end of namespace otb