Mantid
Loading...
Searching...
No Matches
SlitCalculator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------
10// Includes
11//----------------------------------
12#include "ISlitCalculator.h"
14
15#include "DllOption.h"
16#include "ui_SlitCalculator.h"
17#include <QDialog>
18
19namespace MantidQt {
20namespace MantidWidgets {
24 Q_OBJECT
25public:
26 SlitCalculator(QWidget *parent);
27 ~SlitCalculator() override;
28 void setCurrentInstrumentName(const std::string &instrumentName) override;
29 void processInstrumentHasBeenChanged() override;
30 void show() override;
31
32protected:
33 Ui::SlitCalculator ui;
34
35private:
38 void setupSlitCalculatorWithInstrumentValues(const Mantid::Geometry::Instrument_const_sptr & /*instrument*/);
39 std::string getCurrentInstrumentName();
41 void setInstrument(const std::string &instrumentName);
42private slots:
43 void on_recalculate_triggered();
44};
45} // namespace MantidWidgets
46} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
SlitCalculator : A calculator for Reflectometry instrument slits.
Mantid::Geometry::Instrument_const_sptr instrument
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.