1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

816 Commits

Author SHA1 Message Date
Paul Licameli
7d57a17ff4 Change details of focusing of tracks in presence of pending ones...
... Don't focus a pending changed track but remap it to the original.

You can focus a pending added track.
2018-01-14 19:04:01 -05:00
Paul Licameli
a0c3a4b43c Add machinery to TrackList for pending changes to tracks 2018-01-14 19:03:57 -05:00
Paul Licameli
0265b8792d More stl idiom for TrackList and its iterators 2018-01-14 16:58:19 -05:00
Paul Licameli
5407079c62 Remove EXPERIMENTAL_OUTPUT_DISPLAY...
... Maybe a good feature idea, but the implementation pollutes the code in
too many places.

It's a special case of the more general idea of many-to-one associations
between screen rectangles and track objects.  More generalized ways to
accommodate that should be sought.
2018-01-12 12:08:09 -05:00
Paul Licameli
def1d52505 Substitute, don't concatenate, when composing localized strings...
... Avoid English syntax bias.
2018-01-04 04:30:46 -05:00
Paul Licameli
095ee9185f Reimplement the narrowed hot zone for vertical ruler...
... Don't define the TrackPanelCell to be narrower.  Instead, change its
hit-test routine, and only if it is a Wave track.

Previous implementation had the unintended consequence, that a click in the
area excluded from vertical zooming was treated as a click on the background
outside of all tracks, causing de-selection of all tracks.
2017-12-20 23:20:05 -05:00
Paul Licameli
0c2f6bb176 Fix end of range of TrackPanelCellIterator 2017-12-20 11:21:29 -05:00
James Crook
2108515938 Bug 63 - Analysis effects that create labels should give focus to label Track
If a generator, effect or analyser has created a new track, scroll to the bottom of the track list.
Acheived using new function, VerticalScroll()
2017-12-17 14:59:59 +00:00
James Crook
3379b4e499 VZoom cfg defaults different for Audacity and DA.
VZooming remains on by default in Audacity itself.
Also kGuard (the gurard zone in the VRuler) reduced from 8 pixels to 5pixels
following feedback from Steve.
2017-12-12 21:06:09 +00:00
James Crook
13c6fdf663 VZooming Changes
1: Guard zone 8 pixels wide in VRuler to reduce risk of accidental use.
2: VerticalZooming preference, for VRuler zooming, off by default,
3: Enabled Paul's right-click menu in VRuler with some extra
presets (x2 and x0.5)
4: Rearranged some messy code with lots of ifs to use a switch.

