hydrogen-music / hydrogen

The advanced drum machine for Linux, macOS, and Windows
http://www.hydrogen-music.org
GNU General Public License v2.0
1.06k stars 173 forks source link

Further SampleEditor tweaks #1304

Open theGreatWhiteShark opened 3 years ago

theGreatWhiteShark commented 3 years ago
charbeljc commented 3 years ago
* Open the `SampleEditor` -> enter a large value in the spinbox of the "Start" and press enter -> both the values in the spinboxes of "Start" and "Loop" get updated but only the "S" line gets moved in the wave display while "L" remains at zero.

Hum, I'm afraid this one was my fault ..

* Open the `SampleEditor` -> change something and hit the "Close" button -> a dialog "Unsave changes..." will pop up and the user has to consent to discard the changes -> clicking "Ok" and reopen the `SampleEditor` by clicking "Edit Layer" again -> the same popup shows up again. I think the second one is a dud.

Same here, the call to setClean() was misplaced in the SampleEditor's setup.

* When entering a fresh instance of the `SampleEditor` the value of the `EndFrameSpinBox` looks perfectly fine. But as soon as the mouse pointer enters the `MainSampleWaveDisplay` it is reset to 0 by `SampleEditor::getAllFrameInfos()` what causes some other oddities. The slider, however, stays at it's correct position. This also caused [sample editor : end marker jumps to start marker position #811](https://github.com/hydrogen-music/hydrogen/issues/811).

This is fixed with my PR.

* The first value change in the Start, Loop, and End spinboxes is discarded and, instead, the slider is shown in the `DetailWaveDisplay`. It would be nice to update the `DetailWaveDisplay` as soon as the spinboxes have focus and make the first change affect the value as well.

Also done in #1314, Regards.

theGreatWhiteShark commented 3 years ago

This is fixed with my PR.

Nice! I will have a look tomorrow.