Paul Licameli
46f38708ed
Dir manager uses std::shared_ptr
2016-08-13 12:23:05 -04:00
Paul Licameli
6e4e710d3b
Remove seeming naked new and deletes in comments and uncompiled code
2016-08-10 11:05:51 -04:00
Paul Licameli
13e056de43
More uses of safenew
2016-08-08 10:07:37 -04:00
Paul Licameli
9b7e66b30f
Bug1442 again: Fix TAB cycle through labels, special case...
...
... of a point label exactly at zero, with or without other labels.
2016-07-13 14:17:14 -04:00
Paul Licameli
f1799521aa
Bug1349 again: Fix export and import of no-name labels
2016-07-12 22:16:15 -04:00
Paul Licameli
26676652d7
Bug1443 again: Mac label shift-click should differ, per David Bailes
2016-07-12 12:13:08 -04:00
Paul Licameli
cb3e5e6d4f
Bug1443: Various odd behavior of label text editor, fixed...
...
... And label track selection code is simpler to understand, without delayed
side effects happening during drawing.
Left and right arrow keys collapse text range selection correctly
Shift-click adjusts the end of selection nearest the pick
Right (and middle) click and drag do not affect the selection
Copying empty selection has no effect on the clipboard
Left-drag behaves independently of previous selection state
2016-07-11 19:01:28 -04:00
Paul Licameli
3b7e61fc6e
Export and import the frequency information in labels
2016-07-10 20:02:14 -04:00
Paul Licameli
ac2730170d
Import and Export are methods of LabelStruct
2016-07-10 20:02:14 -04:00
Paul Licameli
519f4d6cf6
Simplify the label import routine
2016-07-10 20:02:14 -04:00
Paul Licameli
2543eacd94
Bug1442: fix cyclic TAB navigation among labels...
...
... with this small difference from 2.1.2 behavior: when no label is
highlighted, the selection becomes empty.
2016-07-10 17:23:26 -04:00
Paul Licameli
c8d5905bd3
Clean up conflict markers in commented-out code
2016-07-10 15:37:32 -04:00
Paul Licameli
e39206b81b
Clean up conflict markers in commented-out code
2016-07-10 15:36:59 -04:00
Steve Daulton
cad6dc8dd6
include <algorithm> to fix Linux build
2016-07-10 16:59:41 +01:00
Paul Licameli
0857118916
Put labels directly in a vector, not pointers to them...
...
... but this brings back some "mutable" members, not in LabelTrack, but in
LabelStruct.
To make that go away, and still have the Draw function const, figure out how to
update the label track layout at the right times, outside of the draw function.
2016-07-10 03:21:06 -04:00
Paul Licameli
590d492782
Simplify iterations over labels
2016-07-10 03:21:06 -04:00
Paul Licameli
6e772a3569
Use stl container idioms
2016-07-10 03:21:05 -04:00
Paul Licameli
7c07cb3b42
Avoid repeated subexpressions accessing labels
2016-07-10 03:21:05 -04:00
Paul Licameli
8fefea6d36
Rewrite LabelTrack::SortLabels
2016-07-10 03:21:05 -04:00
Paul Licameli
15bb2f0434
Lower a piece of text box dragging logic out of TrackPanel...
...
... This might cause more redrawing of label tracks for left click without
Shift, but who cares.
2016-07-10 03:21:05 -04:00
Paul Licameli
815d75b305
LabelTrack::HandleClick rearranged
2016-07-10 03:21:05 -04:00
Paul Licameli
7060dc4088
Simplify cut, copy, paste, delete routines of LabelTrack
2016-07-10 03:21:05 -04:00
Paul Licameli
d99c8abcf2
Various simplifications of LabelTrack code
2016-07-10 03:21:05 -04:00
Paul Licameli
7055a0f7c0
Remove two more unnecessary LabelTrack members; no more mutables!
2016-07-10 03:21:05 -04:00
Paul Licameli
06fd481815
Don't need to delay certain state changes of LabelTrack until drawing
2016-07-10 03:21:05 -04:00
Paul Licameli
7a7379c6fc
Label text coordinate calculations don't need a window
2016-07-10 03:21:05 -04:00
Paul Licameli
f01fc64a2d
More safenew, const functions, remove unnecessary members
2016-07-10 03:21:05 -04:00
Paul Licameli
53e30e5533
Label context menu can bring up the edit dialog
2016-06-26 13:34:52 -04:00
Paul Licameli
39063fba94
Guarantee default selection shows in Label Track's Font listbox...
...
On my Macintosh, with no audacity.cfg, selection is Lucida Grande when the
dialog opens.
Formerly, I saw no selection.
2016-06-23 13:45:22 -04:00
Paul Licameli
d787703fd9
foo
2016-06-23 12:40:37 -04:00
Paul Licameli
3015a9c8d9
Track cut and copy functions return a unique_ptr argument...
...
... Because they are factory functions.
2016-03-26 11:50:13 -04:00
Paul Licameli
5ef4dd46a5
TrackFactory functions return std::unique_ptr, although some callers...
...
... release() them for now.
2016-03-26 11:50:12 -04:00
Paul Licameli
f42a953752
Track duplication methods return unique_ptr, although some callers...
...
... simply release() them for now.
2016-03-26 11:50:10 -04:00
Paul Licameli
48a5f55179
More const qualifiers, for copying of tracks, and replacing in lists of tracks
...
... (the tracks may be const, not the list, when replacing)
2016-02-27 17:30:30 -05:00
Paul Licameli
d097c7fad4
More const qualifications. The source of a paste is const.
2016-02-27 12:54:57 -05:00
Paul Licameli
70c1d57591
More const qualifications, and mutables, for functions that draw tracks...
...
... The display related members that had to become mutable are probably
ones that don't belong in the track classes, ultimately.
2016-02-27 12:35:17 -05:00
Paul Licameli
ba4006a454
Removed unused functions of LabelTrack, but was there an error?
2016-02-26 12:35:28 -05:00
Paul Licameli
a5b6c9fd8f
Add some const qualifiers; define TrackListConstIterator
2016-02-24 19:10:39 -05:00
Paul Licameli
cd9bd79d83
Use an enumeration for UndoManager::PushState
2016-02-24 19:10:35 -05:00
Paul Licameli
73ced7b93f
Remove UndoManager.h from other headers
2016-02-24 19:10:34 -05:00
Paul Licameli
dbaa811577
Stack-allocate where possible! ...
...
... Removed many unnecessary naked news and deletes.
2016-02-17 18:15:57 -05:00
Paul Licameli
7c4c45a0d5
"new"->"NEW" in comments, easier to find remaining naked operator new
2016-02-14 18:52:41 -05:00
Paul Licameli
56e7653343
"delete"->"DELETE" in comments, easier to find remaining naked operator delete
2016-02-14 18:50:45 -05:00
Paul Licameli
39399d6d8c
Bug30: Safer fix avoids crashes!
2016-01-23 11:35:37 -05:00
Paul Licameli
116ea61d11
Bug30: During playback, after CTRL+M, chars, ENTER -- restore track focus.
2016-01-21 10:18:41 -05:00
Paul Licameli
f5f436a3d1
Define LabelTrack::OverATextBox for future use
2015-08-29 13:49:54 -04:00
Paul Licameli
439fdc66ff
weaken dependency of TrackPanel.cpp on LabelTrack.h, a bit
2015-08-23 19:02:06 -04:00
Paul Licameli
684bd0285c
Replace some unexplained magic numbers with constants, add comments...
...
... This commit changes no behavior, fixes no bugs
2015-08-21 00:35:04 -04:00
Leland Lucius
b2b23f1250
Hopefully the last round of keyboard handling changes
2015-08-15 21:52:30 -05:00
Paul Licameli
5dd4cac5bd
travis
2015-08-10 20:27:38 -04:00