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

587 Commits

Author SHA1 Message Date
David Bailes
a4f1c2cb9f Keyboard commands for clip boundaries: change to screen reader message
Change to message when clips are next to each other.
2017-07-14 11:19:42 +01:00
David Bailes
5f49892d61 Keyboard commands for moving clips: minor fix
Problem: the commands did not take into account that for a stereo track, the clip boundaries in the two channels can be different.

Fixed.
2017-07-13 16:32:55 +01:00
Paul Licameli
050824f467 Remove some unnecessary #includes 2017-07-12 14:15:16 -04:00
David Bailes
71ac4bb2f5 Fixes for commands to move cursor to or select to clip boundaries
The messages sent to screen readers for these commands were incorrect when stereo tracks were present. This has been fixed, including the case where the two channels of a stereo track have different clip boundaries.
2017-07-11 15:27:33 +01:00
James Crook
e3a822c34d Always Record on a new Track Pref.
Changed pref name, now unticked by default.
2017-07-11 15:07:10 +01:00
David Bailes
71a75fc28d Fixes for commands to select next/previous clip
The messages sent to screen readers for these commands were incorrect when stereo tracks were present. This has been fixed, including the case where the two channels of a stereo track have different clip boundaries.
2017-07-11 11:30:18 +01:00
David Bailes
f0702fb54b 1678: Cursor to track start/end misbehaves when no tracks selected
Problem: With no tracks selected, the commands cursor to track start/end set the cursor position to a silly high value or undefined respectively.

Simple fix: Set the flags on the commands to TracksSelectedFlag, as they were before the menus were reorganised.

Note that after this fix, with tracks present, but none selected, these commands cause a disallowed dialog to open, saying that there was a problem with the last action. I don't know if this behaviour is now expected.
2017-07-07 13:31:48 +01:00
Steve Daulton
bda2e54493 Fix typo in menu name 2017-07-01 18:25:50 +01:00
Steve Daulton
c457ce3bf3 Fix for bug 1673
Separate menu commands for Labels from commands for Labeled audio.
Revert name of "Remove Special" sub-menu.
2017-07-01 13:49:19 +01:00
James Crook
46154d0dca Upgraders to 2.2.0 retain the full set of default shortcuts.
If they delete audacity.cfg they get the new smaller set of defaults.  Also if they explicitly ask for the standard set.
2017-06-30 21:38:20 +01:00
James Crook
dc1193a0af Split lines now only show over middle third of track height.
This allows selection and clicking on split lines to merge clips to act independently.  It also means we don't need a portmanteau explanation in the status line, and the action to select up to a split line is simpler and easier to explain.
2017-06-29 17:04:59 +01:00
Paul Licameli
f3e31eca8b Simplify SelectHandle ctor; make frequency snapping functions static 2017-06-28 21:44:19 -04:00
James Crook
30ec8a1c90 Overdub off by default only in DA. 2017-06-26 19:44:39 +01:00
Paul Licameli
6373a5085c Select, cut, paste, undo: selection should be a point as after cut 2017-06-26 11:13:53 -04:00
James Crook
869de7d6f4 Overdub off by default.
Confused many new users in the past.  Experienced users can be expected to find it in preferences (or on menu) and turn it on, if they need it.
2017-06-26 15:31:11 +01:00
Paul Licameli
21b429e2b5 Update Mixer Board moving Note Track with TCP menu item, if MIDI_OUT 2017-06-24 11:52:12 -04:00
Paul Licameli
e771d6d9b5 Restore a NULL check in OnSplitNew, don't crash if non-wave selected 2017-06-24 11:36:19 -04:00
Paul Licameli
68dfdab843 Store tracks in TrackList with shared_ptr ...
... but still use unique_ptr from track factories and importers.
2017-06-23 15:05:50 -04:00
James Crook
aee04aba23 Bug 1663 - Cut does not remove Quick-Play region.
A perhaps unwanted side effect of this change is that cut also cancels a pause, if there was one.  Does not seem a problem to me.
2017-06-18 12:20:46 +01:00
Paul Licameli
114f5a4a63 Simplify ToolsToolBar::SetCurrentTool 2017-06-16 18:05:08 -04:00
Paul Licameli
770b3b52ef TrackPanel no longer implements the selection tool or MIDI stretch...
This one's big!

