1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-28 06:29:24 +02:00

306 Commits

Author SHA1 Message Date
Leland Lucius
cc3f237945 Ensure that URL are always escaped 2015-07-31 19:22:04 -05:00
Leland Lucius
6c3469afe0 Fix slow downs caused by the ProgressDialog 2015-07-31 18:41:13 -05:00
Steve Daulton
f756b0d4d7 Fix layout of error dialog TLW.
Thanks Leland for the suggested fix.
Works OK on Linux, please test on other platforms.
2015-07-31 12:12:37 +01:00
Leland Lucius
a269670912 Fix warning 2015-07-30 10:37:17 -05:00
Leland Lucius
1e195ecea6 Fix many wx3.1.0 assertions now to prevent double testing 2015-07-30 02:05:23 -05:00
Paul Licameli
910e7f87bd Spectral selection toolbar refinements
Delete key in center/width spectral selection toolbar works
  Delete key, not - key, in the spectral selection bar maks frequency undefined.
2015-07-29 12:11:49 -04:00
Paul Licameli
360a33454e Delete key, not - key, in the spectral selection bar maks frequency undefined. 2015-07-29 11:55:48 -04:00
Leland Lucius
37168ebbf6 Merge remote-tracking branch 'upstream/master' into wx3 2015-07-28 15:06:25 -05:00
Leland Lucius
5bdfcff97d Menu shortcut hiding has been removed
It had been causing problems in Unity for a while now and they
were missing on OSX as well in wx3.  So, the old menu Open/Close
method of hiding has been removed and replaced with an event
filter/monitor which looks for wxEVT_CHAR_HOOK events to pass
key events to the handler that has the keyboard captured.
2015-07-28 14:35:09 -05:00
Paul Licameli
e0621819ed Move ENV_DB_RANGE out of Envelope.h; that file can be included in fewer places. 2015-07-28 11:55:52 -04:00
Paul Licameli
cab89f6fb4 Remove Envelope.h from other headers 2015-07-28 10:02:09 -04:00
Paul Licameli
f81231efae Remove Sequence.h from other headers 2015-07-28 10:02:08 -04:00
Paul Licameli
b89c2a130c Remove Track.h from other headers 2015-07-28 10:02:03 -04:00
Paul Licameli
846c5d454e Other spectrogram scales, easily defined!! -- and include bug fixes 1038, 1039 2015-07-27 23:01:16 -04:00
Paul Licameli
9b9ceab6ab Ruler uses generalized number scale when plotting "log" 2015-07-27 23:01:14 -04:00
Steve Daulton
5f164649c3 Fix build error on Linux.
Header file <limits> required for std::numeric_limits
2015-07-26 17:24:31 +01:00
Paul Licameli
7f7506dbcd Bugs 895, 1048: Now typing '-' can set upper or lower frequency to undefined 2015-07-25 14:41:44 -04:00
Paul Licameli
cf9851c313 Bug 891: Changing low or high frequency in spectral selection toolbar...
... will not change the opposite bound, but will instead be constrained by it.
2015-07-25 11:41:52 -04:00
Steve Daulton
df8ddde874 Added dB - linear amplitude conversion macros. 2015-07-24 21:59:34 +01:00
Leland Lucius
d7418b5b98 Popup windows apparently need a parent on Windows 2015-07-20 02:40:36 -05:00
Leland Lucius
255be8cfe7 Reworked the TipPanel used with ASliders
It was producing "ghost" windows on OSX in wx3.  These were
supposed to be hidden, but they weren't any longer and after
reviewing TipPanel, I realized that there was a separate
code path for OSX entirely...must've gone back to some of the
earliest versions.

Now all platforms use the same bit of code.
2015-07-20 02:10:05 -05:00
Leland Lucius
3fe146f306 Merge remote-tracking branch 'upstream/master' into wx3 2015-07-19 18:00:02 -05:00
Leland Lucius
fa99433113 Updated/fixed ProgressDialog for wx3
This also re-enables the splash screen and recombines the
OnInit() and FinishInits() since I'm pretty sure the progress
dialog was the issue.

I also retested (as much as I could) and cleaned out all of the
little "hacks" the progress dialog gained over the years.  With
the new modal handling of wx3, it seems that things are much better
behaved.

However, it seems that wxGTK (at least) has gained some new focus
probs (to be dealt with later).
2015-07-19 15:47:50 -05:00
Paul Licameli
e70f91c64e Removed ShuttleGui.h from other headers 2015-07-19 12:31:03 -04:00
Paul Licameli
e3a03ff07e Tick size on the time ruler will not jump when fisheye approaches ends 2015-07-19 11:44:26 -04:00
Paul Licameli
6b9e7506dd Ruler-drawing does not assume uniform zoom, ...
... and AdornedRulerPanel exposes an invalidation function for later use
2015-07-19 11:44:18 -04:00
Paul-Licameli
c4386f4dc8 Ruler event handler does not directly use zoom (pps) value 2015-07-19 11:44:10 -04:00
Paul-Licameli
fe36b636cb Rewrite SnapManager to avoid using ZoomInfo::zoom 2015-07-19 11:44:05 -04:00
Paul-Licameli
5a6d5d1443 Add and use some ZoomInfo and ViewInfo member functions, so we can eliminate...
... miscellaneous direct uses of ZoomInfo::zoom to test and set zoom level.

This includes all the remaining assignments to it.

But moving TrackInfo::PositionToTime and TrackInfo::TimeToPosition into
ZoomInfo and using them is needed to eliminate many more uses.

