From 45c7bfb4389bbae6482ddb86152059dee4e4fa3d Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Mon, 22 Jul 2024 10:57:43 +0300 Subject: [PATCH 1/2] Fix Toggle enabled button in Exporter --- spine_items/exporter/widgets/specification_editor_window.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spine_items/exporter/widgets/specification_editor_window.py b/spine_items/exporter/widgets/specification_editor_window.py index 798cc3b9..a5e23035 100644 --- a/spine_items/exporter/widgets/specification_editor_window.py +++ b/spine_items/exporter/widgets/specification_editor_window.py @@ -551,10 +551,7 @@ def _duplicate_mappings(self, checked): def _toggle_all_enabled(self): """Pushes a command that enables or disables all mappings to undo stack.""" for row in range(self._mappings_table_model.rowCount()): - if ( - self._mappings_table_model.index(row, 0).data(Qt.ItemDataRole.CheckStateRole) - == Qt.CheckState.Unchecked.value - ): + if self._mappings_table_model.index(row, 0).data(Qt.ItemDataRole.CheckStateRole) == Qt.CheckState.Unchecked: self._undo_stack.push(EnableAllMappings(self._mappings_table_model)) return self._undo_stack.push(DisableAllMappings(self._mappings_table_model)) From c4a45ed67499721b71812caeeefb4782b76fbcbd Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Mon, 22 Jul 2024 15:07:56 +0300 Subject: [PATCH 2/2] Value types can now be floats, bools or strs, not single_values --- spine_items/exporter/ui/value_type_filter_editor.py | 6 +++--- spine_items/exporter/ui/value_type_filter_editor.ui | 5 +++-- spine_items/importer/ui/import_editor_window.py | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/spine_items/exporter/ui/value_type_filter_editor.py b/spine_items/exporter/ui/value_type_filter_editor.py index c2ba15ea..f43329da 100644 --- a/spine_items/exporter/ui/value_type_filter_editor.py +++ b/spine_items/exporter/ui/value_type_filter_editor.py @@ -14,7 +14,7 @@ ################################################################################ ## Form generated from reading UI file 'value_type_filter_editor.ui' ## -## Created by: Qt User Interface Compiler version 6.5.2 +## Created by: Qt User Interface Compiler version 6.6.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ @@ -33,7 +33,7 @@ class Ui_Form(object): def setupUi(self, Form): if not Form.objectName(): Form.setObjectName(u"Form") - Form.resize(354, 141) + Form.resize(354, 138) self.verticalLayout = QVBoxLayout(Form) self.verticalLayout.setObjectName(u"verticalLayout") self.regexp_line_edit = QLineEdit(Form) @@ -68,6 +68,6 @@ def retranslateUi(self, Form): Form.setWindowTitle(QCoreApplication.translate("Form", u"Form", None)) self.regexp_line_edit.setPlaceholderText(QCoreApplication.translate("Form", u"Type regular expression here...", None)) self.label_2.setText(QCoreApplication.translate("Form", u"

Link to regular expression syntax.

", None)) - self.label.setText(QCoreApplication.translate("Form", u"

Available types for filtering:
single_value - scalars, strings, booleans
array - arrays
time_series - time series
time_pattern - time patterns
1d_map, 2d_map,... - maps of nd dimensions

", None)) + self.label.setText(QCoreApplication.translate("Form", u"

Available types for filtering:
float, str, bool - numbers, strings, booleans
array, time_series, time_pattern
1d_map, 2d_map,... - maps of nd dimensions

", None)) # retranslateUi diff --git a/spine_items/exporter/ui/value_type_filter_editor.ui b/spine_items/exporter/ui/value_type_filter_editor.ui index 125ff85d..4281e08c 100644 --- a/spine_items/exporter/ui/value_type_filter_editor.ui +++ b/spine_items/exporter/ui/value_type_filter_editor.ui @@ -2,6 +2,7 @@