Paul Licameli
3eee8b8cf0
Rewrite many iterations over tracks and channels in src/import, src/export
2018-10-01 11:24:50 -04:00
Paul Licameli
c7ab9f2338
Rewrite many iterations over tracks and channels in src/commands
2018-10-01 11:24:37 -04:00
Paul Licameli
23a85893a1
Rewrite some iterations over tracks and channels in TrackPanel
2018-10-01 11:24:25 -04:00
Paul Licameli
aee4005044
Rewrite many iterations over tracks and channels in src/effects
2018-10-01 11:24:04 -04:00
Paul Licameli
b94e8fec96
Remove VisibleTrackIterator
2018-10-01 11:20:52 -04:00
Paul Licameli
ae2ce1ad90
Rewrite many iterations over tracks and channels in Project.cpp
2018-10-01 11:19:54 -04:00
Paul Licameli
d01013e0d0
Rewrite many iterations over tracks and channels in Menus.cpp
2018-10-01 11:19:35 -04:00
Paul Licameli
1e32309d24
Rewrite MenuCommandHandler::HandleAlign
2018-10-01 11:19:18 -04:00
Paul Licameli
b6a6b8e73e
Rewrite iterations over sync-lock groups
2018-10-01 11:09:20 -04:00
Paul Licameli
bb3aa00f50
Effect::CopyInputTracks was only called with two values...
...
So now it simply takes a bool.
2018-10-01 11:06:31 -04:00
Paul Licameli
2e11844f6a
Effect::inputTracks() now gives only const access
2018-10-01 10:59:48 -04:00
Paul Licameli
1be3187b99
Use TrackIterRange::Visit
2018-10-01 10:59:24 -04:00
Paul Licameli
17089d03bf
Rewrite MenuCommandHandler::OnPaste with TypeSwitch and new iterators
2018-10-01 10:59:09 -04:00
Paul Licameli
51842fc78b
Use TypeSwitch and track_cast
2018-10-01 10:58:47 -04:00
Paul Licameli
fd10ed26cd
Use TypeSwitch and track_cast in TrackPanel
2018-10-01 10:58:33 -04:00
Paul Licameli
e17c4acd5d
Rewrite sorting of tracks
2018-10-01 10:54:37 -04:00
Paul Licameli
48f5bd7353
Rewrite details of Track, TrackList with new iterators and track_cast
2018-10-01 10:54:27 -04:00
Paul Licameli
1a59ba6331
Simplify some internals of TrackList, don't assume at most 2 channels
2018-10-01 10:54:14 -04:00
Paul Licameli
7ec734b087
Rewrite TrackList::SwapNodes without GetLink(ed)
2018-10-01 10:54:04 -04:00
Paul Licameli
b05c32e2ac
Remove some things from Track.h, replacing their uses with new iterators
2018-10-01 10:50:34 -04:00
Paul Licameli
05ddfaf82b
Remove TrackList::Select
2018-10-01 10:47:51 -04:00
Paul Licameli
5c6fd64a0e
TrackList::GetPrev and ::GetNext are private
2018-10-01 10:44:58 -04:00
Paul Licameli
a0e15cfbbd
Remove TrackListIterator::RemoveCurrent
2018-10-01 10:42:02 -04:00
Paul Licameli
89748cbe3c
Remove "skiplinked" argument of old track iterators
2018-10-01 10:35:46 -04:00
Paul Licameli
d19695022a
Add new-style track_cast, iterators, and TypeSwitch for Track
2018-10-01 10:32:50 -04:00
Paul Licameli
52848e4483
Define Track::TypeSwitch for type-safe dispatching
2018-10-01 10:32:48 -04:00
Paul Licameli
a3cdb08ee0
Classes and functions for type-safe iteration over tracks
2018-09-29 22:17:55 -04:00
Paul Licameli
6a9f9d7899
Define track_cast, like dynamic_cast...
...
... but perhaps faster using our custom type-query method.
2018-09-29 21:41:47 -04:00
Paul Licameli
6930b63192
Redo track kind as an enum class defined at global scope
2018-09-29 21:41:47 -04:00
James Crook
e7c4e8bde9
Help intellisense find MenuCommandHandlers
...
Once the struct definition is in the Menus.h file, intellisense can find the definitions of the functions.
2018-09-29 22:56:34 +01:00
James Crook
5c5253e147
More to remove with -j4.
2018-09-29 19:49:27 +01:00
James Crook
9912fd6774
Remove -j4
...
The -j4 is a faster variation for multicore machines.
2018-09-29 19:43:45 +01:00
Paul Licameli
aea04dcabf
Reorganize time-shifting code, no behavior change intended
2018-09-29 14:18:19 -04:00
Paul Licameli
4998a5cea5
Rearrange some logic in TimeShiftHandle::Click
2018-09-29 14:13:30 -04:00
Paul Licameli
68eb24545b
More factoring of TimeShiftHandle::Drag
2018-09-29 14:12:54 -04:00
Paul Licameli
d812513979
More factoring of TimeShiftHandle::Drag
2018-09-29 14:11:50 -04:00
Paul Licameli
fc5f7331d1
More factoring of TimeShiftHandle::Drag
2018-09-29 14:08:40 -04:00
Paul Licameli
aa3c3a8d5a
More factoring of TimeShiftHandle::Drag
2018-09-29 14:07:23 -04:00
Paul Licameli
37b3968dd6
Some factoring of TimeShiftHandle::Drag
2018-09-29 14:06:00 -04:00
Paul Licameli
b79f5d9291
Simplification and better comments relating to time-shift...
...
... fewer switches on USE_MIDI. In fact capturedClipArray is nonempty
whenever capturedClip is not null.
2018-09-29 13:55:34 -04:00
Paul Licameli
4a55b0d0cc
Remove unused functions
2018-09-29 13:55:34 -04:00
Paul Licameli
debf96028e
Provide missing piece of menu refactor, commit 9481587
2018-09-29 13:54:42 -04:00
Nikitich
45bccbe5f5
Russian translation update
2018-09-29 18:51:57 +01:00
森の子リスのミーコの大冒険
42a69f955e
Japanese translation update
2018-09-29 18:51:57 +01:00
Olivier Humbert
0041e2fb65
French translation update
2018-09-29 18:51:56 +01:00
Paul Licameli
920970c7c0
Enable snapping to other tracks, time-shifting with Shift key down...
...
...It seems that was inadvertently disabled when note tracks were first added.
Also remove unnecessary #ifdef branch.
2018-09-29 13:26:04 -04:00
Paul Licameli
2ff75acffa
Remove transform_iterator and related, no clear need for it yet
2018-09-29 12:58:41 -04:00
Paul Licameli
d6dea3d224
Correct transform_iterator ?
2018-09-29 12:57:57 -04:00
Paul Licameli
7ab97c969c
Use std::numeric_limits<...>::lowest...
...
... not the negation of max(), which is wrong for unsigned types, and not
min(), which gives least normalized positive value for floating point types.
lowest() wasn't available before C++11.
2018-09-29 12:57:53 -04:00
Paul Licameli
e456b53344
Add and remove some private: and public:
2018-09-29 12:48:52 -04:00