1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

3076 Commits

Author SHA1 Message Date
lllucius
b78f096826 Final fix for bug #40 on Windows
I'm 100% certain I found the cause this time (r13739 was
still needed though).

There's a design flaw in wxMenuBar::RebuildAccelTable() that
will always leave the last accelerator active as they are
removed from the menus.

For the Edit menu, that will be "Move Cursor -> to Track End"
because of the way the submenus are traversed.  And because that
fella happens to have an unmodified character for an accelerator
it can't be used in a label track until another menu is opened
and closed.

The workaround is to nullify the accelerator table when a menu
closes.
2014-12-13 08:38:07 +00:00
lllucius
f7837eea1b Remove debug logging 2014-12-13 03:14:33 +00:00
lllucius
a3112e5aeb Deleted a little too much in r13739.
New label wasn't being saved.
2014-12-13 00:46:44 +00:00
lllucius@gmail.com
bfb1284573 Fix for unwanted cursor persistence outside of project window
This seems to only happen on the Mac and has to do with
how wx2.8.12 handles cursor setting.
2014-12-12 21:56:49 +00:00
lllucius
6ea62095de (Hopefully) Provide for localized accelerator keys 2014-12-12 14:44:50 +00:00
lllucius@gmail.com
994acab14f Fix for bug #773
This is only a workaround since the real problem is in wxGTK.  Hoping
it has been fixed in wx3.
2014-12-12 08:53:28 +00:00
lllucius
a869490b44 Reintroduce the mnemonic characters
Per David Bailes, removing the "&" mnemonic characters also
removed the access key feedback present to screen reader
users.  He also found that having the mnemonic and the
accelerators still prevented the focus from jumping to the
transport button.

I'm hoping that with wx3, we can clean this up some as it
appears they've redone the whole bitmap button design.
2014-12-12 06:55:47 +00:00
stevethefiddle@gmail.com
a675cae252 Fix Noise Reduction access keys. 2014-12-11 17:27:27 +00:00
lllucius
e752848d5e Fixes meter orientation problems as described here:
http://audacity.238276.n2.nabble.com/Problems-with-recording-meter-when-changing-vertical-horizontal-orientation-tt7565895.html
2014-12-11 08:51:18 +00:00
lllucius
2f177032ed Fix the weird mouse pointer behavior over toolbar resizers
I couldn't handle it anymore.  The darn pointer would seemingly
switch to left/right arrows whenever it felt like it...and stay
that way.

Actually, it was when it passed over the toolbar resizer when
docked.  The problem was that it wouldn't change back to a normal
pointer because it didn't have the events it needed to do that.

So, I moved the resizer logic into it's own window and now the
pointer changes like it should.

As a bonus, we get a tooltip so the user will know what to do
when the pointer changes as it passes over the resizer.
2014-12-11 08:05:11 +00:00
lllucius
2e29d9d2b1 Fix for sticky overdub menu item 2014-12-11 06:04:54 +00:00
lllucius
079b4b66aa Fix for bug #40.
Whenever a menu is NOT open, the accelerator keys are
stripped from the menu items so that the O/S doesn't even
know that accelerators are being used (we do it internally).

While this stripping was being down when the menus are set
up, it was NOT being down when the Undo and Redo menu items
were modified to include the "last action".

