Implements a dialog box that allows users to save multiple Mantid workspaces.
More...
#include <SaveWorkspaces.h>
|
| void | initLayout () |
| |
| | SaveWorkspaces (QWidget *parent, const QString &suggFname, QHash< const QCheckBox *const, QString > &defSavs, bool saveAsZeroErrorFree) |
| |
| | MantidDialog (QWidget *parent=nullptr, const Qt::WindowFlags &flags=Qt::WindowCloseButtonHint|Qt::WindowType::WindowTitleHint) |
| | DefaultConstructor.
|
| |
| | ~MantidDialog () override |
| | Destructor.
|
| |
|
| static QString | getSaveAlgExt (const QString &algName) |
| | Returns the save extension expected the name algorithm.
|
| |
| static bool | handle (QObject *receiver, const std::exception &e) |
| | Handles the exception caught in an event handler.
|
| |
|
| void | addButtonsDisab (int row) |
| |
| void | closeEvent (QCloseEvent *event) override |
| |
| bool | isValid () |
| |
| QHash< QString, QString > | provideZeroFreeWorkspaces (const QListWidget *workspaces) |
| |
| void | readSettings () |
| |
| void | removeZeroFreeWorkspaces (const QHash< QString, QString > &workspaces) |
| |
| QString | saveList (const QList< QListWidgetItem * > &list, const QString &algorithm, QString fileBase, bool toAppend, QHash< QString, QString > workspaceMap) |
| |
| void | saveSettings () const |
| |
| void | setFileName (const QString &newName) |
| |
| void | setupFormatTicks (const QHash< const QCheckBox *const, QString > &defSavs) |
| |
| void | setupLine1 (QHBoxLayout *const lineOne) |
| |
| void | setupLine2 (QHBoxLayout *const lineTwo, const QHash< const QCheckBox *const, QString > &defSavs) |
| |
|
| virtual void | handleException (const std::exception &e) |
| | Override this method to handle an exception in a derived class.
|
| |
| QString | runPythonCode (const QString &code, bool no_output=false) |
| | Run python code that is passed to it and, optionally, return anything it wrote to standard output as a string.
|
| |
Implements a dialog box that allows users to save multiple Mantid workspaces.
- Author
- Steve Williams
Definition at line 26 of file SaveWorkspaces.h.
◆ SavFormatsConstIt
◆ SaveWorkspaces()
| MantidQt::MantidWidgets::SaveWorkspaces::SaveWorkspaces |
( |
QWidget * |
parent, |
|
|
const QString & |
suggFname, |
|
|
QHash< const QCheckBox *const, QString > & |
defSavs, |
|
|
bool |
saveAsZeroErrorFree |
|
) |
| |
◆ addButtonsDisab()
| void MantidQt::MantidWidgets::SaveWorkspaces::addButtonsDisab |
( |
int |
row | ) |
|
|
private |
◆ closeEvent()
| void MantidQt::MantidWidgets::SaveWorkspaces::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
overrideprivate |
◆ closing
| void MantidQt::MantidWidgets::SaveWorkspaces::closing |
( |
| ) |
|
|
signal |
◆ createZeroErrorFreeWorkspace
| void MantidQt::MantidWidgets::SaveWorkspaces::createZeroErrorFreeWorkspace |
( |
QString & |
originalWorkspace, |
|
|
QString & |
zeroFreeWorkspace |
|
) |
| |
|
signal |
◆ deleteZeroErrorFreeWorkspace
| void MantidQt::MantidWidgets::SaveWorkspaces::deleteZeroErrorFreeWorkspace |
( |
QString & |
zeroFreeWorkspace | ) |
|
|
signal |
◆ getSaveAlgExt()
| static QString MantidQt::MantidWidgets::SaveWorkspaces::getSaveAlgExt |
( |
const QString & |
algName | ) |
|
|
static |
Returns the save extension expected the name algorithm.
◆ initLayout()
| void MantidQt::MantidWidgets::SaveWorkspaces::initLayout |
( |
| ) |
|
◆ isValid()
| bool MantidQt::MantidWidgets::SaveWorkspaces::isValid |
( |
| ) |
|
|
private |
◆ onSaveAsZeroErrorFreeChanged
| void MantidQt::MantidWidgets::SaveWorkspaces::onSaveAsZeroErrorFreeChanged |
( |
int |
state | ) |
|
|
slot |
◆ onUpdateGeomtryInformation
| void MantidQt::MantidWidgets::SaveWorkspaces::onUpdateGeomtryInformation |
( |
QString & |
geometryID, |
|
|
QString & |
sampleHeight, |
|
|
QString & |
sampleWidth, |
|
|
QString & |
sampleThickness |
|
) |
| |
|
slot |
◆ provideZeroFreeWorkspaces()
| QHash< QString, QString > MantidQt::MantidWidgets::SaveWorkspaces::provideZeroFreeWorkspaces |
( |
const QListWidget * |
workspaces | ) |
|
|
private |
◆ readSettings()
| void MantidQt::MantidWidgets::SaveWorkspaces::readSettings |
( |
| ) |
|
|
private |
◆ removeZeroFreeWorkspaces()
| void MantidQt::MantidWidgets::SaveWorkspaces::removeZeroFreeWorkspaces |
( |
const QHash< QString, QString > & |
workspaces | ) |
|
|
private |
◆ saveFileBrowse
| void MantidQt::MantidWidgets::SaveWorkspaces::saveFileBrowse |
( |
| ) |
|
|
privateslot |
◆ saveList()
| QString MantidQt::MantidWidgets::SaveWorkspaces::saveList |
( |
const QList< QListWidgetItem * > & |
list, |
|
|
const QString & |
algorithm, |
|
|
QString |
fileBase, |
|
|
bool |
toAppend, |
|
|
QHash< QString, QString > |
workspaceMap |
|
) |
| |
|
private |
◆ saveSel
| void MantidQt::MantidWidgets::SaveWorkspaces::saveSel |
( |
| ) |
|
|
privateslot |
◆ saveSettings()
| void MantidQt::MantidWidgets::SaveWorkspaces::saveSettings |
( |
| ) |
const |
|
private |
◆ setFileName() [1/2]
| void MantidQt::MantidWidgets::SaveWorkspaces::setFileName |
( |
const QString & |
newName | ) |
|
|
private |
◆ setFileName [2/2]
| void MantidQt::MantidWidgets::SaveWorkspaces::setFileName |
( |
int |
row | ) |
|
|
privateslot |
◆ setupFormatTicks()
| void MantidQt::MantidWidgets::SaveWorkspaces::setupFormatTicks |
( |
const QHash< const QCheckBox *const, QString > & |
defSavs | ) |
|
|
private |
◆ setupLine1()
| void MantidQt::MantidWidgets::SaveWorkspaces::setupLine1 |
( |
QHBoxLayout *const |
lineOne | ) |
|
|
private |
◆ setupLine2()
| void MantidQt::MantidWidgets::SaveWorkspaces::setupLine2 |
( |
QHBoxLayout *const |
lineTwo, |
|
|
const QHash< const QCheckBox *const, QString > & |
defSavs |
|
) |
| |
|
private |
◆ updateGeometryInformation
| void MantidQt::MantidWidgets::SaveWorkspaces::updateGeometryInformation |
( |
| ) |
|
|
signal |
◆ m_append
| QCheckBox* MantidQt::MantidWidgets::SaveWorkspaces::m_append |
|
private |
◆ m_fNameEdit
| QLineEdit* MantidQt::MantidWidgets::SaveWorkspaces::m_fNameEdit |
|
private |
◆ m_geometryID
| QString MantidQt::MantidWidgets::SaveWorkspaces::m_geometryID |
|
private |
◆ m_lastName
| QString MantidQt::MantidWidgets::SaveWorkspaces::m_lastName |
|
private |
◆ m_sampleHeight
| QString MantidQt::MantidWidgets::SaveWorkspaces::m_sampleHeight |
|
private |
◆ m_sampleThickness
| QString MantidQt::MantidWidgets::SaveWorkspaces::m_sampleThickness |
|
private |
◆ m_sampleWidth
| QString MantidQt::MantidWidgets::SaveWorkspaces::m_sampleWidth |
|
private |
◆ m_saveAsZeroErrorFree
| bool MantidQt::MantidWidgets::SaveWorkspaces::m_saveAsZeroErrorFree |
|
private |
◆ m_savFormats
| QHash<QCheckBox *const, QString> MantidQt::MantidWidgets::SaveWorkspaces::m_savFormats |
|
private |
◆ m_workspaces
| QListWidget* MantidQt::MantidWidgets::SaveWorkspaces::m_workspaces |
|
private |
The documentation for this class was generated from the following file: