Newer
Older
#ifndef MANTIDQTMANTIDWIDGETS_JOBTREEVIEWSIGNALADAPTER_H_
#define MANTIDQTMANTIDWIDGETS_JOBTREEVIEWSIGNALADAPTER_H_
#include "MantidQtWidgets/Common/DllOption.h"
#include "MantidQtWidgets/Common/Batch/JobTreeView.h"
namespace MantidQt {
namespace MantidWidgets {
namespace Batch {
class EXPORT_OPT_MANTIDQT_COMMON JobTreeViewSignalAdapter
: public QObject,
public JobTreeViewSubscriber {
Q_OBJECT
public:
JobTreeViewSignalAdapter(JobTreeView &view, QObject *parent = nullptr);
void notifyCellChanged(RowLocation const &itemIndex, int column,
std::string const &newValue) override;
void notifyRowInserted(RowLocation const &newRowLocation) override;
void notifyRemoveRowsRequested(
std::vector<RowLocation> const &locationsOfRowsToRemove) override;
void notifyCopyRowsRequested() override;
void notifyPasteRowsRequested() override;
void cellChanged(MantidQt::MantidWidgets::Batch::RowLocation const &itemIndex,
int column, std::string newValue);
MantidQt::MantidWidgets::Batch::RowLocation const &newRowLocation);
std::vector<MantidQt::MantidWidgets::Batch::RowLocation> const &
locationsOfRowsToRemove);
void copyRowsRequested();
void pasteRowsRequested();
};
}
}
}
#endif // MANTIDQTMANTIDWIDGETS_JOBTREEVIEWSIGNALADAPTER_H_