1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-07 15:22:34 +02:00

672 Commits

Author SHA1 Message Date
Paul Licameli
bd0603b66a Remove the duplicate button-drawing functions that are now unused 2017-06-15 08:21:37 -04:00
Paul Licameli
1a317af2f5 Move code for handling the menu button out of TrackPanel, but...
... Still to do, move out the code for menu items.  They remain accessible
from Shift-M but not from the menu button.

And ESC key is now implemented.
2017-06-15 08:21:36 -04:00
Paul Licameli
c3f5fea5fc TrackPanel still draws Miminize and Close, but no longer handles...
clicks on them...

... also implemented ESC key for those drags
2017-06-15 08:21:36 -04:00
Paul Licameli
7cab380192 TrackPanel still draws Velocity, but no longer handles clicks on it...
... also implemented ESC key for that drag
2017-06-15 08:21:35 -04:00
Paul Licameli
a569476e79 TrackPanel still draws Gain and Pan, but no longer handles clicks on them...
... also implemented ESC key for those drags
2017-06-15 08:21:35 -04:00
Paul Licameli
5ee73f944d TrackPanel still draws Mute and Solo, but no longer handles clicks on them...
... also implemented ESC key for those drags
2017-06-15 08:21:34 -04:00
Paul Licameli
f89cbefc7b Temporary hack lets us defer encapsulation of track control panel drawing...
... while we can work on encapsulating the click-drag actions.
2017-06-15 08:21:33 -04:00
Paul Licameli
43968c4ac9 TrackPanel no longer implements clip joining or cutline expansion/deletion...
... also implement ESC key for these and added status bar message for
mouse-over
2017-06-15 08:21:30 -04:00
Paul Licameli
2496b0d7bc TrackPanel no longer implements the envelope tool...
... also implement ESC key for it
2017-06-15 08:21:02 -04:00
Paul Licameli
ef38af71dd Move more time-shifting functions out of TrackPanel.cpp 2017-06-15 08:21:01 -04:00
Paul Licameli
251976d93d TrackPanel no longer implements the time shift tool...
... also implement ESC key for it
2017-06-15 08:21:01 -04:00
Paul Licameli
f1f254f974 TrackPanel no longer implements the draw tool...
... also implement ESC key for it
2017-06-15 08:21:00 -04:00
Paul Licameli
85c03bb3b3 TrackPanel no longer implements the zoom tool...
... Also changed the behavior of drawing of dashed lines: make them
disappear when they approach close enough that right-up will zoom out,
not in.
2017-06-15 08:20:59 -04:00
Paul Licameli
14d45eda33 Define and use the UIHandle and TrackPanelCell protocols, but...
...no actions reimplemented to them yet.

Later commits will move special cases one at a time from TrackPanel, preserving
all click and drag capabilities at each step.  With a few exceptions, but those
lost abilities are restored in yet later commits.  (Ctrl+Click on the Label
track being one.)
2017-06-15 08:20:56 -04:00
Paul Licameli
07b53b4e83 Bug1659: make selection change from pick on label box undo correctly 2017-06-15 08:08:41 -04:00
Paul Licameli
3e38f761f5 Adjust details of hit tests on tracks, labels, vrulers...
... ALWAYS exclude margins from the reported rectangles!  All three cases.

