1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00
Commit Graph

531 Commits

Author SHA1 Message Date
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
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
Paul Licameli
e70f91c64e Removed ShuttleGui.h from other headers 2015-07-19 12:31:03 -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
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
a6808609ea Added i18n-hint for transport status strings in the status bar. 2015-06-13 16:48:57 +01:00
Paul Licameli
0bed89419f More for bug 1014: stop scrubbing when switching out of select tool...
... Verified that this works for presses on tool buttons, and keys A, D, F1,
..., F6.

Also fix conditional compilation with EXPERIMENTAL_SCRUBBING_BASIC not defined.
2015-06-08 09:56:17 -04:00
David Bailes
a25a8f8f26 state field of status bar. Previous commit failed to build on linux (again). Added forward declaration of class wxStatusBar to ControlBar.h. 2015-06-02 16:21:51 +01:00
David Bailes
391bd1691c status bar state field. When you move to the menubar, the state field is no longer cleared. This was achieved by introducing a dummy field of width 0. When you first open a new audacity project, the state is stopped - previously the state only appeared after the first play/pause/etc command. 2015-06-02 15:18:46 +01:00
David Bailes
1ddbc0bc68 state field of status bar. Changed _()s to XO() and wxGetTranslation(), so that translations of strings are changed more promptly. 2015-06-02 09:29:31 +01:00
David Bailes
7b3628c753 changes to the text of state in status bar. Play changed to playing etc. Also full stop added to that for screen readers there is a pause between the state field and the next field. 2015-06-01 10:08:33 +01:00
Steve Daulton
a9bc6d2f53 Further fix for bug 957.
Tool Tip was missing space between "Spectral" and "Selection" when
selected language updated.
2015-05-30 12:16:40 +01:00
Paul Licameli
8d2a29d376 Bug989, and scrub UI uses left button to seek, not Shift key
Updated mouse preferences and status bar message accordingly

Also, use the term "Scroll-scrub" in status bar and mouse preferences
2015-05-29 20:29:44 -04:00
Paul Licameli
9f2dfbc70b Revert "Bug990 (seek key reponsiveness), and, change Scrub UI again, so Ctrl key seeks."
This reverts commit 841bca36ea.
2015-05-29 19:45:43 -04:00
Paul Licameli
841bca36ea Bug990 (seek key reponsiveness), and, change Scrub UI again, so Ctrl key seeks.
Includes changes to Mouse Preferences and status bar messages.
2015-05-29 17:30:19 -04:00
David Bailes
ebb6709966 fix for state in status bar. For linux, there was a missing include, and there was also an invalid use of a pointer. Fixes for both kindly supplied by Leland. 2015-05-29 19:59:49 +01:00
David Bailes
5c67bc38b3 Add a field to the status bar to show the state of Audacity, eg play/record/play pause. This is useful so that screen readers can easily read audacitys state. 2015-05-29 17:47:43 +01:00
Paul Licameli
4ded4ec9ba Bug969: Just disable pause during scrub. It does not make sense. 2015-05-26 13:00:07 -04:00
Paul Licameli
1ac7d15e5c Bug957 - Tooltip text for Spectral Selection toolbar 2015-05-25 10:36:27 -04:00
Paul Licameli
0d86890657 Bug968 status bar and mouse preference messages updated for new scrub UI...
... Note too that the mouse preference message for old ctrl-click behavior
is now removed
2015-05-24 17:57:51 -04:00
Paul Licameli
c1f093ed2e Bug920 - Backward playback when selection beyond end of the project 2015-05-19 22:52:16 -04: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
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
Paul-Licameli
a3fcf5a265 Revert unintended changes. Should have changed Ruler.cpp only.
This (partially) reverts commit 79b7caac07.
2015-04-21 19:37:19 -04:00
Steve Daulton
79b7caac07 Fix play from click position when Quick Play Loop in selection. 2015-04-20 04:06:07 +01:00
Leland Lucius
69b044e321 Restore tracks if recording fails to start
During an append record, silence may need to be added to the
end of the existing track(s) to fill any gap between the end
and the common recording start time.

But, if the recording fails to start, this silence is left at
the ends of the tracks.

This change fixes that by making a copy of the tracks before
recording starts and restoring the tracks from that copy if
the start fails.
2015-04-17 16:35:48 -05:00
Paul-Licameli
10e35bb6bb Add user interface for scrubbing and Experimental.h switches
EXPERIMENTAL_SCRUBBING_BASIC enables middle-click-drag to scrub, or to seek
when shift is down.

EXPERIMENTAL_SCRUBBING_SMOOTH_SCROLL adds middle-double-click-drag to
scrub or (with SHIFT down) to seek while keeping the playhead at the midline
of the track display.

EXPERIMENTAL_SCRUBBING_SCROLL_WHEEL allows control wheel to vary the speed
limit, while scrubbing (not seeking).

All three are enabled in this commit.

Also notice the changes to status bar messages and the Mouse Preferences dialog.