Also restores the effect of ctrl-click on label track.

Also adds ESC key handling for the Stretch.
2017-06-15 08:54:59 -04:00
Paul Licameli
674ccc5e15 Clean up last bits of old popup menu code 2017-06-15 08:21:40 -04:00
Paul Licameli
ef38af71dd Move more time-shifting functions out of TrackPanel.cpp 2017-06-15 08:21:01 -04:00
Paul Licameli
b15bf441ec Static TrackInfo slider accessors, const Track* arguments 2017-06-13 14:01:36 -04:00
Paul Licameli
e2d77b399d Move one more selection function out of TrackPanel 2017-06-11 16:14:26 -04:00
Paul Licameli
d834bcdbd1 Move some command handlers for selection and focus out of TrackPanel 2017-06-11 11:03:28 -04:00
James Crook
7341bff9e0 Disallow AutoSelect on dangerous commands.
Commands flagged with NoAutoSelect will not auto select, even if the user has asked for it.  This is used for Cut and 3 different kinds of delete.  We later might extend it to fades and repair.
2017-06-09 22:36:05 +01:00
James Crook
adc7312954 Auto-Select off by default.
I've implemented three states for what to do if no selection:
0 - Grey out (no longer used)
1 - Auto-select
2 - Give the warning message and try again.
2017-06-09 19:40:28 +01:00
Paul Licameli
a33ec61ddf Move code for toggling spectral selection (Q key) out of TrackPanel 2017-06-08 12:48:28 -04:00
windinthew
cb039c200a Wiki wording changes
a) 'Ends to Zero Crossings' to 'At Zero Crossings' and move from Region submenu to
root because this is not only a region command and to aid finding and easy access

b) Draw Tool error message recognises again that the tool works in Waveform (dB)
2017-06-08 01:57:30 +01:00
James Crook
8f66c3603d Screen capture preference panels too. 2017-06-07 15:59:25 +01:00
windinthew
08fe53875a Access keys for Ext-menus 2017-06-06 02:03:25 +01:00
James Crook
ee9649eeb5 Simplify and extend automatic screenshotting
Now includes 2 'outlier' analysis effects, and has simpler code.
The tricky capture cases are now first in the list.
Vocorder and Chirp are now included.  Comma was missing between them.
Now gives error report for an unknown command.
2017-06-04 16:54:53 +01:00
James Crook
c7a911c265 More shortcut tweaks.
Add Alt+P and Alt+N Previous/Next Clip shortcuts
Shoorter naming of Default options.  Now just 'Standard' and 'Full'.
No longer even attempt to remove (Option)+Command+M
2017-05-29 20:26:31 +01:00
Paul Licameli
a8ac80eda9 Bug1651: NoteTrack sync-lock and crash fixes...
Simplify the logic of duplication of NoteTrack.  Duplicates are always in
serialized state.  Un-serialization can happen on demand in any of the
NoteTrack operations that require a defined sequence.

