* Fluidsynths: Ensure fluidsynth's defaults are set once and in one place
This makes transition fluidsynth 1.x -> 2.x a lot easier.
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* Enable support for fluidsynth >= 2.0.0
This reverts commit e67ba7c25b.
* Fixes for fluidsynth >= 2.0.0
* preset iteration and getters have changed
* constants for most defaults are no more available in public headers -
fluidsynth wants to be asked
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* Stable OpenOctave port light position
* More neat OpenOctave theme port lights
fillPath seems to produce more neat result when downscaled like in
minimap, compared to even fillRect. Cosmetic line is good to keep it
visible even on minimap.
* Keep minimum connection line visibility
Don't let connections to disappear on too high scales, like minimap with
very big canvas.
* connection lines: Fix line selection bug
Connection line was unselected if selection changed from input port to
output port for same connection, probably due to repaint order issue.
New variant should be more stable, yet not requiring non-standard
state variable.
* rack: Reset to noop color if unknown skin set
Some skins are initially designed to have hardcoded, color scheme. With
previously selected dark color and new dark skin, it may become close to
black.
* patchcanvas: Working Ctrl for rubberband selection
* patchcanvas: optimize calls in zoom-fit
* patchcanvas: optimize fixScaleFactors
* patchcanvas: speedup zoom_in/zoom_out
* patchcanvas: disconnect ports by Ctrl+MidButton
* patchcanvas: optimize rubberband update
* patchcanvas: correct cursor unset
* fixScaleFactor: support transform argument
* patchcanvas: speedup wheelEvent handler
Direct operations on QTransform go faster than via QGraphicsView
convenience methods.
* patchcanvas: optimize QPointF construction
* patchcanvas: Сursor for connection cut mode
* patchcanvas: rubberband scaling support
* patchcanvas: Limit top scale by canvas size
* patchcanvas: Fix box position after each movement, even creation
* minimap: Scaling support
Pressing RMB after LMB activates special scaling mode. Scroll wheel to
scale in any mode or without such.
* patchcanvas: Take port lineHinting from chosen pen
* patchcanvas: Set default port offset to 0px
Besides of more tidy look with certain themes, it also noticed to be
workaround for problem, when connection lines get under port's parent
box, after selection changes.
* patchcanvas: Finer connection placement relative to ports
* Fluidsynths: Ensure fluidsynth's defaults are set once and in one place
This makes transition fluidsynth 1.x -> 2.x a lot easier.
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* Enable support for fluidsynth >= 2.0.0
This reverts commit e67ba7c25b.
* Fixes for fluidsynth >= 2.0.0
* preset iteration and getters have changed
* constants for most defaults are no more available in public headers -
fluidsynth wants to be asked
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* Fluidsynths: Ensure fluidsynth's defaults are set once and in one place
This makes transition fluidsynth 1.x -> 2.x a lot easier.
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* Enable support for fluidsynth >= 2.0.0
This reverts commit e67ba7c25b.
* Fixes for fluidsynth >= 2.0.0
* preset iteration and getters have changed
* constants for most defaults are no more available in public headers -
fluidsynth wants to be asked
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* minimap: Update on any selection change
For now minimap is already updated when box (not port) is selected.
Also it will update if port is selected by Ctrl+C while box is already
selected. This commit just makes this behavior more stable and
predictable,
* minimap: Align frame bottom with canvas frame
* minimap: Fixed & unified cursor pos expressions
Another approach, yet working in both places without rewriting.
Don't add xp or yp, as it displaces right/bottom limit by 1px
* minimap: Better custom frame
New implementation has outer 1px shadow above parent background
and internal enlight border above background. All is pixel-aligned.
* minimap: Fix cursor position on lowest scale
When scale is close to 0.2, view area may become bigger than working
area. After such "fix" viewRect position is broken.
* minimap: Brightness-aware shading on side gaps
* mininap: Set viewRect lineHinting from proper pen
* minimap: Cliped rendering for rounded corners
* minimap: Frame width awareness
Draw content only inside frame when external qt theme is used.
* minimap: Implement full resize with any ratio
* minimap: Better cursor positioning
* minimap: Minimal corner rounding
Make rounding to look good with rounded frames, still not ugly
with square themes.
* minimap: Reworked frame
Mimic tab frame by placing existing frame as line child to QTabWidget.
Frame derivation still handy to create inner sunken frame, just like
in two other frames around.
* minimap-framewidth: Follow system style change
* minimap: Special blending modes for view cursor
Adding for dark color schemes and subtracting for light preserve more
contrast, compared to default blending. Difference is calculated from
background and rubberband colors.
* Better buttons look in sidebar fileview
* minimap: Hold cursor inside map in view move mode
* minimap: Natural move
Would be more natural to have centered position in canvas view, when
pointed in minimap.