Paul Licameli
d50dae4dd2
Bug2279 fix reimplemented...
...
... Don't hard-code the number of sub-views as two.
This modifies the fix at commit 596fd7c02f487aac65046c0ec46d680d69ee21e8
2020-01-09 14:01:12 -05:00
James Crook
7f8905be8e
Bug 2278 - Changes in Spectrogram Settings dialog change Multi-view to a 100:0 Spectrogram
...
Fix needs to be reviewed by Paul in case the code I commented out actually IS needed.
2020-01-09 16:20:48 +00:00
James Crook
57ff92b20c
Bug 2275 - Crash when unchecking Multi-view with neither of the views checked
2020-01-09 15:56:00 +00:00
James Crook
e047c07a90
Bug 2282 - Multi-view: Array out of bounds exception (crash)
2020-01-09 15:13:36 +00:00
James Crook
596fd7c02f
Bug 2279 - Multi-view: turning it on does not cause a split Multi-view to be displayed
2020-01-09 14:04:31 +00:00
Paul Licameli
05e24ec760
Remove unused declaration
2020-01-08 19:53:02 -05:00
Paul Licameli
66fd95f3d6
Rewrite the path through NyquistEffect, in the case that...
...
... you use the prompt, and you enter a complete script with control comments
that are reinterpreted to put up a second dialog.
This simplifies Effect::Delegate() and avoids mutual recursion of ShowInterface
with DoEffect.
2020-01-08 16:48:37 -05:00
Paul Licameli
e8c8db8b33
Parent and dialog factory arguments of Effect::DoEffect are optional
2020-01-08 16:47:21 -05:00
Paul Licameli
04a9ce8ba6
Remove some GetActiveProject calls in CommandManager.cpp ...
...
... The remaining ones, for use in a global event handler, are appropriate
2020-01-08 13:20:00 -05:00
SteveDaulton
8fc6f340b5
Fix incorrect type
2020-01-08 15:43:04 +00:00
David Bailes
d22edcbc10
Keyboard scrubbing: change some of the parameters
...
Changes to some of the parameters, based on user feedback.
2020-01-08 09:05:53 +00:00
Paul Licameli
a178f0df09
another null check on GetActiveProject
2020-01-07 18:45:56 -05:00
Paul Licameli
4385326e9d
Fewer calls to Effect::FindProject when only rate is needed
2020-01-07 18:38:56 -05:00
Paul Licameli
314ede2137
Don't store default sample format in ProjectSettings...
...
... it's a global preference.
2020-01-07 18:36:34 -05:00
Paul Licameli
7532677781
Revert "Don't store default sample format in ProjectSettings..."
...
This reverts commit 44d9916f8524b49211c0df28e177ae960d2c7dc4.
2020-01-07 18:36:28 -05:00
Paul Licameli
44d9916f85
Don't store default sample format in ProjectSettings...
...
... it's a global preference.
2020-01-07 18:22:38 -05:00
Paul Licameli
ea8a3efc8e
Remove various uses of GetActiveProject
2020-01-07 17:16:37 -05:00
Paul Licameli
32d2d2390f
Eliminate GetActiveProject from MixerBoard, Snap, Meter
2020-01-07 17:06:23 -05:00
Paul Licameli
0c2c6c5da3
Eliminate GetActiveProject from Track.cpp
2020-01-07 16:45:37 -05:00
Paul Licameli
515e1277bf
Eliminate GetActiveProject from Menus.cpp
2020-01-07 16:42:05 -05:00
Paul Licameli
545fab88dd
Eliminate GetActiveProject from ScreenshotCommand
2020-01-07 16:32:52 -05:00
Paul Licameli
54542c532f
Eliminate GetActiveProject from FreqWindow.cpp
2020-01-07 16:16:18 -05:00
Paul Licameli
15d7d4271d
Eliminate GetActiveProject from src/ondemand
2020-01-07 16:16:18 -05:00
Paul Licameli
852c07bc58
Eliminate GetActiveProject from WaveTrack.cpp
2020-01-07 16:16:18 -05:00
Paul Licameli
7bce0a643b
Bug2281: Revert changes to FreqWindow.cpp at f0b7583, don't crash
2020-01-07 13:11:24 -05:00
SteveDaulton
8b1ecf03a4
Fix bug 2280
2020-01-07 16:47:50 +00:00
Leland Lucius
e4fda3ad3e
Workaround for bug #2264
...
Reverting back to previous behavior to get proper
escaping.
2020-01-06 22:01:08 -06:00
Paul Licameli
80025d9a57
Eliminate uses of GetActiveProject in src/effects and src/tracks
2020-01-06 14:14:44 -05:00
Paul Licameli
a93c4472f5
TrackList has back-pointer to project...
...
... and Track::GetOwner() is publicized, so that now you can find the
the AudacityProject, if any, that owns a given Track; this will help eliminate
some uses of GetActiveProject
2020-01-06 14:14:21 -05:00
Paul Licameli
6a0aed3884
Eliminate uses of GetActiveProject in src/effects
2020-01-06 14:14:21 -05:00
Paul Licameli
e2adccb461
Don't use GetActiveProject drawing pan, gain, velocity sliders
2020-01-06 14:14:21 -05:00
Paul Licameli
d244b55709
Don't use GetActiveProject when drawing label track
2020-01-06 14:14:21 -05:00
Paul Licameli
c7984a2c83
Fix mistaken usage of ProjectSettings
2020-01-06 13:48:51 -05:00
Paul Licameli
79bc14b2cf
Eliminate GetActiveProject in EffectUI.cpp, with some behavior changes
2020-01-06 11:30:48 -05:00
Paul Licameli
ed9871d6b5
Eliminate GetActiveProject in EffectUI.cpp...
...
... This changes visible behavior.
If a realtime effect was open (say, AUGraphicEQ on Mac), and there were multiple
projects, then the window was associated with one of the projects.
But the "Apply" button could apply the effect to the active project, even if
that was not the associated one. But the associated project was queried for
the existence of a selection.
Now, EffectUIHost::OnApply consistently examines and changes only the associated
project, even if it is not active.
You have to close the window and reopen it with the other project if you really
want to change the other.
You can't have two realtime effects open at once, even if for different
projects. To overcome that limitation, we would have to make
RealtimeEffectsManager store state per-project, not globally.
2020-01-06 11:30:48 -05:00
Paul Licameli
723c5256c0
Don't call GetActiveProject when constructing EffectUIHost...
...
... relying on guarantees in the previous commit
2020-01-06 11:30:47 -05:00
Paul Licameli
bb26b2f2c4
Require a ProjectWindow as ancestor of effect dialog...
...
... by passing parent as reference, not pointer, and testing in the dialog
factory function.
This is important so that we know the lifetime of an effect dialog, even when
it is non-modal, is bounded by the lifetime of the associated project.
2020-01-06 11:30:47 -05:00
Leland Lucius
f50171ed00
Fix a couple of comments
2020-01-06 09:03:45 -06:00
Leland Lucius
777cc0a14e
Add comment on how to force cache recreation
2020-01-06 01:25:02 -06:00
Leland Lucius
cbdefbc876
Add Github CI build
...
If at any point this needs to be disabled, go into
"Settings -> Actions" for the Github Audacity project and
select the "Disable Actions for this repository" radio button.
Or, edit build.yml and follow the instructions at the top to
disable the action.
2020-01-06 01:22:31 -06:00
Leland Lucius
2803bc30a6
Fix Windows build
...
2>c:\users\yam\documents\aud\audacity\src\effects\effectui.h(215): warning C4099: 'CommandContext': type name first seen using 'class' now seen using 'struct'
...
2>BatchCommands.obj : error LNK2019: unresolved external symbol "bool __cdecl EffectUI::DoEffect(class wxString const &,class CommandContext const &,unsigned int)" (?DoEffect@EffectUI@@YA_NABVwxString@@ABVCommandContext@@I@Z) referenced in function "public: bool __thiscall MacroCommands::ApplyEffectCommand(class wxString const &,class TranslatableString const &,class TaggedIdentifier<struct CommandIdTag,0> const &,class wxString const &,class CommandContext const &)" (?ApplyEffectCommand@MacroCommands@@QAE_NABVwxString@@ABVTranslatableString@@ABV?$TaggedIdentifier@UCommandIdTag@@$0A@@@0ABVCommandContext@@@Z)
2>PluginMenus.obj : error LNK2001: unresolved external symbol "bool __cdecl EffectUI::DoEffect(class wxString const &,class CommandContext const &,unsigned int)" (?DoEffect@EffectUI@@YA_NABVwxString@@ABVCommandContext@@I@Z)
2>TrackMenus.obj : error LNK2001: unresolved external symbol "bool __cdecl EffectUI::DoEffect(class wxString const &,class CommandContext const &,unsigned int)" (?DoEffect@EffectUI@@YA_NABVwxString@@ABVCommandContext@@I@Z)
2>C:\Users\Yam\Documents\aud\audacity\win\Debug\Audacity.exe : fatal error LNK1120: 1 unresolved externals
2020-01-06 00:00:14 -06:00
Leland Lucius
2ab995bacf
Allow warnings when building 32-bit portmidi
...
This simply disables "-Werror" for the Debug and Release targets.
2020-01-05 22:46:13 -06:00
Leland Lucius
feef327e05
Partial recommit of Xcode project
...
Recommits most of f1ee1689c695db13ef4cfc159e9a7d6fd4a23ccd
but without the SDKROOT and MACOSX_DEPLOYMENT_TARGET changes.
We will want to make those changes eventually though and must
do so before full testing begins for next release.
2020-01-05 22:44:59 -06:00
Paul Licameli
91515520bc
Remove the nullary override of Effect::Preview
2020-01-05 19:59:30 -05:00
Paul Licameli
b7ddd7dc53
Break a dependency cycle of 3 source files involving Effect.cpp ...
...
... EffectUI (renamed from EffectRack) includes the experimental rack and other
non-experimental dialog handling. It has a one-way dependency on EffectManager,
which uses Effect.
This is also preliminary to removing other calls to GetActiveProject.
2020-01-05 16:12:18 -05:00
Paul Licameli
8bbc22e47a
Cut and paste; EffectManager doesn't need EffectUI; cycle of 3 broken!
2020-01-05 16:11:55 -05:00
Paul Licameli
91c45dd32a
Move static EffectManager::DoEffect into new namespace
2020-01-05 16:11:55 -05:00
Paul Licameli
23a0206d2a
Remove CreateUI; pass dialog factory to effect client instead
2020-01-05 16:11:55 -05:00
Paul Licameli
738c5c5e90
Remove Effect::PromptUser...
...
... it was only a thin wrapper of ShowInterface when not overridden, not
clearly serving a distinct purpose.
2020-01-05 16:11:55 -05:00
Paul Licameli
fb678c0eb8
Remove EffectHostInterface::Apply so Effect doesn't use EffectManager
2020-01-05 16:11:54 -05:00