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

328 Commits

Author SHA1 Message Date
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
david avery
72385c7faf wx3 2015-05-16 14:40:29 -06:00
david avery
193603551f wx3 fix 2015-05-16 14:38:51 -06:00
David Bailes
66084b65ef Changes to a number of dialogs so that the nvda screen reader can read their titles. The accessibility name of the dialog is set to the title of the dialog. 2015-05-16 09:35:21 +01:00
Leland Lucius
f76746b399 Force use of "period" as decimal and nothing as thousands separator
Since we don't actually change the locale when we change languages,
we can't use whatever is defined in the locale for the decimal and
thousands separator.

This is because standard library functions are used to format and
parse numbers and since these library functions use whatever is
set for the current locale, we can use comma for the fraction
separator or the period for the thousands separator.
2015-05-16 00:27:31 -05:00
Steve Daulton
e9b2d0f02d A couple of bug fixes for Quick-Play and simplify defaults 2015-05-07 14:34:40 +01:00
Steve Daulton
c487b920ca Improve selection handling in Quick-Play 2015-05-05 13:00:18 +01:00
Steve Daulton
1ad878771f Update a couple of variable names. 2015-05-05 13:00:18 +01:00
Leland Lucius
01aaaebf77 No longer yield when the progress dialog is active
When the dialog yielded, it opened up a window that allowed events
to flow to other parts of the app that shouldn't be receiving them
while the action is in progress.  This could cause odd behavior
or crashes.

I've removed the yields and hopefully the darn thing will still
work right.
2015-05-04 11:09:30 -05:00
Leland Lucius
9f22789dc1 Autoselect all text when validation fails as reported by Robert 2015-05-03 22:30:52 -05:00
Daniel Winzen
428f5c8391 Fix 3 uninitialized variable uses 2015-04-30 09:06:37 +02:00
Steve Daulton
7a85fd1b8e Improve cursor icon handling in Quick-Play. 2015-04-25 21:51:14 +01:00
Steve Daulton
2fa5425f13 Comment: Reduce the pixel tolerance when the mouse cursor gives better visual feedback. 2015-04-25 21:51:14 +01:00
Leland Lucius
ed79e13fbf Merge pull request #36 from DanWin/performance
Performance improvements
2015-04-24 07:52:38 -05:00
Daniel Winzen
92d522132e Variable cleanup 2015-04-23 18:30:38 +02:00
Daniel Winzen
759ff8cd0d Performance improvements 2015-04-23 16:07:25 +02:00
Steve Daulton
9aa8885d9b A few more minor fixes to Quick-Play.
Ensure that Quick-Play is within usable region of Track panel.
Fix Quick-Play Cut-preview.
2015-04-23 13:21:56 +01:00
Daniel Winzen
d3a308ff2b Fix errors 2015-04-22 14:53:01 +02:00
Steve Daulton
cefd21325e Redoing Steve's: Fix play from click position when Quick Play Loop in selection.
Minus the unnecessary change to ControlToolBar.cpp.
2015-04-21 20:25:33 -04:00
Paul-Licameli
d8cabc14e5 Revert the rest of it 2015-04-21 19:50:06 -04:00
Steve Daulton
e45afbaa76 A few minor fixes to Quick-Play (now hyphenated for consistency). 2015-04-21 20:46:52 +01:00
Steve Daulton
0b67e1c5ac Allow Quick Play to be disabled (requested by Gale Andrews). 2015-04-21 00:51:23 +01:00
Steve Daulton
79b7caac07 Fix play from click position when Quick Play Loop in selection. 2015-04-20 04:06:07 +01:00
Steve Daulton
cc0b4789a8 Apply Paul L's suggestion to simplify compilation. 2015-04-19 23:36:22 +01:00
Steve Daulton
702d9d75e5 Timeline Quick Play bug fixes and enhancements 2015-04-17 17:52:13 +01:00
Leland Lucius
8fbfa460c4 Migrating the remaining effects
This brings the builtin, LV2, and VAMP effects inline with the
Audio Units, LADSPA, and VST effects.  All effects now share
a common UI.

This gives all effects (though not implemented for all):

User and factory preset capability
Preset import/export capability
Shared or private configuration options

Builtin effects can now be migrated to RTP, depending on algorithm.
LV2 effects now support graphical interfaces if the plugin supplies one.
Nyquist prompt enhanced to provide some features of the Nyquist Workbench.

It may not look like it, but this was a LOT of work, so trust me, there
WILL be problems and everything effect related should be suspect.  Keep
a sharp eye (or two) open.
2015-04-16 23:36:28 -05:00
david avery
0319f6ea51 merging wx3 changes 2015-04-12 23:52:32 -06:00
Paul-Licameli
7d6de21e3a Enh809 - Add persistency of spectral selections, including those in labels 2015-04-10 15:20:50 -04:00
Leland Lucius
21c2e5f994 Meter refresh rate not updated when leaving preferences. 2015-04-08 03:03:44 -05:00