Commit 836bc780 authored by Ian Bush's avatar Ian Bush
Browse files

Refs #17807 Replace selected instances of *.* with *

parent 012f97d5
...@@ -755,7 +755,7 @@ void InstrumentWidgetMaskTab::sumDetsToWorkspace() { ...@@ -755,7 +755,7 @@ void InstrumentWidgetMaskTab::sumDetsToWorkspace() {
void InstrumentWidgetMaskTab::saveIncludeGroupToFile() { void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
QString fname = m_instrWidget->getSaveFileName( QString fname = m_instrWidget->getSaveFileName(
"Save grouping file", "XML files (*.xml);;All (*.* *)"); "Save grouping file", "XML files (*.xml);;All (*)");
if (!fname.isEmpty()) { if (!fname.isEmpty()) {
QList<int> dets; QList<int> dets;
m_instrWidget->getSurface()->getMaskedDetectors(dets); m_instrWidget->getSurface()->getMaskedDetectors(dets);
...@@ -765,7 +765,7 @@ void InstrumentWidgetMaskTab::saveIncludeGroupToFile() { ...@@ -765,7 +765,7 @@ void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
void InstrumentWidgetMaskTab::saveExcludeGroupToFile() { void InstrumentWidgetMaskTab::saveExcludeGroupToFile() {
QString fname = m_instrWidget->getSaveFileName( QString fname = m_instrWidget->getSaveFileName(
"Save grouping file", "XML files (*.xml);;All (*.* *)"); "Save grouping file", "XML files (*.xml);;All (*)");
if (!fname.isEmpty()) { if (!fname.isEmpty()) {
QList<int> dets; QList<int> dets;
m_instrWidget->getSurface()->getMaskedDetectors(dets); m_instrWidget->getSurface()->getMaskedDetectors(dets);
...@@ -845,7 +845,7 @@ void InstrumentWidgetMaskTab::saveMaskingToFile(bool invertMask) { ...@@ -845,7 +845,7 @@ void InstrumentWidgetMaskTab::saveMaskingToFile(bool invertMask) {
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
QString fileName = m_instrWidget->getSaveFileName( QString fileName = m_instrWidget->getSaveFileName(
"Select location and name for the mask file", "Select location and name for the mask file",
"XML files (*.xml);;All (*.* *)"); "XML files (*.xml);;All (*)");
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
if (!fileName.isEmpty()) { if (!fileName.isEmpty()) {
......
...@@ -13,7 +13,7 @@ class DgsInterface(InstrumentInterface): ...@@ -13,7 +13,7 @@ class DgsInterface(InstrumentInterface):
Defines the widgets for direct geometry spectrometer reduction Defines the widgets for direct geometry spectrometer reduction
""" """
# Allowed extensions for loading data files # Allowed extensions for loading data files
data_type = "Data files *.* (*)" data_type = "Data files * (*)"
def __init__(self, name, settings): def __init__(self, name, settings):
super(DgsInterface, self).__init__(name, settings) super(DgsInterface, self).__init__(name, settings)
......
...@@ -13,7 +13,7 @@ class DiffractionInterface(InstrumentInterface): ...@@ -13,7 +13,7 @@ class DiffractionInterface(InstrumentInterface):
Defines the widgets for direct geometry spectrometer reduction Defines the widgets for direct geometry spectrometer reduction
""" """
# Allowed extensions for loading data files # Allowed extensions for loading data files
data_type = "Data files *.* (*)" data_type = "Data files * (*)"
def __init__(self, name, settings): def __init__(self, name, settings):
""" """
......
...@@ -309,7 +309,7 @@ class RunSetupWidget(BaseWidget): ...@@ -309,7 +309,7 @@ class RunSetupWidget(BaseWidget):
def _calfile_browse(self): def _calfile_browse(self):
""" Event handing for browsing calibrtion file """ Event handing for browsing calibrtion file
""" """
fname = self.data_browse_dialog(data_type="*.h5;;*.cal;;*.hd5;;*.hdf;;*.*") fname = self.data_browse_dialog(data_type="*.h5;;*.cal;;*.hd5;;*.hdf;;*")
if fname: if fname:
self._content.calfile_edit.setText(fname) self._content.calfile_edit.setText(fname)
...@@ -318,7 +318,7 @@ class RunSetupWidget(BaseWidget): ...@@ -318,7 +318,7 @@ class RunSetupWidget(BaseWidget):
def _charfile_browse(self): def _charfile_browse(self):
""" Event handing for browsing calibrtion file """ Event handing for browsing calibrtion file
""" """
fname = self.data_browse_dialog("*.txt;;*.*") fname = self.data_browse_dialog("*.txt;;*")
if fname: if fname:
self._content.charfile_edit.setText(fname) self._content.charfile_edit.setText(fname)
...@@ -328,7 +328,7 @@ class RunSetupWidget(BaseWidget): ...@@ -328,7 +328,7 @@ class RunSetupWidget(BaseWidget):
""" Event handling for browsing Exp Ini file """ Event handling for browsing Exp Ini file
:return: :return:
""" """
exp_ini_file_name = self.data_browse_dialog(data_type="*.ini;;*.*") exp_ini_file_name = self.data_browse_dialog(data_type="*.ini;;*")
if exp_ini_file_name: if exp_ini_file_name:
self._content.lineEdit_expIniFile.setText(exp_ini_file_name) self._content.lineEdit_expIniFile.setText(exp_ini_file_name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment