Mantid
Loading...
Searching...
No Matches
SortTableWorkspaceDialog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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//------------------------------------------------------------------------------
13#include "ui_SortTableWorkspaceDialog.h"
14
15#include <QMap>
16
17namespace MantidQt {
18
19namespace CustomDialogs {
20
27 Q_OBJECT
28
29public:
31 SortTableWorkspaceDialog(QWidget *parent = nullptr);
32
33private:
35 void initLayout() override;
37 void parseInput() override;
39 void tieStaticWidgets(const bool readHistory);
40private slots:
42 void workspaceChanged(const QString &wsName);
44 void addColumn();
46 void changedColumnName(int /*unused*/);
48 void removeColumn();
50 void clearGUI();
51
52private:
54 Ui::SortTableWorkspaceDialog m_form;
56 QStringList m_columnNames;
58 QStringList m_sortColumns;
59};
60
61} // namespace CustomDialogs
62} // namespace MantidQt
This class should be the basis for all customised algorithm dialogs.
This class gives specialised dialog for the SortTableWorkspace algorithm.
void tieStaticWidgets(const bool readHistory)
Tie static widgets to their properties.
void addColumn()
Add GUI elements to set a new column as a sorting key.
QStringList m_columnNames
Names of the columns in the workspace.
void changedColumnName(int)
Sync the GUI after a sorting column name changes.
QStringList m_sortColumns
Names of columns used to sort the table.
void clearGUI()
Clear the GUI form the workspace specific data/elements.
void parseInput() override
Pass input from non-standard GUI elements to the algorithm.
void workspaceChanged(const QString &wsName)
Update GUI after workspace changes.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...