Mantid
|
This is a dialog for selecting workspaces. More...
#include <SelectWorkspacesDialog.h>
Public Member Functions | |
QStringList | getSelectedNames () const |
Return the selected names. More... | |
SelectWorkspacesDialog (QWidget *parent=nullptr, const std::string &typeFilter="", const std::string &customButtonLabel="") | |
Constructor. More... | |
Static Public Attributes | |
static const int | CustomButton = 45654 |
return value of the Custom button More... | |
Private Slots | |
void | customButtonPress () |
slot to handle the custom button press More... | |
void | selectionChanged () |
Slot to monitor the workspace selection status. More... | |
Private Attributes | |
QPushButton * | m_customButton |
The OK button. More... | |
QPushButton * | m_okButton |
The OK button. More... | |
QListWidget * | m_wsList |
Displays available workspace names. More... | |
This is a dialog for selecting workspaces.
Definition at line 28 of file SelectWorkspacesDialog.h.
MantidQt::MantidWidgets::SelectWorkspacesDialog::SelectWorkspacesDialog | ( | QWidget * | parent = nullptr , |
const std::string & | typeFilter = "" , |
||
const std::string & | customButtonLabel = "" |
||
) |
Constructor.
parent | : Parent widget |
typeFilter | : optional filter for filtering workspaces by type. |
customButtonLabel | : optional label for another custom button, return code for this is defined by CustomButton. |
Definition at line 54 of file SelectWorkspacesDialog.cpp.
References customButtonPress(), Mantid::Kernel::DataService< T >::getObjects(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_customButton, m_okButton, m_wsList, selectionChanged(), and tmp.
|
privateslot |
slot to handle the custom button press
Definition at line 111 of file SelectWorkspacesDialog.cpp.
References CustomButton.
Referenced by SelectWorkspacesDialog().
QStringList MantidQt::MantidWidgets::SelectWorkspacesDialog::getSelectedNames | ( | ) | const |
Return the selected names.
Definition at line 100 of file SelectWorkspacesDialog.cpp.
References m_wsList.
Referenced by MantidQt::MantidWidgets::SequentialFitDialog::addWorkspace().
|
privateslot |
Slot to monitor the workspace selection status.
Definition at line 108 of file SelectWorkspacesDialog.cpp.
References m_okButton, and m_wsList.
Referenced by SelectWorkspacesDialog().
|
static |
return value of the Custom button
Definition at line 33 of file SelectWorkspacesDialog.h.
Referenced by customButtonPress().
|
private |
The OK button.
Definition at line 57 of file SelectWorkspacesDialog.h.
Referenced by SelectWorkspacesDialog().
|
private |
The OK button.
Definition at line 55 of file SelectWorkspacesDialog.h.
Referenced by selectionChanged(), and SelectWorkspacesDialog().
|
private |
Displays available workspace names.
Definition at line 53 of file SelectWorkspacesDialog.h.
Referenced by getSelectedNames(), selectionChanged(), and SelectWorkspacesDialog().