Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #939

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Fixes #939

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/asammdf/gui/widgets/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ def extract_bus_logging(self, event):

file_name, _ = QtWidgets.QFileDialog.getSaveFileName(
self,
"Select output measurement file",
"Save as measurement file",
"",
f"{filter};;All files (*.*)",
filter,
Expand Down Expand Up @@ -2676,7 +2676,7 @@ def apply_processing(self, event):

file_name, _ = QtWidgets.QFileDialog.getSaveFileName(
self,
"Select output measurement file",
"Save as measurement file",
"",
f"{filter};;All files (*.*)",
default,
Expand Down
7 changes: 0 additions & 7 deletions src/asammdf/gui/widgets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,6 @@ def __init__(self, files=None, *args, **kwargs):
action.setShortcut(QtGui.QKeySequence("Ctrl+Shift+S"))
plot_actions.addAction(action)

icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/save.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
action = QtGui.QAction(icon, "{: <20}\tCtrl+Shift+S".format("Save all subplot channels"), menu)
action.triggered.connect(self.save_all_subplots)
action.setShortcut(QtGui.QKeySequence("Ctrl+Shift+S"))
plot_actions.addAction(action)

# channel shifting

channel_shift_actions = QtGui.QActionGroup(self)
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/mdi_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -3872,7 +3872,7 @@ def remove_region(self, widget):

def save_all_subplots(self):
file_name, _ = QtWidgets.QFileDialog.getSaveFileName(
self, "Select output measurement file", "", "MDF version 4 files (*.mf4)"
self, "Save as measurement file", "", "MDF version 4 files (*.mf4)"
)

if file_name:
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ def keyPressEvent(self, event):
):
file_name, _ = QtWidgets.QFileDialog.getSaveFileName(
self,
"Select output measurement file",
"Save as measurement file",
"",
"MDF version 4 files (*.mf4)",
)
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4619,7 +4619,7 @@ def keyPressEvent(self, event):
elif key == QtCore.Qt.Key.Key_S and modifier == QtCore.Qt.KeyboardModifier.ControlModifier:
file_name, _ = QtWidgets.QFileDialog.getSaveFileName(
self,
"Select output measurement file",
"Save as measurement file",
"",
"MDF version 4 files (*.mf4 *.mf4z)",
)
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/tabular_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ def keyPressEvent(self, event):
elif key == QtCore.Qt.Key.Key_S and modifiers == QtCore.Qt.KeyboardModifier.ControlModifier:
file_name, _ = QtWidgets.QFileDialog.getSaveFileName(
self,
"Select output measurement file",
"Save as measurement file",
"",
"MDF version 4 files (*.mf4)",
)
Expand Down