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

683 Commits

Author SHA1 Message Date
Paul Licameli
3b0a113525 The new event filter works more safely with Destroy, not Close events 2017-07-23 16:01:10 -04:00
Paul Licameli
503f3548a1 Bug1432 partial, keep correct focus in more cases, not all...
Works by using the newer and better logic of ToolManager for remembering which
window to focus.

It seems, at least on Windows, that when the toolbar with the focused control
is docked after the end of a docking (of itself or another bar), then focus
remains.

If the bar with the focus is undocked and another bar docks or undocks, focus
is still lost.
2017-07-23 14:57:19 -04:00
Paul Licameli
b3c8f5db3d Bug1432 partial: Dragging toolbar should't change focus...
... Only the case that you click the grabber and release, or you drag the
toolbar ending in a docked position.

Doesn't work yet when drag ends un-docked.
2017-07-23 13:49:03 -04:00
Paul Licameli
d88371b4b7 Revert stuff 2017-07-23 12:40:29 -04:00
Paul Licameli
e9576bf198 work 2017-07-23 11:51:26 -04:00
Paul Licameli
1a9dd310cd Bug1432, more: Restore focused control after drag of toolbar 2017-07-23 10:48:33 -04:00
Paul Licameli
ace1ac08e7 Bug1432, partial: Click on toolbar grabber, without drag, does nothing. 2017-07-23 09:49:58 -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
1ef235c21c Bug1661: Default audio track name not being translated...
... Problem was introduced in 2.1.3 at:
8a6edf3623662b6cb3eb90e794c34e44c283c33d
2017-07-21 17:29:52 -04:00
David Bailes
7591a65e56 Bug 1693: partial fix.
Problem: When selection details set to start and end in selection bar, start cannot be increased higher than end, and end cannot be decreased to be less than start. These restrictions are not present in previous versions of Audacity, and are not desirable.

Fixed.
2017-07-21 10:43:27 +01:00
Paul Licameli
57e040070c Bug1627: Fix infinite recursion of error dialogs, failing start scrub 2017-07-21 01:39:13 -04:00
James Crook
c4a1787bb9 Improve source for generation of .pot file.
"clang " is the name of a compiler and should not be translated.
Other changes here from seeing how translation was actually being done.
2017-07-20 18:55:07 +01:00
Paul Licameli
ed4300fed1 Move status bar message texts out of class ToolsToolBar 2017-07-17 11:39:32 -04:00
Paul Licameli
812fd2adea move function 2017-07-16 23:01:12 -04:00
Paul Licameli
a5e2854b73 Omit Note tracks from scrubbing and seeking 2017-07-16 21:09:28 -04:00
Pokechu22
c50567e1db Time track properly warps the MIDI event times (but not pitches)
mMidiPlaySpeed doesn't handle all of the options provided by time tracks,
and in fact doesn't even use time tracks.  Using the time track
instead allows note tracks to remain synchronized with the rest of the audio.

mMidiPlaySpeed _did_ work where it was used in the transcription tool
bar, but that already updates a time track so no special handling is
needed.
2017-07-16 14:28:58 -04:00
Pokechu22
19b11c09fe Fix cut preview with note tracks 2017-07-16 11:07:29 -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
8bf3791edf TrackList constructed only by factory function, to avoid more trouble 2017-07-14 21:55:32 -04:00
David Bailes
2185b42d84 Selection bar drop down list box: Fix name read by Jaws screen reader
Problem: If the accessibility name of a control is empty, Jaws may use nearly text for the name - in this case Audio position.

Fix: Set the accessibility name to "\a".
2017-07-14 16:35:37 +01:00
Henric Jungheim
88dfb5d7a2 Avoid false warning about uninitialized pointer. 2017-07-12 21:01:15 +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
James Crook
739422ba70 Add split line before new recording on same track. 2017-07-06 16:20:48 +01:00
David Bailes
69ab49c3a4 Fix for Audacity crashing when running Jaws on Windows 10 1703
Problem: On Windows 10 1703, with the Jaws screen reader running, additional paint messages are sent to Audacity compared with when Jaws is not running. My assumption is this is probably a Jaws bug. In particular, when a project is closed, ToolDock::OnPaint, and AdornedRulerPanel::OnPaint are called.

