Mantid
|
#include <MantidWSIndexDialog.h>
Public Member Functions | |
QMultiMap< QString, std::set< int > > | getPlots () const |
Returns the QMultiMap that contains all the workspaces that are to be plotted, mapped to the set of workspace indices. More... | |
MantidWSIndexWidget::UserInput | getSelections () |
Returns a structure holding all of the selected options. More... | |
bool | is1DPlotSelected () const |
Returns whether the waterfall option has been selected. More... | |
bool | isContourPlotSelected () const |
Returns whether surface plot is selected. More... | |
bool | isErrorBarsSelected () const |
Returns whether error bars have been selected. More... | |
bool | isSurfacePlotSelected () const |
Returns whether surface plot is selected. More... | |
bool | isTiledPlotSelected () const |
Returns whether the tiled plot option has been selected. More... | |
bool | isWaterfallPlotSelected () const |
Returns whether the waterfall option has been selected. More... | |
MantidWSIndexDialog (QWidget *parent, const Qt::WindowFlags &flags, const QList< QString > &wsNames, const bool showWaterfallOption=false, const bool showPlotAll=true, const bool showTiledOption=false, const bool isAdvanced=false) | |
Constructor - has a list of the names of workspaces to be plotted. More... | |
Private Slots | |
void | plot () |
Called when the OK button is pressed. More... | |
void | plotAll () |
Called when the "Plot All" button is pressed. More... | |
Private Member Functions | |
void | init (bool isAdvanced) |
Initializes the layout of the dialog. More... | |
void | initButtons () |
Initializes the layout of the buttons. More... | |
Private Attributes | |
QHBoxLayout * | m_buttonBox |
QPushButton * | m_cancelButton |
QPushButton * | m_okButton |
Qt objects. More... | |
QVBoxLayout * | m_outer |
bool | m_plotAll |
Do we allow the display of the "Plot all" button. More... | |
QPushButton * | m_plotAllButton |
MantidWSIndexWidget | m_widget |
Definition at line 381 of file MantidWSIndexDialog.h.
MantidQt::MantidWidgets::MantidWSIndexDialog::MantidWSIndexDialog | ( | QWidget * | parent, |
const Qt::WindowFlags & | flags, | ||
const QList< QString > & | wsNames, | ||
const bool | showWaterfallOption = false , |
||
const bool | showPlotAll = true , |
||
const bool | showTiledOption = false , |
||
const bool | isAdvanced = false |
||
) |
Constructor - has a list of the names of workspaces to be plotted.
Construct an object of this type.
parent | :: The MantidUI area |
flags | :: Window flags that are passed the the QDialog constructor |
wsNames | :: the names of the workspaces to be plotted |
showWaterfallOption | :: If true the waterfall checkbox is created |
showPlotAll | :: If true the "Plot all" button is created |
showTiledOption | :: If true the "Tiled" option is created |
isAdvanced | :: true if adanced plotting dialog is created |
Definition at line 775 of file MantidWSIndexDialog.cpp.
References init().
QMultiMap< QString, std::set< int > > MantidQt::MantidWidgets::MantidWSIndexDialog::getPlots | ( | ) | const |
Returns the QMultiMap that contains all the workspaces that are to be plotted, mapped to the set of workspace indices.
Returns the user-selected plots from the widget.
Definition at line 794 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::getPlots(), and m_widget.
MantidWSIndexWidget::UserInput MantidQt::MantidWidgets::MantidWSIndexDialog::getSelections | ( | ) |
Returns a structure holding all of the selected options.
Returns the user-selected options.
Definition at line 788 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::getSelections(), and m_widget.
Referenced by MantidQt::MantidWidgets::MantidTreeWidget::chooseSpectrumFromSelected().
|
private |
Initializes the layout of the dialog.
Definition at line 856 of file MantidWSIndexDialog.cpp.
References initButtons(), m_outer, and m_widget.
Referenced by MantidWSIndexDialog().
|
private |
Initializes the layout of the buttons.
Definition at line 869 of file MantidWSIndexDialog.cpp.
References m_buttonBox, m_cancelButton, m_okButton, m_outer, m_plotAll, m_plotAllButton, plot(), and plotAll().
Referenced by init().
bool MantidQt::MantidWidgets::MantidWSIndexDialog::is1DPlotSelected | ( | ) | const |
Returns whether the waterfall option has been selected.
Whether the user selected the simple 1D plot.
Definition at line 800 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::is1DPlotSelected(), and m_widget.
bool MantidQt::MantidWidgets::MantidWSIndexDialog::isContourPlotSelected | ( | ) | const |
Returns whether surface plot is selected.
Whether the user selected the surface plot.
Definition at line 824 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::isContourPlotSelected(), and m_widget.
bool MantidQt::MantidWidgets::MantidWSIndexDialog::isErrorBarsSelected | ( | ) | const |
Returns whether error bars have been selected.
Whether the user selected error bars.
Definition at line 830 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::isErrorBarsSelected(), and m_widget.
bool MantidQt::MantidWidgets::MantidWSIndexDialog::isSurfacePlotSelected | ( | ) | const |
Returns whether surface plot is selected.
Whether the user selected the surface plot.
Definition at line 818 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::isSurfacePlotSelected(), and m_widget.
bool MantidQt::MantidWidgets::MantidWSIndexDialog::isTiledPlotSelected | ( | ) | const |
Returns whether the tiled plot option has been selected.
Whether the user selected the "tiled" plot.
Definition at line 812 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::isTiledPlotSelected(), and m_widget.
bool MantidQt::MantidWidgets::MantidWSIndexDialog::isWaterfallPlotSelected | ( | ) | const |
Returns whether the waterfall option has been selected.
Whether the user selected the "waterfall" plot.
Definition at line 806 of file MantidWSIndexDialog.cpp.
References MantidQt::MantidWidgets::MantidWSIndexWidget::isWaterfallPlotSelected(), and m_widget.
|
privateslot |
Called when the OK button is pressed.
Called when OK button pressed.
Definition at line 838 of file MantidWSIndexDialog.cpp.
References m_widget, and MantidQt::MantidWidgets::MantidWSIndexWidget::plotRequested().
Referenced by initButtons().
|
privateslot |
Called when the "Plot All" button is pressed.
Called when "Plot all" button pressed.
Definition at line 847 of file MantidWSIndexDialog.cpp.
References m_widget, and MantidQt::MantidWidgets::MantidWSIndexWidget::plotAllRequested().
Referenced by initButtons().
|
private |
Definition at line 423 of file MantidWSIndexDialog.h.
Referenced by initButtons().
|
private |
Definition at line 422 of file MantidWSIndexDialog.h.
Referenced by initButtons().
|
private |
|
private |
Definition at line 424 of file MantidWSIndexDialog.h.
Referenced by init(), and initButtons().
|
private |
Do we allow the display of the "Plot all" button.
Definition at line 420 of file MantidWSIndexDialog.h.
Referenced by initButtons().
|
private |
Definition at line 422 of file MantidWSIndexDialog.h.
Referenced by initButtons().
|
private |
Definition at line 414 of file MantidWSIndexDialog.h.
Referenced by getPlots(), getSelections(), init(), is1DPlotSelected(), isContourPlotSelected(), isErrorBarsSelected(), isSurfacePlotSelected(), isTiledPlotSelected(), isWaterfallPlotSelected(), plot(), and plotAll().