Also, with EXPERIMENTAL_HALF_WAVE defined we now get a
'half wave' option in the VRuler menu, that shows the wave top half.
We also use it in collapsed waves (and collapsing and restoring
a WaveTrack will get you back to normal zoom.
2017-12-11 18:41:48 +00:00
James Crook
cb363cdd99 Make right half of VRuler inactive.
This is a buffer zone to reduce risk of accidental activation of VRuler scaling.
2017-12-08 22:16:18 +00:00
James Crook
f463eda36c Clean up some dead code and MSVC warnings.
- Dead code from experiments in SelectionBar removed.
- Many warnings about unused parameters fixed with WXUNUSED()
- Many warnings about signed / unsigned comparisons cleaned up.
- Several 'local variable declared but not used' warnings fixed.
2017-12-08 15:20:39 +00:00
James Crook
c28be778e2 Linty fixes
This commit fixes a number of warnings shown in compilation with MSVC.  No behavioral changes intended.  I did not fix signed/unsigned warnings.
2017-11-07 14:23:30 +00:00
Paul Licameli
5dd72acc02 Bug1770: fix crash applying chains 2017-11-04 20:59:55 -04:00
James Crook
dc05b94fd1 Bug 1701 - Mac: Text descriptors in Selection Toolbar become invisible after Open command
Problem was that on mac enable/disable clears the colour back to black.
The easiest workaround was to create a new class auStaticText that does all that we
need for wxStaticText.
2017-08-13 23:04:13 +01:00
Paul Licameli
f0de38dec1 Scanned for bad naked new; found none; changed comments, used safenew 2017-07-23 09:35:01 -04:00
Paul Licameli
5f8cde43fa Fix condition for displaying (Esc to cancel) 2017-07-17 11:49:11 -04:00
Paul Licameli
14450d6d9f Fix flickering tooltips in TrackPanel 2017-07-17 11:17:23 -04:00
Paul Licameli
c72bb76301 Fix flickering TrackPanel tooltip 2017-07-17 11:12:20 -04:00
Paul Licameli
1faa234b9e Fix bug 1662 (crashing TCP menu commands on Windows) differently...
Previous fix was at commit f9865f39efe46224a1a77c742a789b2cc70f0c54

But then that had this strange effect on Mac:  when a menu command such as
rename brought up a modal dialog, then the first click in the dialog would pass
through to the tracks behind it, changing the selection, and only a repeated
click on the OK button would dismiss the dialog.

I don't know exactly why that happened.  This avoids it.
2017-07-17 02:58:37 -04:00
Paul Licameli
cc0f76d076 Clear the tooltip when leaving the cell that defines it 2017-07-16 22:55:45 -04:00
Paul Licameli
053b0b583d Fix highlight of TCP menu button after command 2017-07-16 00:55:16 -04:00
Paul Licameli
ca83b06e84 fix i18n-hint 2017-07-15 21:11:44 -04:00
Paul Licameli
5644bed8bd No TrackPanel tooltips for now, may later reenable selected ones...
... perhaps for the TCP buttons, to make their behavior consistent with toolbar
buttons.
2017-07-15 20:50:34 -04:00
Paul Licameli
e55393af69 Fix assertion when cancelling from selection drag 2017-07-15 20:50:00 -04:00
Paul Licameli
7a038c9e51 Remove tab key target cycling and snap escape; reimplement for Esc 2017-07-15 20:37:39 -04:00
Paul Licameli
558efda20c A null check 2017-07-14 23:02:20 -04:00
Paul Licameli
84a6bad8a0 In a user visible message: TAB > Tab 2017-07-14 20:56:49 -04:00
Paul Licameli
903cebafe1 Bug1669: Close and Menu buttons should never disappear...
... As they did with Ctrl+Shift+F, with a certain minimimum number of wave
tracks that depends on screen resolution.  On my Macbook, that was 13 tracks.

This bug was a consequence of James' TCP layout changes making buttons a little
taller plus my changes to hide any top controls for which there is not
sufficient height.

The fix makes the height of tracks after Ctrl+Shift+F a bit more (44 pixels
not 40) than in 2.1.3.

This fix also replaces some more "magic numbers" with calculation from
tabled data about TCP layout.
2017-07-14 12:03:16 -04:00
Paul Licameli
e9cb5056f1 More guards against recursive event dispatches causing surprises...
...like the problem fixed at commit f9865f39efe46224a1a77c742a789b2cc70f0c54
2017-07-14 09:59:47 -04:00
Paul Licameli
aaed921fd3 Track panel tooltips, including TAB key hint...
... and distinguish snapping or not in Select tool.
2017-07-13 22:46:28 -04:00
Paul Licameli
b7ae012ece A single UIHandle can define multiple rotation states 2017-07-13 12:11:25 -04:00
Paul Licameli
4eece4b0b1 Extras like snap guidelines can be drawn for targets not yet clicked 2017-07-13 12:11:13 -04:00
Paul Licameli
4d1ce201e4 Make TAB key act as before, when a Label track has focus. 2017-07-13 08:09:39 -04:00
Paul Licameli
5e4f453a81 Fix crashes when ESCaping a drag 2017-07-13 07:03:30 -04:00
Paul Licameli
6c0b3bb1bf Shift+TAB cycles hit test targets backwards 2017-07-12 16:39:14 -04:00
Paul Licameli
a618ec8967 Fix priority of multiple hits 2017-07-12 13:37:42 -04:00
Paul Licameli
2cce171fe0 Implement TAB key rotation among hit test targets 2017-07-12 13:03:14 -04:00
Paul Licameli
d7738c403f Handles mark need for highlight in new Enter() method not ctor...
... So this can be called more than once in its lifetime, in response to
TAB key rotation.
2017-07-12 13:03:14 -04:00
Paul Licameli
4ec6baf059 Cursor handling always relies on current mouse state, not remembered 2017-07-12 13:03:13 -04:00
Paul Licameli
cddeb94c4b Revert "Highlighting of resizers"
This reverts commit 3e7f82cf5e4f4ce064a8bf5fcb136f12df933f9a.
2017-07-11 14:16:58 -04:00
Paul Licameli
3e7f82cf5e Highlighting of resizers 2017-07-11 13:57:59 -04:00
Paul Licameli
2231d2d152 Fix flashing toolbars when moving mouse in empty TrackPanel 2017-07-11 11:50:57 -04: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
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
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
8e44827980 TrackPanelCell hit tests can return multiple results...
.. though only the first is used yet
2017-07-09 08:17:40 -04:00