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

7301 Commits

Author SHA1 Message Date
James Crook
88b4be080b Wording: Auto-select, if selection required. 2017-07-11 15:07:12 +01:00
James Crook
7d968586af Back to a dark colour for cursor on Light and Classic.
This could also have been achieved by tweaking the colours in each of the themes.
2017-07-11 15:07:11 +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
David Bailes
71a75fc28d Fixes for commands to select next/previous clip
The messages sent to screen readers for these commands were incorrect when stereo tracks were present. This has been fixed, including the case where the two channels of a stereo track have different clip boundaries.
2017-07-11 11:30:18 +01:00
Paul Licameli
a5fffbd461 Correct the handler for modifier key-down...
...So that, for instance, when you hold the mouse over a TCP button, the
highlight does not disappear and reappear if you press Ctrl and releaes it.
2017-07-11 00:30:35 -04:00
Paul Licameli
e3ea42ff7e Force error on Mac when return value is missing...
... What commit 776e4dfdaba198b0bd5a4eec3df56d67065e824b was supposed to do,
but the setting was changed in the expat library only, not Audacity.

This should prevent foolish mistakes like that fixed in the previous commit!
2017-07-11 00:00:42 -04:00
Paul Licameli
4dcd10584f Fix crashes mousing over TCP 2017-07-10 23:18:33 -04:00
Paul Licameli
bca09f4320 null check 2017-07-10 11:53:23 -04:00
Paul Licameli
16645f6b95 Back-pointer from Track to TrackList is weak (fixes crashes) 2017-07-10 11:48:11 -04:00
Paul Licameli
9489fed04e build fix 2017-07-10 10:26:10 -04:00
Paul Licameli
cb9d37f362 build fix 2017-07-09 14:09:33 -04:00
Paul Licameli
0fa0d480e4 build fix 2017-07-09 13:37:20 -04:00
Paul Licameli
fb75f1d00b build fix 2017-07-09 13:33:15 -04:00
Paul Licameli
1c281faf52 build fixes 2017-07-09 13:27:03 -04:00
Paul Licameli
65c098f85e Revert "More fixes for Windows build"
This reverts commit ef9745b93e025283796fbe312bf5ada410fa8fe1.
2017-07-09 13:11:26 -04:00
Paul Licameli
ef9745b93e More fixes for Windows build 2017-07-09 13:06:11 -04:00
Paul Licameli
2bdbea44e6 Mouseover highlight 1) MIDI buttons 2) other buttons 3) sliders...
... in Track Contol Panel.

Each of these three can be separately referted if we don't like it.

The first is independent of theme and does not use image files.

The second uses HiliteButtonExpand.png, which looks wrong in Classic theme, as
if that file was intended for Dark instead.

The third uses files SliderThumbHilited.png and SilderThumbRotatedHilited.png
as are also used to highlight other sliders in the toolbars.  The appearance
is distinguished only in Classic theme now.

Some cleanup of button drawing code is also done, removing a global variable,
and some change of arguments of other drawing functions is also done, to
make it easier to implement highlighting of other things in TrackPanel in a
way analogous to these.
2017-07-09 12:42:28 -04:00
Paul Licameli
51e25cdfa0 Highlighting of Track Control Panel sliders 2017-07-09 12:34:46 -04:00
Paul Licameli
44d6d5f427 Highlight MIDI channel buttons 2017-07-09 12:34:46 -04:00
Paul Licameli
25641ae568 Highlight TCP buttons 2017-07-09 12:34:46 -04:00
Paul Licameli
2475b1554b Support for TCP button highlighting 2017-07-09 12:34:28 -04:00
Paul Licameli
ada4b6307d Pass more context information into drawing routines 2017-07-09 12:34:27 -04:00
Paul Licameli
f09a7be3dc TCP draw use hit target for button, slider state; remove hacky global 2017-07-09 12:34:27 -04:00
Paul Licameli
3d7471a612 new file 2017-07-09 12:34:26 -04:00
Paul Licameli
dc864f3782 Fix windows build, and simplify a little 2017-07-09 12:31:19 -04:00
Paul Licameli
7eafbf6dd6 Improve the internals of refactored TrackPanel...
Use mouse states, not events, in hit tests and choice of cursor and status.

