Commit 85cab3ff authored by Victor Poughon's avatar Victor Poughon

REFAC: don't inline methods in Wrappers/QtWidget

parent 91ab669d
......@@ -49,36 +49,17 @@ public:
QtStringSelectionWidget();
~QtStringSelectionWidget() override;
bool IsChecked()
{
return m_Checkbox->isChecked();
}
void SetChecked( bool val )
{
return m_Checkbox->setChecked( val );
}
inline const QString GetText() const
{
return m_Input->text();
}
inline void SetText( const QString& qString)
{
m_Input->setText(qString);
}
std::string ToStdString()
{
return m_Input->text().toLatin1().constData();
}
void ClearText()
{
m_Input->clear();
}
bool IsChecked() const;
void SetChecked( bool val );
const QString GetText() const;
void SetText( const QString& qString);
std::string ToStdString();
void ClearText();
protected slots:
void OnEditionFinished();
......
......@@ -43,8 +43,8 @@ public:
QtWidgetComplexInputImageParameter(ComplexInputImageParameter*, QtWidgetModel*, QWidget*);
~QtWidgetComplexInputImageParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
protected slots:
bool SetFileName( const QString& value );
......@@ -66,22 +66,6 @@ private:
QPushButton * m_Button;
};
inline
const QLineEdit*
QtWidgetComplexInputImageParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetComplexInputImageParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -43,8 +43,8 @@ public:
QtWidgetComplexOutputImageParameter(ComplexOutputImageParameter*, QtWidgetModel*, QWidget*);
~QtWidgetComplexOutputImageParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
/** Get the PixelType*/
//itkGetMacro(PixelType, int);
......@@ -75,22 +75,6 @@ private:
};
inline
const QLineEdit*
QtWidgetComplexOutputImageParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetComplexOutputImageParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -43,8 +43,8 @@ public:
QtWidgetInputFilenameParameter(InputFilenameParameter*, QtWidgetModel*, QWidget*);
~QtWidgetInputFilenameParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
protected slots:
void SetFileName( const QString& value );
......@@ -66,23 +66,6 @@ private:
QPushButton * m_Button;
};
inline
const QLineEdit*
QtWidgetInputFilenameParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetInputFilenameParameter
::GetInput()
{
return m_Input;
}
} // Wrapper
} // otb
......
......@@ -43,8 +43,8 @@ public:
QtWidgetInputImageParameter(InputImageParameter*, QtWidgetModel*, QWidget*);
~QtWidgetInputImageParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
signals:
void FileNameIsSet();
......@@ -72,21 +72,6 @@ private:
QPushButton * m_Button;
};
inline
const QLineEdit*
QtWidgetInputImageParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetInputImageParameter
::GetInput()
{
return m_Input;
}
} // Wrapper
......
......@@ -43,8 +43,8 @@ public:
QtWidgetInputProcessXMLParameter(InputProcessXMLParameter*, QtWidgetModel*, QWidget*);
~QtWidgetInputProcessXMLParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
protected slots:
void SetFileName( const QString& value );
......@@ -67,22 +67,6 @@ private:
};
inline
const QLineEdit*
QtWidgetInputProcessXMLParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetInputProcessXMLParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -43,8 +43,8 @@ public:
QtWidgetInputVectorDataParameter(InputVectorDataParameter*, QtWidgetModel*, QWidget*);
~QtWidgetInputVectorDataParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
protected slots:
bool SetFileName( const QString& value );
......@@ -67,22 +67,6 @@ private:
};
inline
const QLineEdit*
QtWidgetInputVectorDataParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetInputVectorDataParameter
::GetInput()
{
return m_Input;
}
} // Wrapper
} // otb
......
......@@ -37,14 +37,14 @@ class OTBQtWidget_EXPORT AppliThread : public QThread
Q_OBJECT
public:
inline AppliThread(Application* app)
AppliThread(Application* app)
{
m_Application = app;
}
~AppliThread() override;
inline void Execute()
void Execute()
{
// Call the signal start to begin running the program
start();
......
......@@ -43,8 +43,8 @@ public:
QtWidgetOutputFilenameParameter(OutputFilenameParameter*, QtWidgetModel*, QWidget*);
~QtWidgetOutputFilenameParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
public slots:
void SetFileName( const QString& value );
......@@ -68,24 +68,6 @@ private:
QPushButton * m_Button;
};
inline
const QLineEdit*
QtWidgetOutputFilenameParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetOutputFilenameParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -43,8 +43,8 @@ public:
QtWidgetOutputImageParameter(OutputImageParameter*, QtWidgetModel*, QWidget*);
~QtWidgetOutputImageParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
/** Get the PixelType*/
//itkGetMacro(PixelType, int);
......@@ -76,22 +76,6 @@ private:
};
inline
const QLineEdit*
QtWidgetOutputImageParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetOutputImageParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -43,8 +43,8 @@ public:
QtWidgetOutputProcessXMLParameter(OutputProcessXMLParameter*, QtWidgetModel*, QWidget*);
~QtWidgetOutputProcessXMLParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
public slots:
void SetFileName( const QString& value );
......@@ -69,22 +69,6 @@ private:
};
inline
const QLineEdit*
QtWidgetOutputProcessXMLParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetOutputProcessXMLParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -43,8 +43,8 @@ public:
QtWidgetOutputVectorDataParameter(OutputVectorDataParameter*, QtWidgetModel*, QWidget*);
~QtWidgetOutputVectorDataParameter() override;
inline const QLineEdit* GetInput() const;
inline QLineEdit* GetInput();
const QLineEdit* GetInput() const;
QLineEdit* GetInput();
/** Get the PixelType*/
//itkGetMacro(PixelType, int);
......@@ -74,24 +74,6 @@ private:
};
inline
const QLineEdit*
QtWidgetOutputVectorDataParameter
::GetInput() const
{
return m_Input;
}
inline
QLineEdit*
QtWidgetOutputVectorDataParameter
::GetInput()
{
return m_Input;
}
}
}
......
......@@ -35,6 +35,36 @@ QtStringSelectionWidget::~QtStringSelectionWidget()
{
}
bool QtStringSelectionWidget::IsChecked() const
{
return m_Checkbox->isChecked();
}
void QtStringSelectionWidget::SetChecked( bool val )
{
return m_Checkbox->setChecked( val );
}
const QString QtStringSelectionWidget::GetText() const
{
return m_Input->text();
}
void QtStringSelectionWidget::SetText( const QString& qString)
{
m_Input->setText(qString);
}
std::string QtStringSelectionWidget::ToStdString()
{
return m_Input->text().toLatin1().constData();
}
void QtStringSelectionWidget::ClearText()
{
m_Input->clear();
}
void QtStringSelectionWidget::DoUpdateGUI()
{
}
......
......@@ -36,6 +36,19 @@ QtWidgetComplexInputImageParameter::QtWidgetComplexInputImageParameter(ComplexIn
QtWidgetComplexInputImageParameter::~QtWidgetComplexInputImageParameter()
{
}
const QLineEdit*
QtWidgetComplexInputImageParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetComplexInputImageParameter
::GetInput()
{
return m_Input;
}
void QtWidgetComplexInputImageParameter::DoUpdateGUI()
{
......
......@@ -39,6 +39,20 @@ QtWidgetComplexOutputImageParameter::~QtWidgetComplexOutputImageParameter()
{
}
const QLineEdit*
QtWidgetComplexOutputImageParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetComplexOutputImageParameter
::GetInput()
{
return m_Input;
}
void QtWidgetComplexOutputImageParameter::DoUpdateGUI()
{
// Update the lineEdit
......
......@@ -41,6 +41,20 @@ QtWidgetInputFilenameParameter::~QtWidgetInputFilenameParameter()
{
}
const QLineEdit*
QtWidgetInputFilenameParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetInputFilenameParameter
::GetInput()
{
return m_Input;
}
void QtWidgetInputFilenameParameter::DoUpdateGUI()
{
// Update the lineEdit
......
......@@ -45,6 +45,20 @@ QtWidgetInputImageParameter::~QtWidgetInputImageParameter()
{
}
const QLineEdit*
QtWidgetInputImageParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetInputImageParameter
::GetInput()
{
return m_Input;
}
void QtWidgetInputImageParameter::DoUpdateGUI()
{
//update lineedit if HasUserValue flag is set(from xml)
......
......@@ -39,6 +39,20 @@ QtWidgetInputProcessXMLParameter::~QtWidgetInputProcessXMLParameter()
{
}
const QLineEdit*
QtWidgetInputProcessXMLParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetInputProcessXMLParameter
::GetInput()
{
return m_Input;
}
void QtWidgetInputProcessXMLParameter::DoUpdateGUI()
{
if (m_XMLParam->HasUserValue())
......
......@@ -40,6 +40,20 @@ QtWidgetInputVectorDataParameter::~QtWidgetInputVectorDataParameter()
{
}
const QLineEdit*
QtWidgetInputVectorDataParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetInputVectorDataParameter
::GetInput()
{
return m_Input;
}
void QtWidgetInputVectorDataParameter::DoUpdateGUI()
{
//update lineedit
......
......@@ -37,6 +37,20 @@ QtWidgetOutputFilenameParameter::~QtWidgetOutputFilenameParameter()
{
}
const QLineEdit*
QtWidgetOutputFilenameParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetOutputFilenameParameter
::GetInput()
{
return m_Input;
}
void QtWidgetOutputFilenameParameter::DoUpdateGUI()
{
// Update the lineEdit
......
......@@ -38,6 +38,20 @@ QtWidgetOutputImageParameter::~QtWidgetOutputImageParameter()
{
}
const QLineEdit*
QtWidgetOutputImageParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetOutputImageParameter
::GetInput()
{
return m_Input;
}
void QtWidgetOutputImageParameter::DoUpdateGUI()
{
// Update the lineEdit
......
......@@ -37,6 +37,20 @@ QtWidgetOutputProcessXMLParameter::~QtWidgetOutputProcessXMLParameter()
{
}
const QLineEdit*
QtWidgetOutputProcessXMLParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetOutputProcessXMLParameter
::GetInput()
{
return m_Input;
}
void QtWidgetOutputProcessXMLParameter::DoUpdateGUI()
{
// Update the lineEdit
......
......@@ -38,6 +38,20 @@ QtWidgetOutputVectorDataParameter::~QtWidgetOutputVectorDataParameter()
{
}
const QLineEdit*
QtWidgetOutputVectorDataParameter
::GetInput() const
{
return m_Input;
}
QLineEdit*
QtWidgetOutputVectorDataParameter
::GetInput()
{
return m_Input;
}
void QtWidgetOutputVectorDataParameter::DoUpdateGUI()
{
//update lineedit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment