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

6998 Commits

Author SHA1 Message Date
Steve Daulton
92335ce463 Enable Nyquist audio device selection 2017-06-22 10:24:59 +01:00
James Crook
1c03eee052 Bug 1218 - "Other uncompressed files": AIFF defaults to 8-bit export. 2017-06-21 22:54:48 +01:00
James Crook
911a57d451 Bug 1660 - (Windows) Default track name appears as "Audio Trac ". 2017-06-18 12:42:12 +01:00
James Crook
aee04aba23 Bug 1663 - Cut does not remove Quick-Play region.
A perhaps unwanted side effect of this change is that cut also cancels a pause, if there was one.  Does not seem a problem to me.
2017-06-18 12:20:46 +01:00
Paul Licameli
9b06f76f6f Small TrackPanel fixes, including bug 1662, popup menu crashes 2017-06-17 20:04:33 -04:00
Paul Licameli
293abceb52 comment 2017-06-17 20:02:35 -04:00
Paul Licameli
4264406795 Correct the left edge of sizer between channels 2017-06-17 20:02:35 -04:00
Paul Licameli
f9865f39ef Fix crashes in TCP popup menu items on Windows 2017-06-17 20:02:16 -04:00
Paul Licameli
d7a9c1554e Smarter iterators for all track panel cells, not just track areas 2017-06-17 03:01:58 -04:00
Paul Licameli
91c86fd937 TrackPanelCellIterator visits all cells, and FindCell simply uses it 2017-06-17 03:01:40 -04:00
Paul Licameli
ffbc4d5f90 Simplify iterations over TrackPanelCells with range-for 2017-06-17 03:01:40 -04:00
Paul Licameli
f94ac4dc43 comments 2017-06-17 03:01:40 -04:00
Paul Licameli
fe06ab2dbb Merge branch 'master' into HEAD 2017-06-17 03:01:07 -04:00
Paul Licameli
a6c583e596 fix #include path 2017-06-17 02:12:06 -04:00
Paul Licameli
43d1c774bf Improve focus rectangle on Mac Transport toolbar buttons, all themes 2017-06-16 18:07:43 -04:00
Paul Licameli
8875702c17 Simplifications after the big refactor; improvements in cursor change 2017-06-16 18:05:30 -04:00
Paul Licameli
a94eb75b4e Further regularize the odd case of hit-test on the resizer region 2017-06-16 18:05:09 -04:00
Paul Licameli
34026d19fd Still better cursor handling: change cursor at once...
... on start or stop of transport, in cases as described in the previous
commit comment, even if the pointer does not move.
2017-06-16 18:05:08 -04:00
Paul Licameli
d9a91c1431 TrackPanel simplifications; improved cursor handling...
... in cases such as:  dragging an envelope point, then hitting space to play,
which forces the drag to finish early.  If you move the mouse, cursor will
remain "ban", even while the mouse button remains down but no drag is really
happening.
2017-06-16 18:05:08 -04:00
Paul Licameli
114f5a4a63 Simplify ToolsToolBar::SetCurrentTool 2017-06-16 18:05:08 -04:00
Paul Licameli
41a56441dc Remove unnecessary "virtual" 2017-06-16 18:05:08 -04:00
Paul Licameli
ef9e6465d0 Use override 2017-06-16 18:05:08 -04:00
Paul Licameli
d6b430c262 Remove unused function 2017-06-16 18:05:07 -04:00
Paul Licameli
f858a7bd9c Correct boundaries of the background cell 2017-06-16 18:05:07 -04:00
Paul Licameli
773dad3221 Merge branch 'master' into HEAD 2017-06-16 18:04:47 -04:00
James Crook
453be640e8 Bigger + and - on zoom buttons in Light Theme.
This is deviating slightly from the Google Material Icon design.  It can be argued that the bolder + and - are needed at this smaller size.
2017-06-16 22:22:18 +01:00
Paul Licameli
3edc331d2d Slight change to backgrounds of Light theme Mac Transport buttons...
... Copied the top and bottom single rows of pixels from the corresponding
three images (MacUpButton, MacDownButton, MacHiliteButton) in Classic theme.