Manage lifetimes of UIHandle objects better, without singleton instances.

Implement the mouse-over highlighting of labels more elegantly, with a system
that will allow generalization of that to other hit test targets.

Cells can report multiple, prioritized hit test targets at a point, though the
extras are not yet used.
2017-07-09 08:19:24 -04:00
Paul Licameli
8e44827980 TrackPanelCell hit tests can return multiple results...
.. though only the first is used yet
2017-07-09 08:17:40 -04:00
Paul Licameli
b3d62e2ab6 Simplify by removing class HitTestResult...
... Because all hit tests returned all fields blank, or else, returned a
UIHandle object whose Preview method gives the rest of the information; so
the other fields were redundant.
2017-07-09 07:57:34 -04:00
Paul Licameli
c079544667 Defaulting TrackPanel cursor, status message; simplifies other code 2017-07-09 07:57:33 -04:00
Paul Licameli
f5b0afc2fc Rename TrackPanel::HandleCursor as HandleMotion...
Call HitTest in just one place

Can now preserve repeatedly hit UIHandle objects during pre-click motion

Fields of HitTestResult besides the handle pointer are now unused

The need to repaint a track during mouse movement can be indicated when
constructing a UIHandle or when updating it for move; HitPreview no longer
does this

And the last allows simplifications of LabelTrack glyph highlighting

Also move the temporary state for label glyph dragging out of LabelTrack
2017-07-09 07:56:47 -04:00
Paul Licameli
2c1a16f593 Changed lifetime management of UIHandle objects, no singletons...
... Rather, construct them during hit tests (also capturing more state sooner
rather than at Click time, and adding some accessors for later use)

This also fixes bug 1677 by other means and avoids similar problems.

A cell may be implemented to re-use a previously hit handle object, not yet
clicked, in a later hit test, by remembering a weak pointer, but TrackPanel
holds the strong pointers that determine when the object is destroyed.

And the objects will surely be destroyed after drag-release, or ESC key.

For now they are also destroyed whenever not dragging, and hit-testing is
re-invoked; that will be changed later, so that the re-use mentioned above
becomes effective, but still they will be destroyed when the pointer moves
from one cell to another.
2017-07-09 07:23:28 -04:00
Paul Licameli
d2fbca83b2 All UIHandle::Preview() return same cursors, messages as HitTest...
... except TrackSelectHandle.  Cursor changes to a hand only after button-down.

HitTests give a UIHandle, whenever they also give any cursor or status, even
when it's unsafe to click and drag; Click override is reponsible for cancelling.

SelectHandle::Preview introduces much duplication, but the original in the hit
test will later be deleted.
2017-07-09 06:38:56 -04:00
Paul Licameli
3a8280c562 Distinguish TrackPanelMouseState from TrackPanelMouseEvent...
... Let cell hit tests, and handle preview, know states only, not transitions.

Cell hit tests are passed a mouse state that does not always match the current,
but anticipates the button click to come; usually left, but if the Control
[sic] key on Mac is down, then right.

Thus, pressing and releasing Mac Control in multi-tool switches in and out of
the magnifier cursor.
2017-07-09 06:38:55 -04:00
Paul Licameli
c1f667f170 Move some handle and cell classes into their own files 2017-07-09 06:38:54 -04:00
James Crook
4e68df55da Merge pull request #202 from scootergrisen/patch-1
Add danish translation
2017-07-07 22:56:05 +01:00
scootergrisen
8c6950101d Add danish translation
I would prefer these strings be added to the po files and then extracted from there to make a .desktop file.
That way translators will only have to think about one file.
2017-07-07 16:42:21 +02:00
Steve Daulton
3aab1939f0 Fix Nyquist message logging
Incorrect use of wxLogMessage can cause crash on Windows
if '%' present in debug string.
2017-07-07 14:12:26 +01:00
David Bailes
f0702fb54b 1678: Cursor to track start/end misbehaves when no tracks selected
Problem: With no tracks selected, the commands cursor to track start/end set the cursor position to a silly high value or undefined respectively.

