Fixes the cursor remaining on the same pixel but changing frequency,
when resizing the window horizontally with a cursor active (already
broken), or zooming/scrolling horizontally with a cursor active (only
possible in this branch).
Signed-off-by: nyanpasu64 <nyanpasu64@tuta.io>
This uses an exponential curve when zooming horizontally. This feels
more natural than the "reciprocal" curve used for vertical zoom. I tried
using that curve for horizontal zoom as well, but it was flawed because
it would zoom slowly at first but accelerate as you approached maximum
zoom level.
One minor issue is that dragging the zoom slider now results in zooming
in slightly to the left of the center of the plot. This is because every
change in zoom level recomputes the horizontal scrollbar's size and
position, rounding the position down to the nearest integer. The
rounding errors accumulate over many updates.
This needs to be solved by storing the intended center/boundaries of the
viewport (either its frequency or position) independently of the
scrollbar.
Signed-off-by: nyanpasu64 <nyanpasu64@tuta.io>
ShuttleGUI::AddWindow has a new argument now: positionFlags. This argument does not change the default behavior.
StartWrapLay/EndWrapLay are added, so wxWrapSizer can be used from the ShuttleGUI.
During my tenacious quest of absolutely avoiding to touch the codebase of
Audacity, I tried to make these icons a bit less dull, since they've always
been some sort of a pet peeve of mine. I also hope that they will be more
readable to colorblind persons. Guess we'll have to wait and see.
Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
AdornedRulerPanel also has a grabber, this commit makes it so that the grabber does not exist when edit mode is off.
Signed-off-by: abb128 <alexx128p@gmail.com>
Toggling edit mode while recording audio would cause a failed assertion error. Disabling the toggle while Audio IO is busy fixes this.
Signed-off-by: abb128 <alexx128p@gmail.com>
This adds an edit mode checkbox under View > Toolbars > Edit Mode, which hides the toolbar grabbers when off
Signed-off-by: abb128 <alexx128p@gmail.com>
The XCode generator does not work with CMake's
CMAKE_C_COMPILER_LAUNCHER / CMAKE_CXX_COMPILER_LAUNCHER
for compiler caching.
Signed-off-by: Be <be@mixxx.org>