|
Mantid
|
This class defines the interface and functionality for the cataloging system within Mantid. More...
#include <CatalogSearch.h>
Public Member Functions | |
| CatalogSearch (QWidget *parent=nullptr) | |
| Default constructor. | |
| ~CatalogSearch () override | |
| Destructor. | |
Private Slots | |
| void | advancedSearchChecked () |
| Show the advanced field when checked. | |
| void | dataFileCheckboxSelected (QTableWidgetItem *item) |
| Select/Deselect row when a checkbox is selected. | |
| void | dataFileRowSelected () |
| Select/Deselect row & check-box when a row is selected. | |
| void | dateSelected (QDate date) |
| Update text field when date is selected. | |
| void | disableDatafileButtons () |
| Disable load/download buttons if no datafile is selected. | |
| void | doFilter (const int &index) |
| Performs filterDataFileType() for specified filer type. | |
| void | downloadDataFiles () |
| Downloads selected datFiles to a specified location. | |
| void | goToInputPage () |
| Populate's result table depending page number input by user. | |
| void | helpClicked () |
| When the help button is clicked. | |
| void | hideErrorLabels () |
| Hide the error message labels. | |
| void | investigationSelected (QTableWidgetItem *item) |
| Checks that the investigation is selected and performs investigationClicked. | |
| void | loadDataFiles () |
| Loads the selected dataFiles into workspaces. | |
| void | nextPageClicked () |
| Populate the result table, and update the page number. | |
| void | onFacilityLogin () |
| When the facility login button is clicked. | |
| void | onReset () |
| Reset all fields when "Reset" is clicked. | |
| void | openCalendar () |
| Open the DateTime Calendar to select date. | |
| void | openFacilitySelection () |
| Enables user to select specific facilities that they want to search the catalogs of. | |
| void | prevPageClicked () |
| void | searchClicked () |
| When the "Search" button is clicked, display "Search results" frame. | |
| void | selectAllDataFiles (const bool &toggled) |
| Selects/deselects ALL rows in dataFile table. | |
| void | showCatalogSearch () |
| When checked, show the Catalog search frame. | |
| void | showDataFileInfo () |
| When checked, show the data file info frame. | |
| void | showErrorLabels (std::map< std::string, std::string > &errors) |
| Show the error message labels, including the error message on the tooltips. | |
| void | showSearchResults () |
| Shows/Hides the "Search results" frame when search results combo box is checked. | |
| void | sortByFileSize (int column) |
| Sort table by file size when certain column is clicked (E.g. | |
Private Member Functions | |
| void | addCheckBoxColumn (QTableWidget *table) |
| Add a row of checkboxes to the first column of a table. | |
| void | clearDataFileFrame () |
| Clear "dataFileFrame" when the user tries to search again. | |
| void | clearSearch (QTableWidget *table, const std::string &workspace) |
| Removes data associated with previous search. | |
| void | clearSearchFrame () |
| Clear the "search" frame when an investigation has been selected. | |
| void | clearSearchResultFrame () |
| Clear the "search results" frame if no results are returned from search. | |
| void | correctedToolTip (const std::string &toolTip, QLabel *label) |
| void | dateSelected (const std::string &buttonName) |
| void | disableDownloadButtonIfArchives (int row) |
| Disable the download button if user can access the files locally from the archives. | |
| void | emboldenTableHeaders (QTableWidget *table) |
| Make the headers in the provided table bold. | |
| std::unordered_set< std::string > | getDataFileExtensions (const Mantid::API::Column_sptr &column) |
| Obtain all file extensions from the provided column (dataFileResults -> File name). | |
| const std::map< std::string, std::string > | getSearchFields () |
| Obtain the users' text input for each search field. | |
| int | headerIndexByName (QTableWidget *table, const std::string &searchFor) |
| Obtain the index of the column in a table that contains a specified name. | |
| virtual void | initLayout () |
| Initialise the layout. | |
| void | loadSettings () |
| Read settings from store. | |
| void | populateDataFileTable () |
| Populates the table from the results of investigationSelected();. | |
| void | populateDataFileType (const std::unordered_set< std::string > &extensions) |
| Add the list of file extensions to the "Filter type..." drop-down. | |
| void | populateInstrumentBox () |
| Populate the instrument list-box. | |
| void | populateInvestigationTypeBox () |
| Populate the investigation type list-box. | |
| void | populateResultTable (int sort_section, Qt::SortOrder sort_order) |
| Outputs the results of the query into a table. | |
| void | populateTable (QTableWidget *table, const Mantid::API::ITableWorkspace_sptr &workspace) |
| Populate the provided table with data from the provided workspace. | |
| void | saveSettings () |
| Save the current state of ICAT for next time. | |
| const std::vector< std::pair< int64_t, std::string > > | selectedDataFileNames () |
| Obtain the file details (file ID and name) for the file to download. | |
| std::string | selectedInvestigationSession () |
| Obtain the sessionID for the selected investigation. | |
| void | setupTable (QTableWidget *table, const size_t &numOfRows, const size_t &numOfColumns) |
| Setup table prior to adding data to it, such hiding vertical header. | |
| void | updateDataFileLabels (QTableWidgetItem *item) |
| Updates the dataFile text boxes with relevant info about the selected dataFile. | |
| bool | validateDates () |
| Checks if start date is greater than end date. | |
Private Attributes | |
| QCalendarWidget * | m_calendar |
| The calendar widget that will allow the user to select start and end date/times. | |
| CatalogSelector * | m_catalogSelector |
| Access methods of catalog selector GUI, e.g. selected facilities. | |
| int | m_currentPageNumber |
| The current page the user is on in the results window. Used for paging. | |
| CheckboxHeader * | m_customHeader |
| The custom table header with checkbox functionality. | |
| QString | m_dateButtonName |
| The name of the date button the user pressed to open the calendar. | |
| QString | m_downloadSaveDir |
| The directory to save the downloaded dataFiles. | |
| CatalogHelper * | m_icatHelper |
| The helper class that accesses ICAT algorithmic functionality. | |
| Ui::CatalogSearch | m_icatUiForm |
| The form generated by QT Designer. | |
This class defines the interface and functionality for the cataloging system within Mantid.
Definition at line 28 of file CatalogSearch.h.
| MantidQt::MantidWidgets::CatalogSearch::CatalogSearch | ( | QWidget * | parent = nullptr | ) |
Default constructor.
|
override |
Destructor.
|
private |
Add a row of checkboxes to the first column of a table.
|
privateslot |
Show the advanced field when checked.
|
private |
Clear "dataFileFrame" when the user tries to search again.
|
private |
Removes data associated with previous search.
|
private |
Clear the "search" frame when an investigation has been selected.
|
private |
Clear the "search results" frame if no results are returned from search.
|
private |
|
privateslot |
Select/Deselect row when a checkbox is selected.
|
privateslot |
Select/Deselect row & check-box when a row is selected.
|
private |
|
privateslot |
Update text field when date is selected.
|
privateslot |
Disable load/download buttons if no datafile is selected.
|
private |
Disable the download button if user can access the files locally from the archives.
|
privateslot |
Performs filterDataFileType() for specified filer type.
|
privateslot |
Downloads selected datFiles to a specified location.
|
private |
Make the headers in the provided table bold.
|
private |
Obtain all file extensions from the provided column (dataFileResults -> File name).
|
private |
Obtain the users' text input for each search field.
|
privateslot |
Populate's result table depending page number input by user.
|
private |
Obtain the index of the column in a table that contains a specified name.
|
privateslot |
When the help button is clicked.
|
privateslot |
Hide the error message labels.
|
privatevirtual |
Initialise the layout.
|
privateslot |
Checks that the investigation is selected and performs investigationClicked.
|
privateslot |
Loads the selected dataFiles into workspaces.
|
private |
Read settings from store.
|
privateslot |
Populate the result table, and update the page number.
|
privateslot |
When the facility login button is clicked.
|
privateslot |
Reset all fields when "Reset" is clicked.
|
privateslot |
Open the DateTime Calendar to select date.
|
privateslot |
Enables user to select specific facilities that they want to search the catalogs of.
|
private |
Populates the table from the results of investigationSelected();.
|
private |
Add the list of file extensions to the "Filter type..." drop-down.
|
private |
Populate the instrument list-box.
|
private |
Populate the investigation type list-box.
|
private |
Outputs the results of the query into a table.
|
private |
Populate the provided table with data from the provided workspace.
|
privateslot |
|
private |
Save the current state of ICAT for next time.
|
privateslot |
When the "Search" button is clicked, display "Search results" frame.
|
privateslot |
Selects/deselects ALL rows in dataFile table.
|
private |
Obtain the file details (file ID and name) for the file to download.
(Used in downloadDataFiles).
|
private |
Obtain the sessionID for the selected investigation.
|
private |
Setup table prior to adding data to it, such hiding vertical header.
|
privateslot |
When checked, show the Catalog search frame.
|
privateslot |
When checked, show the data file info frame.
|
privateslot |
Show the error message labels, including the error message on the tooltips.
|
privateslot |
Shows/Hides the "Search results" frame when search results combo box is checked.
|
privateslot |
Sort table by file size when certain column is clicked (E.g.
"File size" row).
|
private |
Updates the dataFile text boxes with relevant info about the selected dataFile.
|
private |
Checks if start date is greater than end date.
|
private |
The calendar widget that will allow the user to select start and end date/times.
Definition at line 187 of file CatalogSearch.h.
|
private |
Access methods of catalog selector GUI, e.g. selected facilities.
Definition at line 191 of file CatalogSearch.h.
|
private |
The current page the user is on in the results window. Used for paging.
Definition at line 195 of file CatalogSearch.h.
|
private |
The custom table header with checkbox functionality.
Definition at line 182 of file CatalogSearch.h.
|
private |
The name of the date button the user pressed to open the calendar.
Definition at line 180 of file CatalogSearch.h.
|
private |
The directory to save the downloaded dataFiles.
Definition at line 193 of file CatalogSearch.h.
|
private |
The helper class that accesses ICAT algorithmic functionality.
Definition at line 189 of file CatalogSearch.h.
|
private |
The form generated by QT Designer.
Definition at line 184 of file CatalogSearch.h.