Skip to content
Snippets Groups Projects
PeaksViewerOverlayDialog.h 1.05 KiB
Newer Older
#ifndef MANTIDSLICEVIEWER_PEAKSVIEWEROVERLAYDIALOG_H
#define MANTIDSLICEVIEWER_PEAKSVIEWEROVERLAYDIALOG_H

#include <QDialog>
#include "MantidQtSliceViewer/PeaksPresenter.h"

class QAbstractButton;
namespace Ui
{
}

namespace MantidQt
{
  namespace SliceViewer
  {
    class PeaksViewerOverlayDialog: public QDialog
      explicit PeaksViewerOverlayDialog(PeaksPresenter_sptr peaksPresenter, QWidget *parent = 0);
      ~PeaksViewerOverlayDialog();

      virtual void closeEvent(QCloseEvent *);
      virtual void reject();

    private slots:

      void onSliderIntoProjectionMoved(int value);
      void onSliderOnProjectionMoved(int value);
      void onReset();
      void onCompleteClicked(QAbstractButton* button);
      void onHelp();
      PeaksPresenter_sptr m_peaksPresenter;

      double m_originalOnProjectionFraction;
      double m_originalIntoProjectionFraction;
    };
  }
}

#endif // MANTIDSLICEVIEWER_PEAKSVIEWEROVERLAYDIALOG_H