So, the fix is to strip the accelerator then as well.
2014-12-11 04:05:33 +00:00
lllucius@gmail.com
7d6013c97d Fix build issue on OSX. 2014-12-10 19:07:20 +00:00
james.k.crook@gmail.com
51c6bf0d90 Show NewSensitivity rather than old, attack .02, release 0.1, choose between reduce and residue.
To be reviewed by Paul Licameli.
2014-12-10 18:35:14 +00:00
stevethefiddle@gmail.com
807689b9b8 Bug 793. Fixes track name not showing in single right channel track. 2014-12-10 16:26:47 +00:00
windinthew@gmail.com
d8d40defe1 Updated by Koncz László (submitted offlist). 2014-12-10 13:22:14 +00:00
stevethefiddle@gmail.com
b3241e5db7 Fix - added missing access key for Mix and Render to New Track. 2014-12-10 13:08:56 +00:00
lllucius
d01a28be03 Cleanup chunk setting and preset saving/loading
When looking into the +morphfilter issue, I noticed that
I wasn't consistently handling preset chunks.  While I
didn't have any effects complaining about it, some of it
was (near as I can deduce...this stuff isn't well documented)
probably wrong.

So, I cleaned it all up and in the process added more validity
checking when loading presets for all 3 preset formats.

Incidentially, the +morphfilter still crashes Audacity...but
it also crashes Cubase, so we're in good company.  :-)  I've
sent an email to the author to see if I'm setting the chunks
correctly or he has a known issue.
2014-12-10 05:44:59 +00:00
lllucius
4b904f5eb2 Got a little delete happy in r13707
Removed a line in AddItem() and InsertItem() that didn't
seem to make sense (especially given the comment).  However,
it caused an issue where the key assignment would persist
for one last time after leaving Preferences.  It would then
act as desired.
2014-12-09 16:12:59 +00:00
lllucius@gmail.com
f677bc00df Reinstate close handle for AudioUnits
Closing the window via the frame's close button was
not being recognized by wxWidgets.  I'm sure it's
because of the of the additional event handler, but
the close event should have been sent on to the wx
handler since it wasn't handled.

No matter...just capture the event and close the
window manually.
2014-12-09 15:58:42 +00:00
lllucius
adbaca16eb Fix for SoundHack +morphfilter VST effect
It would crash Audacity when the initial default parameters
were saved (effGetChunk w/program) since it didn't seem to
have a default programs selected.

Fix is to simply to default to program 0 on startup.
2014-12-09 05:57:47 +00:00
lllucius@gmail.com
cbe0e38896 Simply toplevel window cycling
It never really worked right on GTK and MAC, so remove all of the
specific code for them and just allow it to work on Windows until
a correct solution is found.

(GTK and MAC have their own cycling key combos anyway)
2014-12-09 05:16:48 +00:00
lllucius@gmail.com
8f5084b665 Resolves two issues
On Windows, when the button access keys were used, the focus
would jump to the associated button.  This would be a real
pain for keyboard user since they would then have to TAB back
to the control they were on to make further adjustments.

By using the accelerator table instead of the normal mnemonic,
the access key isn't directly tied to the button, so focus
remains untouched.

On GTK, this actually makes the accelerators work.  It seems
that normal mnemonics do not work with a wxBitmapButton, so
using the accelerator table provides the access keys.
2014-12-09 02:58:09 +00:00
james.k.crook@gmail.com
c40541d82a Noise Reduction now the default. Noise Removal now not in menu (for current settings of Experimental.h) 2014-12-08 22:12:36 +00:00
james.k.crook@gmail.com
83172420c7 Trimmed controls in Noise Reduction down (for this release). 2014-12-08 22:04:38 +00:00
lllucius@gmail.com
182091cb58 Handle effect type of none...happens with no ins or out 2014-12-08 18:12:56 +00:00
lllucius@gmail.com
85e0cc9785 Do not allow PluginRegistrationDialog to molest path 2014-12-08 17:31:53 +00:00
stevethefiddle@gmail.com
2b28e840cc Fix - final setup parameter was being carried through to the script code. 2014-12-08 15:11:22 +00:00
lllucius
969db08acb Added access keys to transport buttons in Effect dialog 2014-12-08 14:54:06 +00:00
lllucius
a0370e8faa Fix for startup crash on Windows 8
Don't know why it didn't crash on w7...should have...
2014-12-08 14:32:56 +00:00
lllucius
6539d693b3 Fix for bug #783
This should correct the crash and will also correct
the problem where one project's playback/capture was
being metered in another project if multiple projects
were open.
2014-12-08 04:53:53 +00:00
lllucius
814ed57a68 Better resolution than r13716
The hairbrained "solution" I came up with in r13716
"worked" but it was simply unnecessary and this is
what I should have just done to begin with.

The previous "solution" actually caused some display
issues in the menus.
2014-12-08 03:11:20 +00:00
lllucius
0c51333407 Fix validation errors due to rounding
::Invada::Compress - Mono would fail to validate because
of rounding even though the default value was within the
actual range.
2014-12-08 02:41:29 +00:00
windinthew@gmail.com
7f3cc444e7 Use the msvc copy of system.lsp for Windows builds. This seems to fix Sample Data Export, Append Import and other file separator issues. 2014-12-07 20:45:27 +00:00
lllucius
9ce427f283 Fixes StereoToMono effect
The problem is that lookup of effects is based on their
ID and legacy effects didn't play well in this scheme, so
I've added a workaround for now.  This will go away when
I get all of the effects converted.

And removes some debugging.
2014-12-07 19:27:06 +00:00
lllucius
2803bcd67a Protect against blank parameter names 2014-12-07 18:26:22 +00:00
lllucius
ed8dd09414 Fix crash when applying Ladspa effects 2014-12-07 18:01:17 +00:00
lllucius@gmail.com
1ff85fa1ae Remove unneeded variable 2014-12-07 07:06:41 +00:00
lllucius@gmail.com
e023a1120b Correct some non-wxWidgets literals 2014-12-07 05:29:31 +00:00
lllucius
4503c704dd Correct LV2 validity check 2014-12-07 04:13:00 +00:00
lllucius@gmail.com
01ca7c71de Sort of fix for bugs #665 and #460
This is more of a toleration than a fix since I can't
get any of the Waves plugins to display their custom views.
They do work in generic view however, so I've put in a 
temporary hack to force all Waves plugins to use the 
generic view.
2014-12-07 02:24:50 +00:00
stevethefiddle@gmail.com
b7aeef5ec9 Fix for bug 7, but ifdef'd out pending a more
flexible solution. Reviewed by Leland as "perfectly safe".
2014-12-07 02:03:57 +00:00
lllucius@gmail.com
581b836c18 Fix a bogus delete in AudioUnits 2014-12-07 01:43:03 +00:00
lllucius@gmail.com
f18f4857e2 Fix for bug #736
This MUST be tested by everyone on as many platforms as you
have access to...reason:

This removes a very old piece of code (May 10, 2003) in the
command manager that worked around a problem in GTK where
accelerators could not be changed again after the initial
menu setup.

While there is another way to fix this bug, remove this old
code is actually a better way AS LONG AS it doesn't break
anything else.  So far, it's looking like it is no longer
needed.

But, I'll be trying as many combinations of changing shortcuts,
entering/exiting preferences, swapping shortcuts, etc, as
I can on Linux, Windows and OSX.

But, the more ppl trying to break keyboard shortcuts the
better.

In case it helps, here's the comments that Dominic had in the
code:

   // This is a very weird hack.  Under GTK, menu labels are totally
   // linked to accelerators the first time you create a menu item
   // with that label and can't be changed.  This causes all sorts of
   // problems.  As a workaround, we create each menu item with a
   // made-up name (just an ID number string) but with the accelerator
   // we want, then immediately change the label to the correct string.
   // -DMM
2014-12-07 01:06:37 +00:00
lllucius
c17edd0680 Fix for bug #763 - double delete 2014-12-06 19:20:30 +00:00
lllucius@gmail.com
d1a1c7877d Fix for bug #s 602 and 603.
When undoing not only should the capture state be checked to
see if it safe to undo, but the captured track should be
checked as well since some activities only set the captured
track and not the state.
2014-12-06 12:28:10 +00:00
lllucius@gmail.com
42452cc1da Fixes silent failures for a few exporters
One example is if a user tries to export a file to an invalid file or
is not permitted to write to it.  For the FFmpeg, MP2, and OGG exporters
this error would not be flagged and to the user, it would look like the
file was exported.

These now throw up an error dialog to left the user know.
2014-12-06 12:06:48 +00:00
lllucius@gmail.com
40ec0eda12 Fix for bug #787
But, it made another issue visible...several exporters
fail silently and the user may thing the export was
successful when it was not.

Will be hitting that next.
2014-12-06 11:23:44 +00:00
lllucius
d10d2bdedc Fix for bug #756
The problem was that the mouse capture was not being reset
when the pointer left the track panel.  In that case, as
long as no buttons are down, the capture state needs to be
reset so that when the mouse re-enters the track panel it
figures out what is going on from a clean slate.
2014-12-06 10:15:18 +00:00
lllucius@gmail.com
fdfcc0ec4d Fix for bug #739
Just ignores the broken pipe signal allowing the 
failure dialog to come up and, more importantly,
keep Audacity from simply disappearing.  :-)
2014-12-06 05:42:08 +00:00