43class QSortFilterProxyModel;
45using TopLevelItems = std::map<std::string, Mantid::API::Workspace_sptr>;
49namespace MantidWidgets {
50class MantidDisplayBase;
51class MantidTreeWidgetItem;
52class MantidTreeWidget;
64 QWidget *parent =
nullptr);
66 void dropEvent(QDropEvent *de)
override;
76 QStringList getSelectedWorkspaceNamesAsQList()
const;
79 bool askUserYesNo(
const std::string &caption,
const std::string &message)
const override;
80 void showCriticalUserMessage(
const std::string &caption,
const std::string &message)
const override;
82 void showLoadDialog()
override;
83 void showLiveDataDialog()
override;
85 void enableDeletePrompt(
bool enable)
override;
86 bool isPromptDelete()
const override;
87 bool deleteConfirmation()
const override;
89 bool clearWorkspacesConfirmation()
const override;
90 void enableClearButton(
bool enable)
override;
91 void clearView()
override;
92 std::string getFilterText()
const override;
94 void saveWorkspace(
const std::string &wsName,
SaveFileType type)
override;
96 void filterWorkspaces(
const std::string &filterText)
override;
97 void recordWorkspaceRename(
const std::string &oldName,
const std::string &newName)
override;
98 void refreshWorkspaces()
override;
101 void popupContextMenu()
override;
102 void showWorkspaceData()
override;
103 void saveToProgram()
override;
104 void showInstrumentView()
override;
105 void plotSpectrum(
const std::string &type)
override;
106 void showColourFillPlot()
override;
107 void showDetectorsTable()
override;
108 void showBoxDataTable()
override;
109 void showMDPlot()
override;
110 void showListData()
override;
111 void showSpectrumViewer()
override;
112 void showSliceViewer()
override;
113 void showLogs()
override;
114 void showSampleMaterialWindow()
override;
115 void showAlgorithmHistory()
override;
116 void showTransposed()
override;
117 void convertToMatrixWorkspace()
override;
118 void convertMDHistoToMatrixWorkspace()
override;
123 bool hasUBMatrix(
const std::string &wsName);
124 void addSaveMenuOption(
const QString &algorithmString, QString menuEntryName =
"");
125 void setTreeUpdating(
const bool state);
128 void populateTopLevel(
const TopLevelItems &topLevelItems,
const QStringList &expanded);
129 MantidTreeWidgetItem *addTreeEntry(
const std::pair<std::string, Mantid::API::Workspace_sptr> &item,
130 QTreeWidgetItem *parent =
nullptr);
131 bool shouldBeSelected(
const QString &name)
const;
132 void createWorkspaceMenuActions();
133 void createSortMenuActions();
134 void setItemIcon(QTreeWidgetItem *item,
const std::string &wsID);
140 void addWorkspaceGroupMenuItems(QMenu *menu)
const;
141 void addTableWorkspaceMenuItems(QMenu *menu)
const;
142 void addClearMenuItems(QMenu *menu,
const QString &wsName);
146 void setupWidgetLayout();
147 void setupLoadButtonMenu();
148 void setupConnections();
149 void hideButtonToolbar();
154 void clickedWorkspace(QTreeWidgetItem * ,
int );
155 void saveWorkspaceCollection();
156 void onClickDeleteWorkspaces();
157 void onClickClearWorkspaces();
159 void populateChildData(QTreeWidgetItem *item);
160 void onClickSaveToProgram(
const QString &name);
161 void sortAscending();
162 void sortDescending();
164 void chooseByLastModified();
165 void chooseByMemorySize();
166 void keyPressEvent(QKeyEvent * )
override;
169 void popupMenu(
const QPoint &pos);
170 void workspaceSelected();
173 void handleShowSaveAlgorithm();
174 void onTreeSelectionChanged();
175 void onClickGroupButton();
178 void onClickLiveData();
179 void onClickShowData();
180 void onClickShowInstrument();
181 void onClickShowBoxData();
182 void onClickShowMDPlot();
183 void onClickShowListData();
184 void onClickShowSpectrumViewer();
185 void onClickShowSliceViewer();
186 void onClickShowFileLog();
187 void onClickSaveNexusWorkspace();
188 void onClickShowTransposed();
189 void onClickPlotSpectra();
190 void onClickPlotSpectraErr();
191 void onClickPlotAdvanced();
192 void onClickDrawColorFillPlot();
193 void onClickShowDetectorTable();
194 void onClickConvertToMatrixWorkspace();
195 void onClickConvertMDHistoToMatrixWorkspace();
196 void onClickShowAlgHistory();
197 void onClickShowSampleMaterial();
198 void onClickClearUB();
199 void incrementUpdateCount();
200 void filterWorkspaceTree(
const QString &text);
211 QAction *m_program, *m_saveNexus, *m_rename, *
m_delete;
231 QAction *m_showData, *m_showInst, *m_plotSpec, *m_plotSpecErr, *
m_plotAdvanced, *m_showDetectors, *m_showBoxData,
232 *m_showSpectrumViewer, *m_showSliceViewer, *
m_colorFill, *m_showLogs, *m_showSampleMaterial, *m_showHist,
253 void handleClearView();
#define EXPORT_OPT_MANTIDQT_COMMON
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< const IMDEventWorkspace > IMDEventWorkspace_const_sptr
Shared pointer to Mantid::API::IMDEventWorkspace (const version)
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< const IMDWorkspace > IMDWorkspace_const_sptr
Shared pointer to the IMDWorkspace base class (const version)
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
void renameWorkspace(const IAlgorithm_sptr &renamer, const Workspace_sptr &workspace, const std::string &newName)
std::shared_ptr< const IPeaksWorkspace > IPeaksWorkspace_const_sptr
shared pointer to Mantid::API::IPeaksWorkspace (const version)