This fixes minor discrepancies between display and interaction in other hit
tests, such as for spectral selection, draw tool, and envelope.
2017-06-14 22:10:26 -04:00
Paul Licameli
fc2a371286 Compilable again without USE_MIDI 2017-06-14 21:16:27 -04:00
Paul Licameli
55dc096896 Lowered check for scrubbing into GetMessageForTool...
... which is called only in one place
2017-06-14 09:22:37 -04:00
Paul Licameli
5982dccd36 Redo layout tables as std::vector 2017-06-13 19:05:50 -04:00
Paul Licameli
063c6c236f Table includes draw functions for status items 2017-06-13 18:57:34 -04:00
Paul Licameli
ce77f176b5 Table includes draw functions for Mute and Solo 2017-06-13 18:53:26 -04:00
Paul Licameli
4df84f126e Table includes draw functions for sliders 2017-06-13 14:02:10 -04:00
Paul Licameli
329aa8393e Table includes draw function for Midi controls 2017-06-13 14:02:10 -04:00
Paul Licameli
86763341af Table includes draw function for Minimize and Sync-lock icon 2017-06-13 14:02:10 -04:00
Paul Licameli
b4e38c2838 Table includes draw function for Close and Title 2017-06-13 14:02:09 -04:00
Paul Licameli
ba014f042a Add a slot for drawing functions to the TCP lines table 2017-06-13 14:01:37 -04:00
Paul Licameli
e554f0cdc6 TrackPanel::HasSoloButton is static and public 2017-06-13 14:01:37 -04:00
Paul Licameli
98b24cd6b9 Redo calculation of default track heights 2017-06-13 14:01:36 -04:00
Paul Licameli
18b3bc0600 Separate functions defining the horizontal bounds of TCP items 2017-06-13 14:01:36 -04:00
Paul Licameli
b15bf441ec Static TrackInfo slider accessors, const Track* arguments 2017-06-13 14:01:36 -04:00
Paul Licameli
1d1dded9ba TrackInfo::SetTrackInfoFont is static 2017-06-13 14:01:36 -04:00
Paul Licameli
a4e57fc45e Calculate font size for title button as before 2017-06-13 14:00:14 -04:00
Paul Licameli
1620feb849 Simplify macros 2017-06-12 22:05:22 -04:00
Steve Daulton
3197a6a17e Tweak TCP for Mac 2017-06-13 01:06:19 +01:00
Steve Daulton
f298bfc4dd Move track info below track controls 2017-06-12 18:47:41 +01:00
Paul Licameli
bf3f041abe Make TrackInfo routines that calculate rectangles static 2017-06-12 13:34:50 -04:00
Paul Licameli
e2d77b399d Move one more selection function out of TrackPanel 2017-06-11 16:14:26 -04:00
Paul Licameli
d834bcdbd1 Move some command handlers for selection and focus out of TrackPanel 2017-06-11 11:03:28 -04:00
Paul Licameli
a9f7cb26e7 Move selection state into AudacityProject, out of TrackPanel 2017-06-11 10:40:55 -04:00
Paul Licameli
4da881d1db Define and use SelectionStateChanger 2017-06-11 10:40:50 -04:00
Paul Licameli
a594207265 Define class SelectionState; move some TrackPanel functions into it 2017-06-11 10:22:52 -04:00
Paul Licameli
986f158efa Update mixer board for selection state change if MIDI tracks too...
... when EXPERIMENTAL_MIDI_OUT defined
2017-06-11 09:26:58 -04:00
Paul Licameli
a3037b5734 Move drawing of snap guidelines out of TrackPanel.cpp 2017-06-10 20:48:02 -04:00
Paul Licameli
06e51ba075 Remove recursion in DrawMuteSolo...
... its purpose was not clear.  Comment suggests state update is combined with
drawing, which isn't so and shouldn't be.

So far as I can tell, all it did was make the Mute button flicker, if you
clicked on it and dragged, while the Solo button was up, AND playback or
recording was in progress.  But why?
2017-06-10 14:27:58 -04:00
Paul Licameli
48ee622c1d i18n-hint comments were wrongly swapped! 2017-06-10 14:27:18 -04:00
Paul Licameli
9363432b76 Remove an #include 2017-06-10 12:00:42 -04:00
James Crook
d8a71c40eb Tweak TCP minimize button Position
It now doesn't impinge on the bottom edge of the TCP, and it is left aligned flush with the left edge.
Minimum track height increased accordingly.
2017-06-10 10:10:38 +01:00
James Crook
c11fd1d63f Fix positioning of solo button.
- No longer jumps right when clicked.
- Right edge is now aligned with track name drop down right edge.
- When using just a mute button, the (larger) button is centered.
2017-06-09 14:28:38 +01:00
Paul Licameli
3d54d912c0 some i18n-hint comments 2017-06-08 16:02:28 -04:00
Paul Licameli
010217d83c some i18n-hint comments 2017-06-08 15:41:29 -04:00