Because the previous images were a bit pinkish at the bottom and darkish at the
top and looked just a little bit wrong.
2017-06-16 11:58:46 -04:00
James Crook
b293ad0b50 Fix 'black spot' issue on buttons.
100% transparent black was appearing as black.  Now it appears as the background colour.
AButton backgrounds now support alpha channel, which they did not before.
2017-06-16 15:38:48 +01:00
James Crook
b24560a134 Completion of FocusRect fix.
Fix is needed on Mac too.
2017-06-16 15:37:06 +01:00
James Crook
d2187b42cc Make FocusRect visible on Dark Themes.
Now uses clrTrackPanelText for the focus rect dots.
2017-06-16 14:50:50 +01:00
James Crook
e9f525defa Fix Windows build.
Was missing NoteTrackSliderHandles.cpp/,h
2017-06-16 09:34:07 +01:00
Paul Licameli
8629363914 Fix keystroke handling in TrackPanel (such as Shift+M) 2017-06-15 22:09:30 -04:00
Paul Licameli
a00b1935d7 Fix keystroke handling in TrackPanel (such as Shift+M) 2017-06-15 22:09:11 -04:00
Paul Licameli
d7bdaf8eaa Merge branch 'master' into HEAD 2017-06-15 22:08:51 -04:00
Steve Daulton
333c0e3440 Fix for bug 1653 (Nyquist *Table* size limit)
as suggested by RBD in comment #1
2017-06-15 21:46:11 +01:00
Paul Licameli
1abd2b97df Fix WaveTrack menu (ID collision, item names, enabling) 2017-06-15 11:02:51 -04:00
Paul Licameli
c1612d6842 Fix WaveTrack menu (ID collision, item names, enabling) 2017-06-15 11:02:28 -04:00
Paul Licameli
6eac877de6 The great object-oriented rewrite of TrackPanel event handling! ...
... and some parts of drawing too (snap lines and zoom boxes)

Many new source files

No UI changes intended, except:

   small changes in drawing zoom boxes (hide narrow enough boxes)
   update display of selection as you drag the selected label (not just at
      mouse up)
   status bar preview messages for clicks on cutlines or clip boundaries
   ESC key is implemented for all drags -- including now those which would
      make new Undo items if they completed -- and in all cases, "should"
      restore the state of the project as it was at button-down, though some
      details are not yet right for restoring the set of selected tracks

A TrackPanelCell abstract class dispatches keystroke and mousewheel events;
subclasses for vertical rulers, track control panels, and tracks provide
overrides.

TrackPanelCell also has a hit test routine that returns a status message,
a preview cursor, and an object that inherits from abstract class UIHandle.

UIHandle in turn implements policies for click, drag, release, ESC key,
drawing of extra decorations during drag, and cursor and status message changes
during drag.

There are eighteen (immediate) subclasses of UIHandle, for:

   Note track channel buttons
   Other pushbuttons (close, menu, mute, solo, minimize)
   Sliders (pan, gain, velocity)
   Note track stretch
   Selections (new, extended with Shift, spectral)
   Envelope editing
   Sample editing
   Zoom tool
   Time shift
   Wave track vertical ruler clicks and drags
   Note track vertical ruler clicks and drags
   Clicking a cutline or clip boundary
   Dragging or stretching a label
   Clicking a label box and selecting text within it
   Other clicks on Label track
   Resizing a track or channels of a stereo track
   Clicking TCP to select and dragging to rearrange tracks
   Click on the empty area, to deselect all tracks

A few of these have effects at button-down; others not until button up, and
such have ESC key implemented.

Perhaps it would be better that all clicking actions are consistently delayed
until button up?
2017-06-15 08:55:00 -04:00
Paul Licameli
38854366a3 Update src/Makefile.in...
... just once for this branch.  Intermediate commits may not build on Linux
unless you regenerate src/Makefile.in for them.
2017-06-15 08:55:00 -04:00
Paul Licameli
770b3b52ef TrackPanel no longer implements the selection tool or MIDI stretch...
This one's big!

Also restores the effect of ctrl-click on label track.

Also adds ESC key handling for the Stretch.
2017-06-15 08:54:59 -04:00
Paul Licameli
efdb9889b1 TrackPanel no longer implements label keystrokes, drags, text selection...
... also implemented ESC key for those drags

... temporarily loses the special CTRL click handling
2017-06-15 08:54:58 -04:00
Paul Licameli
bbfa574790 Move track resizing code out of TrackPanel.cpp, though it still...
... cooperates more closely with TrackPanel than the other UIHandle subclasses
do.
2017-06-15 08:54:58 -04:00
Paul Licameli
703abe87bc TrackPanel no longer implements track selection click or rearrange drag...
... also implement ESC key for the drag
2017-06-15 08:54:57 -04:00
Paul Licameli
46b97084eb Move note track control panel click handling out of TrackPanel.cpp 2017-06-15 08:54:55 -04:00
Paul Licameli
e4627b1668 TrackPanel no longer implements other mouse wheel actions 2017-06-15 08:21:42 -04:00
Paul Licameli
8ef5f696d8 Define BackgoundCell, move some things into it 2017-06-15 08:21:41 -04:00
Paul Licameli
674ccc5e15 Clean up last bits of old popup menu code 2017-06-15 08:21:40 -04:00
Paul Licameli
91e6239eeb Move code for vertical ruler clicks, drags, popup menus, scroll wheel 2017-06-15 08:21:40 -04:00
Paul Licameli
a313bcdb11 Move code for Wave track menu items 2017-06-15 08:21:40 -04:00
Paul Licameli
ba5f6ce411 Move code for Note track menu items 2017-06-15 08:21:39 -04:00