#pragma once
/*=========================================================================

 medInria

 Copyright (c) INRIA 2013 - 2020. All rights reserved.
 See LICENSE.txt for details.

  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

=========================================================================*/

#include <medAbstractProcessPresenter.h>
#include <medAbstractSingleFilterOperationProcess.h>
#include <medCoreGuiExport.h>

class QWidget;
class QPushButton;

class medViewContainerSplitter;
class medAbstractData;
class medIntParameterPresenter;

class medAbstractSingleFilterOperationProcessPresenterPrivate;
class MEDCOREGUI_EXPORT medAbstractSingleFilterOperationProcessPresenter : public medAbstractProcessPresenter
{
    Q_OBJECT

public:
    medAbstractSingleFilterOperationProcessPresenter(medAbstractSingleFilterOperationProcess *parent = nullptr);
    virtual ~medAbstractSingleFilterOperationProcessPresenter();

    virtual QWidget *buildToolBoxWidget();
    virtual medViewContainerSplitter *buildViewContainerSplitter();

    medIntParameterPresenter *progressionPresenter();
private:
    const QScopedPointer<medAbstractSingleFilterOperationProcessPresenterPrivate> d;

private slots:
    void _importOutput(medAbstractJob::medJobExitStatus jobExitStatus);
    void _setInputFromContainer(medAbstractData *data);

signals:
    void _outputImported(medAbstractData *);
};

