1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-11 01:21:11 +02:00

455 Commits

Author SHA1 Message Date
Paul Licameli
8a1f5bb748 Fix misspelling pointed out by Olivier Humbert 2017-12-09 05:42:53 -05:00
James Crook
f463eda36c Clean up some dead code and MSVC warnings.
- Dead code from experiments in SelectionBar removed.
- Many warnings about unused parameters fixed with WXUNUSED()
- Many warnings about signed / unsigned comparisons cleaned up.
- Several 'local variable declared but not used' warnings fixed.
2017-12-08 15:20:39 +00:00
James Crook
c28be778e2 Linty fixes
This commit fixes a number of warnings shown in compilation with MSVC.  No behavioral changes intended.  I did not fix signed/unsigned warnings.
2017-11-07 14:23:30 +00:00
Paul Licameli
9612e3d971 indentation, final newlines, spelling, remove unused members 2017-11-05 21:01:38 -05:00
Paul Licameli
75becb03f4 Fix auto-scrolling when dragging edge of existing selection 2017-11-05 10:40:21 -05:00
James Crook
42c52de7f1 Coloured clips basics
These basics add a colour index to each clip and track, and allow for a choice of four colours to be set from the track menu drop down.  The additional wave colours (red, green and black) are not currently configurable, and the colour index is not currently saved.
2017-11-04 17:47:02 +00:00
Paul Licameli
e2129feac9 Translate the items in the popup menu of the scrubbing ruler 2017-09-10 19:21:36 -04:00
James Crook
1b4999d0d3 Bug 1290 - "Split New" clips cannot be dragged back into the track they came from.
Earlier fix was broken and allowed clips to overlap.  Updated code:
- Checks that the modified slide amount is legal, against ALL clips, not just against later clips in the array.
- Computes tolerance correctly.
- Typically uses tolerance just once.
- Moves selection with clip
- Only restarts sliding with a 'clean slate' IF there was room on the original track.

Previously the code could reject a move to a new track, and then mistakenly allow just the horizontal part of the move on the original track(s), even with a clip blocking the way.
2017-08-23 18:15:00 +01:00
James Crook
e984211cce Bug 1290 - "Split New" clips cannot be dragged back into the track they came from.
Fixed by giving some tolerance in how the dragged clip(s) are placed.
The tolerance is 1px, so it depends on the zoom.  Therefore if zoomed in your positioning is more precise.
2017-08-19 22:46:33 +01:00
James Crook
4d43d2273b Bug 1516 - Clips: Can't drag vertically if starting position of clip overlaps clip in target track 2017-08-19 17:53:50 +01:00
James Crook
69b77a8034 EXPERIMENTAL_MIDI_STRETCHING off for 2.2.0 2017-08-17 17:24:14 +01:00
James Crook
fc25ce093f Bug 1293 - Unable to mouse wheel zoom in beyond end of project 2017-08-17 13:55:12 +01:00
Paul Licameli
8eb64f5f71 Bug1676: correct repaint of rearranged tracks on Linux...
... This little one-line fix is the right thing to do.  I do not understand
deeply enough how Linux repainting events are sequenced differently from
Windows or Mac, but I understand the code history enough to know where the
bug was introduced.

Problem was that full Refresh of TrackPanel used to be done earlier, in our
handlers of custom events emitted by TrackList; but now that handling is
delayed, for good reasons, so it is correct that the UIHandle object
should request the early full refresh explicitly, not relying on TrackList
event handling.

See explanations here http://bugzilla.audacityteam.org/show_bug.cgi?id=1676#c6
2017-08-07 13:57:19 -04:00
Paul Licameli
f0de38dec1 Scanned for bad naked new; found none; changed comments, used safenew 2017-07-23 09:35:01 -04:00
Paul Licameli
c982db5e20 Time track menu items for lin/log display are radios again 2017-07-22 10:47:45 -04:00
James Crook
9fa63763f4 Avoid attempting to translate empty string. 2017-07-22 11:49:32 +01:00
Paul Licameli
a9d8da62af Adjust existing sel bound: erase any snap from start position on move 2017-07-21 10:54:43 -04:00
Paul Licameli
3e1890f20d Bug1627 again: Fix it so that we don't disable all scrub, though! 2017-07-21 02:12:05 -04:00
Paul Licameli
57e040070c Bug1627: Fix infinite recursion of error dialogs, failing start scrub 2017-07-21 01:39:13 -04:00
Paul Licameli
59dab5222b Bug1697: Fix selecting with Snap To in effect 2017-07-20 22:21:29 -04:00
Paul Licameli
bb4a1b862a Bug1688, more: fix Midi stretch when selection goes to end 2017-07-20 10:21:12 -04:00
Paul Licameli
207db5e547 Improved Note Track vertical ruler zooming...
... Make consistent zoom in and out limits for mouse picks and for scrollwheel

