14#include "ui_CatalogSearch.h"
16#include <QCalendarWidget>
19namespace MantidWidgets {
39 virtual void initLayout();
41 void emboldenTableHeaders(QTableWidget *table);
43 void setupTable(QTableWidget *table,
const size_t &numOfRows,
const size_t &numOfColumns);
47 void clearSearch(QTableWidget *table,
const std::string &
workspace);
49 void clearSearchFrame();
51 void clearSearchResultFrame();
53 void clearDataFileFrame();
55 int headerIndexByName(QTableWidget *table,
const std::string &searchFor);
67 void populateInstrumentBox();
69 void populateInvestigationTypeBox();
71 const std::map<std::string, std::string> getSearchFields();
80 void populateResultTable(
int sort_section, Qt::SortOrder sort_order);
82 std::string selectedInvestigationSession();
89 void populateDataFileTable();
91 void addCheckBoxColumn(QTableWidget *table);
94 const std::vector<std::pair<int64_t, std::string>> selectedDataFileNames();
97 void updateDataFileLabels(QTableWidgetItem *item);
102 void populateDataFileType(
const std::unordered_set<std::string> &extensions);
105 void disableDownloadButtonIfArchives(
int row);
109 void onFacilityLogin();
113 void showCatalogSearch();
116 void showSearchResults();
118 void showDataFileInfo();
127 void dateSelected(QDate date);
129 void advancedSearchChecked();
131 void searchClicked();
134 void showErrorLabels(std::map<std::string, std::string> &errors);
136 void hideErrorLabels();
141 void openFacilitySelection();
148 void nextPageClicked();
149 void prevPageClicked();
151 void goToInputPage();
154 void investigationSelected(QTableWidgetItem *item);
161 void disableDatafileButtons();
163 void doFilter(
const int &
index);
165 void downloadDataFiles();
167 void loadDataFiles();
169 void selectAllDataFiles(
const bool &toggled);
171 void dataFileCheckboxSelected(QTableWidgetItem *item);
173 void dataFileRowSelected();
176 void sortByFileSize(
int column);
197 void correctedToolTip(
const std::string &toolTip, QLabel *label);
#define EXPORT_OPT_MANTIDQT_COMMON
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< Column > Column_sptr
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace