kitbash 1.2.1__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kitbash-1.2.1 → kitbash-1.2.3}/PKG-INFO +1 -1
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/__init__.py +1 -1
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/gui/__init__.py +4 -4
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/gui/main_window.py +1 -3
- {kitbash-1.2.1 → kitbash-1.2.3}/pyproject.toml +1 -1
- {kitbash-1.2.1 → kitbash-1.2.3}/.gitignore +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/LICENSE +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/README.md +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/gui/main_window.ui +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/res/empty.sfz +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/res/group_expanded.svg +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/res/group_hidden.svg +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/res/kitbash-icon.png +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/scripts/bash_project.py +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/styles/light.css +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/kitbash/styles/system.css +0 -0
- {kitbash-1.2.1 → kitbash-1.2.3}/tests/file_save_dialog.py +0 -0
|
@@ -63,7 +63,7 @@ class GeometrySaver:
|
|
|
63
63
|
def restore_geometry(self):
|
|
64
64
|
if not hasattr(self, 'restoreGeometry'):
|
|
65
65
|
logging.error('Object of type %s has no "restoreGeometry" function',
|
|
66
|
-
|
|
66
|
+
self.__class__.__name__)
|
|
67
67
|
return
|
|
68
68
|
geometry = settings().value(self.__geometry_key())
|
|
69
69
|
if geometry is not None:
|
|
@@ -76,17 +76,17 @@ class GeometrySaver:
|
|
|
76
76
|
def save_geometry(self):
|
|
77
77
|
if not hasattr(self, 'saveGeometry'):
|
|
78
78
|
logging.error('Object of type %s has no "saveGeometry" function',
|
|
79
|
-
|
|
79
|
+
self.__class__.__name__)
|
|
80
80
|
return
|
|
81
81
|
settings().setValue(self.__geometry_key(), self.saveGeometry())
|
|
82
82
|
for splitter in self.findChildren(QSplitter):
|
|
83
83
|
settings().setValue(self.__splitter_geometry_key(splitter), splitter.saveState())
|
|
84
84
|
|
|
85
85
|
def __geometry_key(self):
|
|
86
|
-
return '{}/geometry'.format(
|
|
86
|
+
return '{}/geometry'.format(self.__class__.__name__)
|
|
87
87
|
|
|
88
88
|
def __splitter_geometry_key(self, splitter):
|
|
89
|
-
return '{}/{}/geometry'.format(
|
|
89
|
+
return '{}/{}/geometry'.format(self.__class__.__name__, splitter.objectName())
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
# end kitbash/gui/__init__.py
|
|
@@ -8,7 +8,6 @@ Provides MainWindow class and
|
|
|
8
8
|
import os, logging, json
|
|
9
9
|
from tempfile import mkstemp
|
|
10
10
|
from os.path import dirname, basename, realpath, exists, join, splitext
|
|
11
|
-
from collections import deque
|
|
12
11
|
from functools import partial
|
|
13
12
|
from signal import signal, SIGINT, SIGTERM
|
|
14
13
|
|
|
@@ -25,7 +24,6 @@ from PyQt5.QtGui import QIcon
|
|
|
25
24
|
from qt_extras import ShutUpQT, SigBlock, DevilBox
|
|
26
25
|
from qt_extras.list_layout import VListLayout
|
|
27
26
|
from recent_items_list import RecentItemsList
|
|
28
|
-
from midi_notes import MIDI_DRUM_PITCHES
|
|
29
27
|
from liquiphy import LiquidSFZ
|
|
30
28
|
from conn_jack import JackConnectionManager
|
|
31
29
|
from sfzen.drumkits import Drumkit, PercussionInstrument
|
|
@@ -520,7 +518,7 @@ class MainWindow(QMainWindow, GeometrySaver):
|
|
|
520
518
|
|
|
521
519
|
def save_kit(self):
|
|
522
520
|
kit = self.bashed_kit.simplified()
|
|
523
|
-
kit.
|
|
521
|
+
kit.default_path = dirname(self.saved_sfz_filename)
|
|
524
522
|
try:
|
|
525
523
|
kit.save_as(self.saved_sfz_filename, self.saved_sfz_samples_mode)
|
|
526
524
|
self.lbl_bashed_sfz_filename.setText(self.saved_sfz_filename)
|
|
@@ -28,7 +28,7 @@ requires = ["flit_core >=3.2,<4"]
|
|
|
28
28
|
build-backend = "flit_core.buildapi"
|
|
29
29
|
|
|
30
30
|
[bumpver]
|
|
31
|
-
current_version = "1.2.
|
|
31
|
+
current_version = "1.2.3"
|
|
32
32
|
version_pattern = "MAJOR.MINOR.PATCH"
|
|
33
33
|
commit_message = "Bump version {old_version} -> {new_version}"
|
|
34
34
|
commit = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|