Make scrollwheel do in or out by a constant multiplier, analogously with wave
track

The Note track remembers a continuously varying key height, but rounds it off
whenever it draws
2017-07-19 14:28:17 -04:00
Paul Licameli
ea9f86e541 remove unused variable 2017-07-18 16:10:46 -04:00
Paul Licameli
7f289a9ed9 Revert "Remove unused variable"
This reverts commit 0ca907a1a74ee2c5340c981c0392404789730b14.
2017-07-18 16:06:25 -04:00
Paul Licameli
0ca907a1a7 Remove unused variable 2017-07-18 16:03:18 -04:00
Paul Licameli
48889d36f0 Precaution in case a certain assertion fails (I haven't observed it) 2017-07-18 14:10:29 -04:00
Paul Licameli
4925d0a54b Fix cursor changes for selection 2017-07-18 11:10:45 -04:00
Paul Licameli
a9a6f01214 Stop showing the tooltip for track rearrange after button down 2017-07-17 17:34:18 -04:00
Paul Licameli
64ce79fef8 Change Menu button tooltip, and it includes the shortcut 2017-07-17 12:10:40 -04:00
Paul Licameli
17c964e392 Distinct status bar message for Time track envelope edit 2017-07-17 11:59:25 -04:00
Paul Licameli
ed4300fed1 Move status bar message texts out of class ToolsToolBar 2017-07-17 11:39:32 -04:00
Paul Licameli
1b8f3daaec Again disable tooltips for vertical rulers. 2017-07-17 11:11:41 -04:00
Paul Licameli
e86fd3c990 Bug1688: MIDI stretch when select time extends beyond track end...
... The cursor may be the center or the right depending where you pick; both
those cases needed fixing.
2017-07-17 10:05:22 -04:00
Paul Licameli
1faa234b9e Fix bug 1662 (crashing TCP menu commands on Windows) differently...
Previous fix was at commit f9865f39efe46224a1a77c742a789b2cc70f0c54

But then that had this strange effect on Mac:  when a menu command such as
rename brought up a modal dialog, then the first click in the dialog would pass
through to the tracks behind it, changing the selection, and only a repeated
click on the OK button would dismiss the dialog.

I don't know exactly why that happened.  This avoids it.
2017-07-17 02:58:37 -04:00
Paul Licameli
f3574c6238 build fix 2017-07-17 02:59:11 -04:00
Paul Licameli
bb970364c8 Tooltips for Wave & Note track vertical rulers 2017-07-17 02:26:41 -04:00
Paul Licameli
77d5a4cfa8 Tooltip for click and drag on TCP 2017-07-17 02:26:41 -04:00
Paul Licameli
42921b7e55 Tooltips for TCP buttons 2017-07-17 02:26:38 -04:00
Paul Licameli
fa96dcffb9 Cursor was meant to change to hand only after click on TCP 2017-07-16 22:56:12 -04:00
Paul Licameli
7a038c9e51 Remove tab key target cycling and snap escape; reimplement for Esc 2017-07-15 20:37:39 -04:00
Paul Licameli
d3572ebe10 Same tolerance for hitting clip boundaries as for selection snap 2017-07-15 14:12:32 -04:00
Paul Licameli
89c8e8ac39 null checks 2017-07-15 14:05:03 -04:00
Paul Licameli
e81df8314f more use of final 2017-07-15 12:05:47 -04:00
Paul Licameli
c5fc8eef03 Revert "Split lines now only show over middle third of track height."
This was the fix for Bug 800 now considered unsatisfactory.

This reverts commit dc1193a0af83f1d43de5a30aea6b6b09087eea58.

(Some merge resolution was needed)
2017-07-14 23:09:41 -04:00
Paul Licameli
7b93a3afe2 Whoops, we lost the non-multi draw tool! Fix that. 2017-07-14 23:05:44 -04:00
Paul Licameli
812f3649de Bug 1685: garbage status bar messages and tooltips, scrub in Windows 2017-07-14 23:02:32 -04:00
Paul Licameli
aaed921fd3 Track panel tooltips, including TAB key hint...
... and distinguish snapping or not in Select tool.
2017-07-13 22:46:28 -04:00
Paul Licameli
0ba91ea9a5 Don't make the finger cursor when hovering over the split line...
... which was implemented at commit aa8be0c413d107e3fd03e0b85bdf097b2ed37de9

Preview snap lines should make that unnecessary.
2017-07-13 12:29:54 -04:00
Paul Licameli
2150bde578 Implement selection snap lines before click, and TAB to cancel them 2017-07-13 12:29:51 -04:00
Paul Licameli
b7ae012ece A single UIHandle can define multiple rotation states 2017-07-13 12:11:25 -04:00