Simple fix: Set the flags on the commands to TracksSelectedFlag, as they were before the menus were reorganised.

Note that after this fix, with tracks present, but none selected, these commands cause a disallowed dialog to open, saying that there was a problem with the last action. I don't know if this behaviour is now expected.
2017-07-07 13:31:48 +01:00
Paul Licameli
76ea923975 Correct outdated comment about memory management of BlockFiles 2017-07-06 12:43:02 -04:00
James Crook
739422ba70 Add split line before new recording on same track. 2017-07-06 16:20:48 +01:00
James Crook
c12f849f36 Bug 1656 - (Windows) Disabled Edit Toolbar buttons not skipped for navigation and respond to ENTER as if auto-select was On
This fix addresses the second part.  ENTER (including from numpad) now has no effect if the button is disabled.
2017-07-04 22:34:43 +01:00
James Crook
d903845a6b Bug 1677 - Residual. Handle ESC during track rearrangement. 2017-07-04 21:21:24 +01:00
David Bailes
4de3264d60 Remove Track: improvement for screen readers.
After a focused track is removed by pressing shift+c, the new focus is often not correctly read by screen readers, especially nvda.
The fixes:
1. In AudacityProject::RemoveTrack, set the new focus after the track has been deleted, rather than before. (If it is set before, then the childId can be wrong after the track is deleted.

2. In TrackPanelAx::SetFocus, send an object focus event if there are no tracks. This is so the focus is correctly set when there are no tracks after a track has been deleted.

3. In TrackPanelAx::GetFocus, given the change in 2. , only call SetFocus if the focus has changed, to avoid sending unnecessary focus events. (Screen readers are normally tolerant of this, but Window Eyes became a bit too talkative.)
2017-07-04 14:41:00 +01:00
Paul Licameli
5d15974fbe Make EXPERIMENTAL_MIDI_OUT buildable on all, and enabled
Enable EXPERIMENTAL_MIDI_OUT on all platforms
  Add Portmidi dependencies (libasound2-dev, alsa-utils, alsa-oss) to travis
  Regenerate configure scripts and Makefile.in's
  Attempt to add the rest of the makefile for portmidi
  Re-add automake files for portmidi
  Fix missing include for allegro
2017-07-04 07:50:25 -04:00
Pokechu22
f0903dcc55 Enable EXPERIMENTAL_MIDI_OUT on all platforms 2017-07-04 07:50:16 -04:00
Pokechu22
e4875cf873 Add Portmidi dependencies (libasound2-dev, alsa-utils, alsa-oss) to travis
I chose to use libasound2-dev, alsa-utils, and alsa-oss instead of libportmidi-dev because I'd rather the local version was used.
2017-07-04 07:50:16 -04:00
Pokechu22
f50b301694 Regenerate configure scripts and Makefile.in's 2017-07-04 07:50:16 -04:00
Pokechu22
0c00435f08 Attempt to add the rest of the makefile for portmidi
Also, fix a broken(?) include in px_linux_alsa.c.  I don't know if it was actually broken, but it seems like that was wrong.
2017-07-04 07:50:15 -04:00
Pokechu22
1610da4bb3 Re-add automake files for portmidi
These were created by rbdannenberg, in commit
932ca88255a322bff833e3eb4e3931a971aa97d4, but were accidently deleted
later in commit bb63fa0d07dad9a9f02b75eda455576e6e8b4da4 (which updated
portmidi).  I can't say whether they work or not, and even when they were
introduced it was stated that they may be wrong.  But it's better than not
having any automake files at all, and will at least provide a base for
them.

I didn't add some of the sourcefile changes from the first commit (some
were already added to portmidi, and others weren't).  Some of them may be
needed to get building to work (or, we could update portmidi, if there are
any changes upstream).  I also didn't add any of the libscorealign changes
other than one, since libscorealign already had makefiles (other than the
uninstalled one).

These configure scripts may be really old; regenerating them is probably a
good idea.
2017-07-04 07:50:15 -04:00
Pokechu22
724091eb15 Fix missing include for allegro
Allegro, for some reason, does not include <cstring>, which causes compile errors when including the header.
2017-07-04 07:50:15 -04:00