Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
"
13
#include "
MantidAPI/InstrumentDataService.h
"
14
15
#include "
DllOption.h
"
16
#include "ui_SlitCalculator.h"
17
#include <QDialog>
18
19
namespace
MantidQt
{
20
namespace
MantidWidgets {
23
class
EXPORT_OPT_MANTIDQT_COMMON
SlitCalculator
:
public
QDialog,
public
ISlitCalculator
{
24
Q_OBJECT
25
public
:
26
SlitCalculator
(QWidget *parent);
27
~SlitCalculator
()
override
;
28
void
setCurrentInstrumentName(
const
std::string &instrumentName)
override
;
29
void
processInstrumentHasBeenChanged()
override
;
30
void
show()
override
;
31
32
protected
:
33
Ui::SlitCalculator
ui
;
34
35
private
:
36
Mantid::Geometry::Instrument_const_sptr
instrument
;
37
std::string
currentInstrumentName
;
38
void
setupSlitCalculatorWithInstrumentValues(
const
Mantid::Geometry::Instrument_const_sptr
&
/*instrument*/
);
39
const
std::string &getCurrentInstrumentName();
40
Mantid::Geometry::Instrument_const_sptr
getInstrument();
41
void
setInstrument(
const
std::string &instrumentName);
42
private
slots:
43
void
on_recalculate_triggered();
44
};
45
}
// namespace MantidWidgets
46
}
// namespace MantidQt
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
ISlitCalculator.h
InstrumentDataService.h
MantidQt::MantidWidgets::ISlitCalculator
Definition
ISlitCalculator.h:14
MantidQt::MantidWidgets::SlitCalculator
SlitCalculator : A calculator for Reflectometry instrument slits.
Definition
SlitCalculator.h:23
MantidQt::MantidWidgets::SlitCalculator::ui
Ui::SlitCalculator ui
Definition
SlitCalculator.h:33
MantidQt::MantidWidgets::SlitCalculator::instrument
Mantid::Geometry::Instrument_const_sptr instrument
Definition
SlitCalculator.h:36
MantidQt::MantidWidgets::SlitCalculator::~SlitCalculator
~SlitCalculator() override
MantidQt::MantidWidgets::SlitCalculator::currentInstrumentName
std::string currentInstrumentName
Definition
SlitCalculator.h:37
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Mantid::Geometry::Instrument_const_sptr
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Definition
Instrument_fwd.h:23
Generated by
1.9.8