Also #if'd out the unused AudacityProject::OnZoomToggle().
2015-07-19 11:44:02 -04:00
Paul-Licameli
ab21f75c77 ViewInfo is becoming a smart class, not a dumb struct
Now it has:
A constructor
XML attribute serializer functions (but no XML tag of its own)

Also removed unused lastZoom
2015-07-19 11:43:59 -04:00
Paul Licameli
b759cc5483 collapse some repeated code into a loop 2015-07-19 11:43:49 -04:00
Leland Lucius
62491cb769 Fix assertion due to adjustment value being zero
wx3 on OSX has changed how the mouse wheel delta is calculated.  Prior
to wx3, it was simply set to 1 so the wheel rotaion value was simply
increments of one.

With wx3, higher resolution devices (like touchpads) are supported so
the value for wheel rotation can be a fraction of the delta, so it is
possible to pass a zero value to the NumericConverter::Adjust() method.
Therefore, the method just returns in this case.
2015-07-18 20:19:04 -05:00
Leland Lucius
d1f66d768f Updates for wx3
A long way to go yet, but many OSX issues fixed including
conversion of Audio Unit effects.
2015-06-30 11:25:32 -05:00
David Bailes
8f9eda0214 Changed label, and name of AdornedRullerPanel to Timeline. Change requested by Robert Hänggi. 2015-06-11 13:15:42 +01:00
David Bailes
d5ea9a678e Fix for translations of strings for screen readers in MeterAx::GetName. The translations of strings which had a leading space did not always preserve this leading space, resulting in merged words. Therefore separate spaces were added, and the original strings left unchanged so that no new translation work is required. 2015-06-10 14:09:56 +01:00
David Bailes
cc9ac9804f Meters: fix indication of clipping for screen readers. 2015-06-10 13:56:47 +01:00
Paul Licameli
3a3b2d066c fix compilation warnings 2015-06-09 15:30:42 -04:00
Leland Lucius
a1edf31c99 Hopefully this will "fix" the Serbian (Cyrillic) issues on OSX.
Since I ran out of time, I put OSX back to the way it was in
2.1.0...forced locale to en_US.  Heck, I'm not sure there is
a "real" fix anyway.

At least, the problem languages appear to be happy now, even
when using the validators.
2015-06-07 08:03:18 -05:00
Leland Lucius
0ef7ccb1d1 Fix permissions...not sure why this was happening though 2015-05-29 19:49:28 -05:00
Paul Licameli
0bfac5db40 Two colored time ruler, when scrolling past zero enabled. 2015-05-28 17:07:42 -04:00
Leland Lucius
46a4c4d84d Second attempt at fixing bug #947 2015-05-26 01:52:54 -05:00
Leland Lucius
45e70b605f Restore the yields
Was getting some timer assertions, so restoring the yields.  Better
the evil that you know...
2015-05-25 03:19:14 -05:00
Leland Lucius
8f77334286 Fix for bug #949
This removes the TrackInfo's slider "cache".

Originally, the cache would build to the maximum number of tracks you
had created in an Audacity session.  So, if you created 128 tracks
and then reduced that to 1, you'd still have 256 sliders, 1 gain and
1 pan per track.

But, the only real thing the cache did was prevent continuous allocations
of sliders since the allocated sliders position and values wer still
being updated nearly with ever interaction since they were redrawn each
time.

In April 2010, the slider cache was changed to reduce its size by
creating a sort of ring buffer based on how many tracks were displayed
and how many tracks were in the project (I guess).  Unfortunately, it
didn't really handle large number of tracks and this bug was born.

While trying to find the proper fix for this, I realized that the
cache really wasn't saving anything.  Maybe a little when dragging
the thumb, but during normal track redraws and interaction, it really
didn't serve a purpose, other than use additional memory.

So, I've removed the cache and have allocated a single gain and a
single pan slider.  As before, their position and value are changed
as needed when drawn and manipulated.
2015-05-24 22:54:10 -05:00
Paul Licameli
5c62b80bc4 Defined EXPERIMENTAL_SCROLLING LIMITS
When it is enabled, the project can scroll up to one-half of a screenful
beyond time zero or the maximum track time.  I was careful to disable selection
of negative times.

This is motivated by the smooth scrolling scrub.  It behaves more sensibly at
the extremes.  It can still keep the play indicator centered.

Also removed an unused member of ViewInfo.
2015-05-24 13:38:54 -04:00
Leland Lucius
6cb9b7d8fb Corrects sizing on OSX
Wouldn't you know that OSX had to go and be different, but it
looks like we finally have consistency across all three (fingers
crossed).
2015-05-22 10:14:22 -05:00
Leland Lucius
16744a2387 Improves ProgressDialog size calculations
Discovered a sizing problem when working on the effect registration
dialog and then found that others had mentioned a similar sizing
issue with the TimerRecordingDialog.
2015-05-22 00:47:52 -05:00
James Crook
9bef4869c8 LinkingWindow now handles https as well as http. 2015-05-19 21:31:21 +01:00
Leland Lucius
21d69946e4 Fix ruler background on GTK 2015-05-19 02:39:42 -05:00
David Bailes
f458df1c7b Changes to a number of dialogs so that the NVDA screen reader can read the titles. Missed these in my last patch. The accessibility name of the dialog is set to the title. 2015-05-18 13:57:05 +01:00
Leland Lucius
19e10ec81a Merge pull request #44 from daavery/master
update for wx3
2015-05-16 16:22:33 -05:00