Changing the duration of the sequence after paste is needed,
as it was also needed, when I fixed Stretch at commit
90eb4ec142f7d575d0870dd9c755589bff520cbe.  I don't know if this should be
considered a bug in Allegro that we are compensating.
2017-05-25 08:08:31 -04:00
Paul Licameli
d210b18aad Limit consolidation of undo items by other means 2017-05-24 00:23:25 -04:00
David Bailes
cd6c9834f6 Clip move commands - minor fix.
Forgot that the name of data members should begin with the letter m. Fixed this.
2017-05-23 12:56:11 +01:00
David Bailes
f46ac268f4 Update commands for moving clips using the keyboard
Second attempt at getting the commands to update history, so that they can be undone (previous attempt at b911607, which didn't call the undo manager for each keydown).

Both a single keypress (keydown, then keyup), and holding down a key (multiple keydowns followed by a keyup) result in a single entry in Audacity's history dialog. Note that this code relies on a change to the undo mananger in commit 63ae687.
2017-05-23 10:29:49 +01:00
Paul Licameli
f7578193b4 TrackPanel::OnClipMove is a static function 2017-05-18 07:46:54 -04:00
Paul Licameli
d36ac2cedb Revert "Fix for keyboard commands for time shifting clips"
This reverts commit b91160795dedce54745102027f8bb0908828772a.
2017-05-18 07:06:22 -04:00
David Bailes
7900aa51ba Update for commands which interact with clips using the keyboard.
Changed the criterion for deciding when two clips are immediately next to each other, and made it into a function: WaveClip::SharesBoundaryWithNextClip.
2017-05-16 14:23:07 +01:00
David Bailes
ff2838e98d Clip boundary command: minor change to Cursor to next clip boundary
The command "cursor to next clip boundary" now finds the next clip boundary after selection end, rather than selection start.
2017-05-16 10:26:12 +01:00
David Bailes
b91160795d Fix for keyboard commands for time shifting clips
Commands didn't update history etc.

Fix: Commands now call TrackPanel::MakeParentPushState.
2017-05-15 13:12:11 +01:00
James Crook
0ac2d90d8a SelectAllIfNone now selects all time if none, and all tracks if none.
This means you can now select just a time, and get all tracks selected, or some tracks, and get all time selected.
One side effect of this is that if you select a label (only) and apply 'cut' you now just cut the label, rather than cutting all tracks.  If you select a label and apply echo, you now get an error message, rather than applying echo to all tracks.
2017-05-13 10:06:52 +01:00
James Crook
c42a111a42 Add accelerator keys for Ext-&Bar and Ext-Co&mmand 2017-05-12 22:40:14 +01:00
James Crook
35fe313f30 Smarter SelectAllIfNone
Now if there is a time selection and no tracks selected, then just select all the tracks, preserving the time selection.
This helps in the case a user has made a time selection, e.g. with selection toolbar, and then clicked on track panel, losing the selection of tracks but preserving the time selection.

I also shortened some repeated cut-and-pasted code.
2017-05-11 22:36:55 +01:00
David Bailes
ddb8db8dd7 Modify the screen reader messages of some of the keyboard clip commands
As suggested by Robert, add the word clip/clips to make the messages less confusing and noticeably different from the next/prev label messages.
2017-05-11 13:01:42 +01:00
David Bailes
495755b074 Fix for keyboard clip commands
Fix bug in AudacityProject::AdjustForFindingStartTimes.
Bug: When there is 0 or 1 clips, q - 2 is before the begin() of the vector, and caused crash.

Fix: split the test into two tests.
2017-05-11 11:42:56 +01:00
David Bailes
6c0e8c7d86 Change default setting of "move selection with tracks" to be "off" 2017-05-10 13:36:42 +01:00
David Bailes
b2d8f36969 Fix for bugs in keyboard clip commands due to rounding errors
When When two clips are immediately next to each other, the GetEndTime() of the first clip and the GetStartTime() of the second clip may not be exactly equal due to rounding errors. The existing code assumed they were equal, and this lead to the wrong clip boundaries or clips being found.

There are a number of ways of fixing this which could be explored. The current solution involves changing only the code for the keyboard interaction with clips.

The fix:
1. The test used for two clips being immediately next to each other is that GetEndSample() on the first clip is equal to to GetStartSample() on the second clip.
2. When searching for the start/end times of clips, the cases where GetEndTime() and GetStartTime() are not equal are taken into account. This is done in the two functions AudacityProject::AdjustForFindingStartTimes and AudacityProject::AdjustForFindingEndTimes.
2017-05-10 09:24:25 +01:00