Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
836bc780
Commit
836bc780
authored
Oct 13, 2016
by
Ian Bush
Browse files
Refs #17807 Replace selected instances of *.* with *
parent
012f97d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
MantidQt/MantidWidgets/src/InstrumentView/InstrumentWidgetMaskTab.cpp
View file @
836bc780
...
...
@@ -755,7 +755,7 @@ void InstrumentWidgetMaskTab::sumDetsToWorkspace() {
void
InstrumentWidgetMaskTab
::
saveIncludeGroupToFile
()
{
QString
fname
=
m_instrWidget
->
getSaveFileName
(
"Save grouping file"
,
"XML files (*.xml);;All (
*.*
*)"
);
"Save grouping file"
,
"XML files (*.xml);;All (*)"
);
if
(
!
fname
.
isEmpty
())
{
QList
<
int
>
dets
;
m_instrWidget
->
getSurface
()
->
getMaskedDetectors
(
dets
);
...
...
@@ -765,7 +765,7 @@ void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
void
InstrumentWidgetMaskTab
::
saveExcludeGroupToFile
()
{
QString
fname
=
m_instrWidget
->
getSaveFileName
(
"Save grouping file"
,
"XML files (*.xml);;All (
*.*
*)"
);
"Save grouping file"
,
"XML files (*.xml);;All (*)"
);
if
(
!
fname
.
isEmpty
())
{
QList
<
int
>
dets
;
m_instrWidget
->
getSurface
()
->
getMaskedDetectors
(
dets
);
...
...
@@ -845,7 +845,7 @@ void InstrumentWidgetMaskTab::saveMaskingToFile(bool invertMask) {
QApplication
::
restoreOverrideCursor
();
QString
fileName
=
m_instrWidget
->
getSaveFileName
(
"Select location and name for the mask file"
,
"XML files (*.xml);;All (
*.*
*)"
);
"XML files (*.xml);;All (*)"
);
QApplication
::
setOverrideCursor
(
QCursor
(
Qt
::
WaitCursor
));
if
(
!
fileName
.
isEmpty
())
{
...
...
scripts/Interface/reduction_gui/instruments/dgs_interface_dev.py
View file @
836bc780
...
...
@@ -13,7 +13,7 @@ class DgsInterface(InstrumentInterface):
Defines the widgets for direct geometry spectrometer reduction
"""
# Allowed extensions for loading data files
data_type
=
"Data files *
.*
(*)"
data_type
=
"Data files * (*)"
def
__init__
(
self
,
name
,
settings
):
super
(
DgsInterface
,
self
).
__init__
(
name
,
settings
)
...
...
scripts/Interface/reduction_gui/instruments/diffraction_interface_dev.py
View file @
836bc780
...
...
@@ -13,7 +13,7 @@ class DiffractionInterface(InstrumentInterface):
Defines the widgets for direct geometry spectrometer reduction
"""
# Allowed extensions for loading data files
data_type
=
"Data files *
.*
(*)"
data_type
=
"Data files * (*)"
def
__init__
(
self
,
name
,
settings
):
"""
...
...
scripts/Interface/reduction_gui/widgets/diffraction/diffraction_run_setup.py
View file @
836bc780
...
...
@@ -309,7 +309,7 @@ class RunSetupWidget(BaseWidget):
def
_calfile_browse
(
self
):
""" 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
:
self
.
_content
.
calfile_edit
.
setText
(
fname
)
...
...
@@ -318,7 +318,7 @@ class RunSetupWidget(BaseWidget):
def
_charfile_browse
(
self
):
""" Event handing for browsing calibrtion file
"""
fname
=
self
.
data_browse_dialog
(
"*.txt;;*
.*
"
)
fname
=
self
.
data_browse_dialog
(
"*.txt;;*"
)
if
fname
:
self
.
_content
.
charfile_edit
.
setText
(
fname
)
...
...
@@ -328,7 +328,7 @@ class RunSetupWidget(BaseWidget):
""" Event handling for browsing Exp Ini file
: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
:
self
.
_content
.
lineEdit_expIniFile
.
setText
(
exp_ini_file_name
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment