Skip to content
Snippets Groups Projects
ProjectRecoveryView.h 1.13 KiB
Newer Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
//     NScD Oak Ridge National Laboratory, European Spallation Source
//     & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
Samuel Jones's avatar
Samuel Jones committed
#ifndef PROJECTRECOVERYVIEW_H
#define PROJECTRECOVERYVIEW_H

#include "ProjectRecoveryPresenter.h"
#include <QDialog>
#include <QWidget>
Samuel Jones's avatar
Samuel Jones committed

namespace Ui {
class ProjectRecoveryWidget;
}

class ProjectRecoveryView : public QDialog {
Samuel Jones's avatar
Samuel Jones committed

public:
  explicit ProjectRecoveryView(QWidget *parent = 0,
                               ProjectRecoveryPresenter *presenter = nullptr);
  ~ProjectRecoveryView();
  void reject() override;
  void setProgressBarMaximum(int newValue);
  void connectProgressBar();

public slots:
  void updateProgressBar(int newValue, bool err);
Samuel Jones's avatar
Samuel Jones committed

private slots:
  void onClickLastCheckpoint();
  void onClickOpenLastInScriptWindow();
  void onClickStartMantidNormally();
Samuel Jones's avatar
Samuel Jones committed

private:
  void addDataToTable(Ui::ProjectRecoveryWidget *ui);
  Ui::ProjectRecoveryWidget *ui;
  ProjectRecoveryPresenter *m_presenter;
Samuel Jones's avatar
Samuel Jones committed
};

#endif // PROJECTRECOVERYVIEW_H