Commit 5174f8a9 authored by Victor Poughon's avatar Victor Poughon

REFAC: remove dead code in QtWidget

parent d35fd07c
......@@ -21,58 +21,19 @@
#ifndef otbListEditItemModel_h
#define otbListEditItemModel_h
//
// Configuration include.
//// Included at first position before any other ones.
#include "otbMacro.h"
#include "OTBQtWidgetExport.h"
/*****************************************************************************/
/* INCLUDE SECTION */
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
#include <QtCore>
//
// System includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
/*****************************************************************************/
/* PRE-DECLARATION SECTION */
//
// External classes pre-declaration.
namespace
{
}
namespace otb
{
namespace Wrapper
{
//
// Internal classes pre-declaration.
// Internal classes forward declarations
class StringListInterface;
/*****************************************************************************/
/* CLASS DEFINITION SECTION */
/**
* \class ListEditItemModel
*
......@@ -84,14 +45,9 @@ class OTBQtWidget_EXPORT ListEditItemModel :
public QAbstractItemModel
{
/*-[ QOBJECT SECTION ]-----------------------------------------------------*/
Q_OBJECT;
/*-[ PUBLIC SECTION ]------------------------------------------------------*/
//
// Public types.
// Public types
public:
enum Columns
......@@ -111,8 +67,7 @@ public:
USER_ROLE_FILTER,
};
//
// Public methods.
// Public methods
public:
/** \brief Constructor. */
......@@ -122,7 +77,6 @@ public:
/** \brief Destructor. */
~ListEditItemModel() override;
//
// QAbstractItemModel overloads.
/**
......@@ -202,85 +156,22 @@ public:
const QVariant & value,
int role = Qt::EditRole ) override;
/** */
virtual bool Swap( int, int );
/** */
virtual bool IsInput() const;
/** */
virtual QString GetFilter() const;
/** */
virtual bool IsBrowsable() const;
/*-[ PUBLIC SLOTS SECTION ]------------------------------------------------*/
//
// Public SLOTS.
public slots:
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/
//
// Signals.
signals:
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
// Protected methods.
protected:
//
// Protected attributes.
protected:
/*-[ PRIVATE SECTION ]-----------------------------------------------------*/
//
// Private methods.
// Private attributes
private:
//
// Private attributes.
private:
/** */
StringListInterface * m_StringList;
/*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
//
// Slots.
private slots:
};
} // end namespace 'Wrapper'.
} // end namespace 'otb'.
/*****************************************************************************/
/* INLINE SECTION */
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
//
// System includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace otb
{
} // end namespace 'otb'
#endif // otbListEditItemModel_h
......@@ -21,48 +21,17 @@
#ifndef otbWrapperQtWidgetListEditWidget_h
#define otbWrapperQtWidgetListEditWidget_h
//
// Configuration include.
//// Included at first position before any other ones.
#include "otbConfigure.h"
/*****************************************************************************/
/* INCLUDE SECTION */
//
// Qt includes (sorted by alphabetic order)
//// Must be included before system/custom includes.
#include <QtWidgets>
//
// System includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
#include "OTBQtWidgetExport.h"
/*****************************************************************************/
/* PRE-DECLARATION SECTION */
//
// External classes pre-declaration.
namespace
{
}
namespace otb
{
namespace Wrapper
{
//
// Internal classes pre-declaration.
// Internal classes forward declarations
class ListEditItemModel;
class StringListInterface;
......@@ -71,10 +40,6 @@ namespace Ui
class ListEditWidget;
};
/*****************************************************************************/
/* CLASS DEFINITION SECTION */
/**
* \class ListEditWidget
*
......@@ -86,14 +51,8 @@ class OTBQtWidget_EXPORT ListEditWidget :
public QWidget
{
/*-[ QOBJECT SECTION ]-----------------------------------------------------*/
Q_OBJECT;
/*-[ PUBLIC SECTION ]------------------------------------------------------*/
//
// Public methods.
public:
/** \brief Constructor. */
......@@ -104,52 +63,18 @@ public:
/** \brief Destructor. */
virtual ~ListEditWidget();
/**
*/
const ListEditItemModel * GetItemModel() const;
/**
*/
ListEditItemModel * GetItemModel();
#if 0
/** */
void SetBrowseEnabled( bool );
/** */
bool IsBrowseEnabled() const;
#endif
/*-[ PUBLIC SLOTS SECTION ]------------------------------------------------*/
//
// Public SLOTS.
public slots:
void OnFilenameDropped(const QString &);
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/
//
// Signals.
signals:
/** */
void Updated();
void ValueChanged();
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
// Protected methods.
protected:
/*-[ PRIVATE SECTION ]-----------------------------------------------------*/
//
// Protected attributes.
protected:
//
// Private types.
private:
enum SwapSelection
{
......@@ -158,8 +83,6 @@ private:
RIGHT = +1,
};
//
// Private methods.
private:
void Swap( int, int, SwapSelection = NONE );
......@@ -167,18 +90,12 @@ private:
QString browseFilename( const QModelIndex & );
//
// Private attributes.
private:
/**
* \brief uic generated.
*/
Ui::ListEditWidget * m_UI;
/*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
//
// Slots.
private slots:
void on_addButton_clicked();
void on_browseButton_clicked();
......@@ -198,11 +115,4 @@ private slots:
} // end namespace 'otb'
/*****************************************************************************/
/* INLINE SECTION */
namespace Wrapper
{
} // end namespace 'Wrapper'
#endif // otbWrappersQtWidgetListEditWidget_h
......@@ -22,9 +22,6 @@
#define otbWrapperQtWidgetView_h
#include <QtWidgets>
//
// OTB includes (sorted by alphabetic order)
#include "otbWrapperApplication.h"
#include "otbWrapperQtWidgetModel.h"
#include "OTBQtWidgetExport.h"
......@@ -34,9 +31,6 @@ namespace otb
namespace Wrapper
{
/*****************************************************************************/
/* CLASS DEFINITION SECTION */
/**
* \class QtWidgetView
*
......@@ -44,26 +38,17 @@ namespace Wrapper
*
* \brief WIP.
*/
class OTBQtWidget_EXPORT QtWidgetView :
public QWidget
{
/*-[ QOBJECT SECTION ]-----------------------------------------------------*/
Q_OBJECT
Q_PROPERTY( bool isClosable
READ IsClosable
WRITE SetClosable );
/*-[ PUBLIC SECTION ]------------------------------------------------------*/
//
// Public methods.
public:
/**
*/
static char const * const OBJECT_NAME;
/** \brief Constructor. */
......@@ -93,45 +78,26 @@ public:
//~ );
//~ }
/**
*/
inline bool IsClosable() const;
/*-[ PUBLIC SLOTS SECTION ]------------------------------------------------*/
//
// Public SLOTS.
public slots:
void UnhandledException(QString message);
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/
//
// Signals.
signals:
void QuitSignal();
void ExecuteAndWriteOutput();
void Stop();
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
//
// Protected methods.
protected:
bool IsRunning();
virtual QWidget* CreateInputWidgets();
//
// QWidget overloads.
void closeEvent( QCloseEvent * event ) override;
//
// Protected attributes.
protected:
/** Html section for 'Done' icon */
......@@ -142,15 +108,10 @@ protected:
protected slots:
/**
*/
void OnExecButtonClicked();
void OnExceptionRaised( QString what );
/*-[ PRIVATE SECTION ]-----------------------------------------------------*/
//
// Private methods.
private:
......@@ -162,9 +123,7 @@ private:
QWidget* CreateDoc();
//
// Private attributes.
private:
otb::Wrapper::QtWidgetModel* m_Model;
......@@ -180,10 +139,6 @@ private:
bool m_IsRunning;
/*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
//
// Slots.
private slots:
void UpdateMessageAfterExecution(int status);
void UpdateMessageAfterApplicationReady(bool val);
......
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