Fix: changes ensure that these OnPaint functions can be called without causing a crash.
2017-06-28 10:42:13 +01:00
James Crook
30ec8a1c90 Overdub off by default only in DA. 2017-06-26 19:44:39 +01: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
43d1c774bf Improve focus rectangle on Mac Transport toolbar buttons, all themes 2017-06-16 18:07:43 -04:00
Paul Licameli
114f5a4a63 Simplify ToolsToolBar::SetCurrentTool 2017-06-16 18:05:08 -04:00
Paul Licameli
2496b0d7bc TrackPanel no longer implements the envelope tool...
... also implement ESC key for it
2017-06-15 08:21:02 -04:00
Paul Licameli
251976d93d TrackPanel no longer implements the time shift tool...
... also implement ESC key for it
2017-06-15 08:21:01 -04:00
Paul Licameli
f1f254f974 TrackPanel no longer implements the draw tool...
... also implement ESC key for it
2017-06-15 08:21:00 -04:00
Paul Licameli
85c03bb3b3 TrackPanel no longer implements the zoom tool...
... Also changed the behavior of drawing of dashed lines: make them
disappear when they approach close enough that right-up will zoom out,
not in.
2017-06-15 08:20:59 -04:00
Paul Licameli
55dc096896 Lowered check for scrubbing into GetMessageForTool...
... which is called only in one place
2017-06-14 09:22:37 -04: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
James Crook
f418de2f60 Rearrange Selection Toolbar fields, and fix spacings.
The layout of SelectionToolbar and SpectralSelction Tollbar now match, and they can be placed nicely side by side.
The borders around controls have been tweaked.
Extra vertical spacer lines have been added into the title row.
2017-06-01 16:48:28 +01:00
James Crook
c43a6408d9 Lose hyphen on selection toolbar 2017-06-01 15:03:47 +01:00
James Crook
1c6c608c13 Use same format for choice in Selection Toolbar as in SpectralSelection Toolbar
I've deliberately not given the choice a title, and deliberately put the word 'selection' at the end, so as to be better/faster for Screen Reader users.
The look of Selection Toolbar and Spectral Selection Toolbar is now consistent.  In dark themes both could have better looking choice boxes.
2017-05-31 19:48:46 +01:00
James Crook
7122877269 Fix crash from bad SelectionToolbarMode
When out of range, it was indexing outside an array.  Now forced to be in range.
2017-05-30 12:38:25 +01:00
James Crook
389335d761 Clickable Start - Length and stable position of '<' and '>'
Minor tweaks to Selection Toolbar field chooser.
2017-05-27 19:32:47 +01:00
James Crook
ca01b55d1b Add clickable < and > alternative to RadioButtons for start/length
This is a step towards the intended eventual interface.
It's a temporary step back for VI users.
2017-05-27 18:46:44 +01:00
James Crook
b3a70b5993 Add hyphen between fields and tooltips.
Tooltips tell users what the abbreviated names in the radio button group mean.  The hyphen helps a little in relating the title , which has a hyphen in it, to the two fields.
2017-05-25 11:39:30 +01:00
James Crook
01356f9e3e Add i18n hints for selection toolbar 2017-05-24 19:37:29 +01:00
James Crook
59a9539ba0 Fix Radio Buttons on SelectionToolbar for Dark Theme
The workaround for Dark Theme can require static text boxes for the radio labels to be able to colour the text.  These have been added back.
2017-05-24 19:26:59 +01:00
James Crook
3761ae3fe5 Replace dummy checkbox by vertical line.
Fortunately a vertical line works just as well as a checkbox in working around the bug where radio buttons change to the first field.  It is better for screen readers too as it is not included in the tab order.
2017-05-24 18:55:20 +01:00
James Crook
552a69df72 Add radio buttons for Start-End, Start-Length e.t.c.
The checkbox on the selection toolbar is a temporary work around for a bug in windows with tabbing.  Tabbing into a radio button will set the first item of the radio button group without it.  Still looking for a better workaround.
2017-05-24 16:56:49 +01:00
James Crook
655fc9d9dc Smarter VoiceOver text for Selection controls. 2017-05-22 23:01:32 +01:00
James Crook
7a6dda19e4 Add title-clicking to SelectionToolbar
This is a convenience for sighted users.  If they are showing start, center, length, end, they can click on the title 'Center' to preserve it, and then modify length.  Similarly for the other controls.  This makes working with more than two controls much more intuitive.
2017-05-22 16:01:49 +01:00
James Crook
6a9e0ffe28 Fix Travis Build
Missing wx includes.
2017-05-22 14:10:56 +01:00
James Crook
7d31691fd3 Allow selected controls on SelectionToolbar
The toolbar can now show subsets of the start, center, length and end numeric controls.  The choice is made using a button with a pop-up menu.  The two most recently modified controls 'drive' the other two, whether they are visible or not.  If shown, the driven controls are indicated in the name above (also for screen readers).

Most users will opt to just show two of the controls, e.g. start and end.

The menu button (Classic theme) has three dots on it.  Other themes don't yet have the icon and will show as black.
2017-05-22 13:46:06 +01:00
Steve Daulton
d6a9011960 "Error opening sound device" as Error dialog
ShowErrorDialog could do with some polish, but it supports linking
a help button to the manual.
2017-05-20 17:11:02 +01:00