Mantid
|
A dialog for selecting a workspace from the ADS. More...
#include <AddWorkspaceDialog.h>
Public Slots | |
void | handleCancelClicked () |
void | handleOKClicked () |
Signals | |
void | closeDialog () |
void | okClicked (bool close) |
Public Member Functions | |
AddWorkspaceDialog (QWidget *parent=nullptr) | |
Constructor. More... | |
std::vector< Mantid::API::MatrixWorkspace_const_sptr > | getWorkspaces () const |
QLineEdit * | workspaceIndiceLineEdit () const |
std::vector< int > | workspaceIndices () const |
QString | workspaceName () const |
QComboBox * | workspaceNameComboBox () const |
Testing accessors. More... | |
Private Slots | |
void | selectAllSpectra (int state) |
Slot. More... | |
void | workspaceNameChanged (const QString &) |
Slot. More... | |
Private Member Functions | |
void | addWorkspacesFromGroup (std::vector< Mantid::API::MatrixWorkspace_const_sptr > &workspaces, Mantid::API::WorkspaceGroup_const_sptr const &group) const |
QStringList | availableWorkspaces () const |
void | findCommonMaxIndex (const QString &wsName) |
Private Attributes | |
int | m_maxIndex |
Maximum index in the selected workspace. More... | |
Ui::AddWorkspaceDialog | m_uiForm |
QString | m_workspaceName |
Name of the selected workspace. More... | |
std::vector< int > | m_wsIndices |
Selected workspace index. More... | |
A dialog for selecting a workspace from the ADS.
Definition at line 26 of file AddWorkspaceDialog.h.
|
explicit |
Constructor.
parent | :: A parent widget. |
Definition at line 33 of file AddWorkspaceDialog.cpp.
References availableWorkspaces(), handleCancelClicked(), handleOKClicked(), m_uiForm, selectAllSpectra(), and workspaceNameChanged().
|
private |
Definition at line 60 of file AddWorkspaceDialog.cpp.
References workspace.
Referenced by getWorkspaces().
|
private |
Definition at line 94 of file AddWorkspaceDialog.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), and Mantid::Kernel::Sorted.
Referenced by AddWorkspaceDialog().
|
signal |
Referenced by handleCancelClicked().
|
private |
Definition at line 120 of file AddWorkspaceDialog.cpp.
References m_maxIndex.
Referenced by workspaceNameChanged().
std::vector< MatrixWorkspace_const_sptr > MantidQt::MantidWidgets::AddWorkspaceDialog::getWorkspaces | ( | ) | const |
Definition at line 46 of file AddWorkspaceDialog.cpp.
References addWorkspacesFromGroup(), Mantid::Kernel::SingletonHolder< T >::Instance(), workspace, and workspaceName().
|
slot |
Definition at line 143 of file AddWorkspaceDialog.cpp.
References closeDialog(), m_workspaceName, and m_wsIndices.
Referenced by AddWorkspaceDialog().
|
slot |
Definition at line 149 of file AddWorkspaceDialog.cpp.
References m_maxIndex, m_uiForm, m_workspaceName, m_wsIndices, and okClicked().
Referenced by AddWorkspaceDialog().
|
signal |
Referenced by handleOKClicked().
|
privateslot |
Slot.
Called when "All Spectra" check box changes its state
state | :: The state of the check box (Qt::Checked or not). |
Definition at line 85 of file AddWorkspaceDialog.cpp.
References m_maxIndex, and m_uiForm.
Referenced by AddWorkspaceDialog().
|
inline |
Definition at line 39 of file AddWorkspaceDialog.h.
|
inline |
Definition at line 32 of file AddWorkspaceDialog.h.
|
inline |
Definition at line 31 of file AddWorkspaceDialog.h.
Referenced by getWorkspaces().
|
privateslot |
Slot.
Reacts on change of workspace name in the selection combo box.
wsName | :: Name of newly selected workspace. |
Definition at line 72 of file AddWorkspaceDialog.cpp.
References findCommonMaxIndex(), m_maxIndex, and m_uiForm.
Referenced by AddWorkspaceDialog().
|
inline |
Testing accessors.
Definition at line 38 of file AddWorkspaceDialog.h.
|
private |
Maximum index in the selected workspace.
Definition at line 64 of file AddWorkspaceDialog.h.
Referenced by findCommonMaxIndex(), handleOKClicked(), selectAllSpectra(), and workspaceNameChanged().
|
private |
Definition at line 65 of file AddWorkspaceDialog.h.
Referenced by AddWorkspaceDialog(), handleOKClicked(), selectAllSpectra(), and workspaceNameChanged().
|
private |
Name of the selected workspace.
Definition at line 60 of file AddWorkspaceDialog.h.
Referenced by handleCancelClicked(), and handleOKClicked().
|
private |
Selected workspace index.
Definition at line 62 of file AddWorkspaceDialog.h.
Referenced by handleCancelClicked(), and handleOKClicked().