Scrubbing works only in Select and Multi tools.
2015-04-17 14:09:35 -04:00
Steve Daulton
702d9d75e5 Timeline Quick Play bug fixes and enhancements 2015-04-17 17:52:13 +01:00
Paul-Licameli
5abfd25a34 Support backwards play, a requirement for scrubbing
Uncomment the line at the top of ControlToolBar::PlayPlayRegion to play
everything backwards and test it

It even works correctly with a time track
2015-04-17 02:25:52 -04:00
Paul-Licameli
2b85d0edb4 Preliminary function argument list changes and comments, for scrubbing project
In particular, use an options structure for AudioIO::StartStream to simplify
calls

ControlToolBar::PlayPlayRegion also takes that structure as an argument, and a
SelectedRegion instead of two times

And other changes
2015-04-17 02:25:39 -04:00
Paul-Licameli
7d6de21e3a Enh809 - Add persistency of spectral selections, including those in labels 2015-04-10 15:20:50 -04:00
Paul Licameli
bc50440210 Bug881 - Status bar messages swapped 2015-04-07 12:18:40 +01:00
lllucius
57d18d7bcb Further correction for bug #795 2015-01-10 18:16:55 +00:00
lllucius
1201c5abe3 Applying patch from bug #795 2015-01-04 19:41:08 +00:00
lllucius
3a098714d9 Persist looped button across toolbar resets...
...when started from the keyboard.
2015-01-03 11:27:24 +00:00
lllucius
0c00a5f463 SetCursor() is only needed once
Thanks to a discussion with Steve, I went back to the docs
and found that SetCursor() is persistent.  So it doesn't
have to be done in a mouse event handler.  The constructor
is perfectly sufficient.
2015-01-02 14:58:22 +00:00
lllucius
15ac9905ad Do not allow resizer to accept focus. 2015-01-02 14:39:56 +00:00
lllucius
bec5866653 Persist meter state across toolbar resets and fix clipping indicator
This will fix the clipping indicator turning on after a toolbar reset
and, as a bonus, the timers now only run if playing, capturing, or
monitoring.  Will (slightly) reduce the CPU consumption.
2015-01-01 23:29:08 +00:00
lllucius
2e6e110a34 Allow speed slider to persist across toolbar reset 2015-01-01 20:27:29 +00:00
lllucius
6459324b4c Allow selected tool to persist across toolbar reset 2015-01-01 20:05:06 +00:00
lllucius
622b609f91 Allow button state to persist across toolbar reset 2015-01-01 11:46:52 +00:00
lllucius
6a3ef5565c Independent meters with combined menu/icon
Many other changes including:

1)  Independent preferences
2)  Automatic layout separated from vertical/horizontal orientation choices 
3)  Combined menu and icon which saves space
4)  Click to start monitoring label no longer covers peak hold line completely
5)  Click to start monitoring label now adjusts label based on available width
6)  Click to start monitoring label now appears on vertical meter (not sure about this one...)
7)  Reduced width of vertical meter by moving icon to left of meters
8)  Includes a compact vertical meter now
9)  Clipping indicator is easier to see
10) All 1-off drawing issues resolved (99.9% sure...I challenge you to find some ;-))
11) Bevels around meters are no longer overlaid by meter updates
12) "Old" menu handling code removed
13) Though not perfect since some non-English characters are taller/wider than the meters, non-English text is now handled better
14) Clicking play meter resets indicators as appropriate
15) Indicators on meters now stick around until the meter is clicked
16) Ugly flashing while resizing is now gone
17) There should be NO magic numbers in the code.  Every +1 or -2 is explained in comments...
18) Size of L/R labels are recalculated now when preferences are updated (to pull in locale changes)
2014-12-28 03:18:00 +00:00
lllucius@gmail.com
7c1535fdfd Always assign an order if a bar is docked
Otherwise, the next time Audacity is started, it will
become undocked.
2014-12-26 09:21:35 +00:00
lllucius
7108b71f5d Fix for bug #804
But, I did leave in the disabling/enabling of the 
transcription toolbar play button when recording.
Thought that was a good idea.
2014-12-22 09:29:14 +00:00
windinthew@gmail.com
00af97edd6 No need for a period in a tooltip that is not a complete sentence. 2014-12-20 23:27:41 +00:00
lllucius
6a0492e15d Default all toolbars to docked on reset and new config
Combined meter and spectral toolbars default to hidden.
2014-12-20 22:03:10 +00:00
lllucius@gmail.com
9404a28954 Fix missing toolbars at startup on Linux
The problem was that on Linux (not Windows or Mac) menu
events are generated when checking the menu items in
the toolbar menu.

Becuase of the recent changes I made and how the toolbars
are being shown (toggled) when the toolbar menu is checked,
they were simply being hidden.  Actually, the were being
shown and then hidden because of the toggle.

So, with this change I made exposing toolbars a bit more
deterministic.  The menus still use a toggle, but the 
ToolManager now shows or hides the bars explicitly during
setup, so the menu toggle issue is resolved.
2014-12-20 20:08:45 +00:00
stevethefiddle@gmail.com
9a0d4b2364 Fix for Spectral Selection bar layout from David Bailes. 2014-12-20 15:39:35 +00:00