Paul Davis
28e0082868
use std::unique_ptr for a couple of EditingContext members
2025-08-08 12:12:09 -06:00
Paul Davis
9c890f2690
zoom focus and snap mode get the stateful-action treatment
2025-07-30 15:28:46 -06:00
Robin Gareus
7b9e9d7241
Resize rulers when DPI changes
2025-03-06 21:50:05 +01:00
Paul Davis
2d13df9791
proper use of braces for if/else scoping
2025-03-04 14:57:50 -07:00
Paul Davis
55edfa9a66
make Editor track canvas grab focus when entered, independent of editing mode
...
Numerous bindings shared across EditingContexts are attached to the viewport for the canvas; unless
we begin with the canvas and walk up the the widget tree, we will never find them.
2025-03-02 12:54:47 -07:00
Paul Davis
a4f3e39f1c
ensure that the editor canvas cursor changes as we re-enter the wave item
...
We no longer use a cursor stack, so the reason for this being commented out in 486d47db0
no longer apply
2025-02-24 22:48:30 -07:00
Robin Gareus
c28802fe7f
Fix duplicate outline of rulers
2025-01-22 23:24:30 +01:00
Robin Gareus
ae879662d4
Show "+" icon on editor track-header area
2025-01-09 20:18:23 +01:00
Paul Davis
0ff0d4df8b
get mouse-centered zoom working in cue editor
2024-12-12 11:53:15 -07:00
Paul Davis
98c9c03e9f
remove all trace of cursor stacks; canvas cursor is always "just set"
2024-12-08 12:13:41 -07:00
Paul Davis
56ce9c33c0
renaming: AutomationLineBase => AutomationLine, AutomationLine => EditorAutomationLine
2024-10-17 07:44:31 -06:00
Paul Davis
90c8726c6d
wideranging changes to get automation editing working in cue editor
2024-10-17 07:44:31 -06:00
Paul Davis
36eda47075
get temporal zoom workign in MidiCueEditor
...
and remove qite a bit of debug output
2024-10-17 07:44:30 -06:00
Paul Davis
48a6e8dfcf
basics of autoscroll for pianoroll (mostly shared with Editor)
...
More work to do moving/testing pianoroll autoscroll variant back into EditingContext
and sharing it with Editor.
2024-10-17 07:44:30 -06:00
Paul Davis
f425a974d6
the continuing co-evolution of Editor,EditingContext & MidiCueEditor
2024-10-17 07:44:30 -06:00
Paul Davis
10b48d2cc4
lock in some major steps for the midi cue/pianoroll editor
2024-10-17 07:44:29 -06:00
Paul Davis
204d4237f8
further steps towards MidiRegionView outside the Editor
2024-10-17 07:44:29 -06:00
Paul Davis
b4e592a469
adjust relationship between VerboseCursor and Editor to use EditingContext
2024-10-17 07:44:29 -06:00
Paul Davis
dee8e920e6
editing refactoring, the drag part
2024-10-17 07:44:29 -06:00
Paul Davis
089a9521d5
steps to an ecology of editing
2024-10-17 07:44:29 -06:00
Paul Davis
5c2e1bd807
fix another case where SMF are imported and named incorrectly
2024-10-15 21:22:10 -06:00
Paul Davis
cab7fdf3d0
when d-n-d'ing SMF, use file & track name for the new sources and regions
2024-10-15 09:36:42 -06:00
Robin Gareus
bdd6eec95c
Constrain height of group-tab to the editor's height
...
Previously the group-tab extended all the way down to the
last track. Potentially with a widget height of > 2^15 px.
This caused issues with gtk widgets (notably on Windows)
```
unhandled exception (type std::exception) in signal handler:
what: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
```
This also prepares for Mixer Tab-Group to use the same
separation between visible and total extent.
2024-06-22 17:44:20 +02:00
Paul Davis
553e534455
remove a number of canvas items that no longer exist after ruler consolidation
2024-05-17 09:07:00 -06:00
Paul Davis
93e1e1c1f2
remove Cue, CD, Scene, Punch, Loop rulers, consolidate to just a pair (ranges, locations)
...
a menu allows choosing between all markers or 1 specific type, and all ranges or 1 specific type
more work required on menu structure and menu options/dialogs to specify the type of new location
and range marker creation
2024-05-16 22:58:55 -06:00
Paul Davis
0b8cfdee40
display MIDI scene markers
2024-04-25 13:07:00 -06:00
Paul Davis
dde59c8e4c
temporary fix for X Window and Windows bad canvas drawing with no single expose
2024-04-12 18:55:27 -06:00
Paul Davis
0c4eada414
make editor canvas use multi-expose redraws
...
This is not required for any functionality or performance fixes, but may be useful
and also helps tracking redraw issues with other related changes
2024-03-18 10:48:38 -06:00
Robin Gareus
96c45b65ee
Remove more or less useless Mouse Audition Button
...
Audition action is very much preferred and also works with
multiple selection.
2023-10-05 21:49:55 +02:00
Ben Loftis
8681d46fbc
fix the case where the grid-tool stopped working when you vertically scroll the canvas
...
there is no need to calculate the size of the grid_zone, just make it "huge"
2023-09-30 07:41:49 -05:00
Paul Davis
3a19e7d48b
fix redisplay of track headers after UI scale change
...
The suspend/resume routes code requires that there be a call to
Editor::redisplay_track_views() if anything is to happen on resume. This was
missing from the events triggered by a UI scale change.
2023-09-10 18:20:35 -06:00
Ben Loftis
e81b2353cc
Indicate arrangement section selection on canvas
2023-09-08 03:26:00 +02:00
Robin Gareus
20b646e962
Handle MouseGrid cursor (fix -Wswitch, amend 784d2ecc)
2023-09-08 03:25:59 +02:00
Ben Loftis
da4d2a645f
remove tempo-mapping bar, tempo_meta group. this reverts 8fbf2c and related
2023-09-06 19:31:00 +02:00
Ben Loftis
268d1d33c7
Add invisible Rectangle to initiates Tempo(grid) drags
2023-09-06 19:14:14 +02:00
Robin Gareus
a14f216f3e
Highligh ranges in arrangement ruler
2023-08-29 00:34:29 +02:00
Robin Gareus
2f6a0abf04
Use "Arrangement" in GUI instead of Section
...
Reserve Section for time-selection without track selection
2023-08-28 21:02:43 +02:00
Robin Gareus
9c984fc2ad
Add dedicated Section Ruler and UI for section boundary markers
2023-08-26 14:09:53 +02:00
Robin Gareus
a5946ba2e2
Fix heap-use-after-free at exit
...
Deleting _track_canvas_viewport automatically destroys
any child Items. The LocationMarker's group was already destroyed
when ~ArdourMarker() runs and calls `delete group`.
So first delete the marker, then the canvas
2023-06-08 22:50:15 +02:00
Robin Gareus
921b4aaa75
Allow to drag time selection markers
2023-06-01 21:37:40 +02:00
Robin Gareus
dbebc0b7e0
Make Markers properly themable, use color-names
...
This simplifies code, and also immediately changes marker
colors when the theme is changed.
2023-05-18 01:26:35 +02:00
Robin Gareus
cb78043adc
Indicate selection extents in time ruler
2023-05-17 01:53:40 +02:00
Robin Gareus
1ee2675716
Implement Selection Marker class and events
2023-05-17 01:50:51 +02:00
Ben Loftis
3f15a3a402
set playhead sensitivity via config (defaulted insensitive)
...
* in the 'fake_drag' case (dragging the playhead from the ruler), the
mouse events are delivered to the playhead during the drag so we need
to temporarily sensitize the playhead during that operation, then reset
the sensitivity via config
2023-05-01 08:49:27 -05:00
Paul Davis
65c81feb5e
fix consistency and accuracy of tempo edit behavior setting
2023-04-22 11:12:21 -06:00
Paul Davis
b4d8a3f933
get initial display for tempo ruler more correct
2023-04-18 14:37:46 -06:00
Paul Davis
13d814f87c
fix a few canvas thinkos related to mapping bar
2023-04-08 14:12:41 -06:00
Paul Davis
13311b7a32
tempo mapping: tempo group and mapping group are now only ever visible one at a time
...
Currently, the "switch" is in Edit > Tempo
2023-04-08 11:44:21 -06:00
Robin Gareus
295dbd8e1e
Make RCU reader return a const pointer (omnibus commit)
2023-04-08 00:15:37 +02:00
Paul Davis
57398b1e5e
tempo mappoing: use actual mouse cursors not canvas item cursors
...
Also some changes to attempt to do "half-twist" that will be removed soon.
2023-04-07 12:56:57 -06:00