1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 08:27:13 +01:00

Move functions into new file SelectUtilities.cpp ...

... so that other files do not have link dependency on SelectMenus.cpp

The new file enlarges the big s.c.c. to 24
This commit is contained in:
Paul Licameli
2019-06-21 19:38:38 -04:00
parent fab648e475
commit 02e620d35f
17 changed files with 216 additions and 160 deletions

View File

@@ -14,6 +14,7 @@
#include "../ProjectSettings.h"
#include "../PluginManager.h"
#include "../ProjectWindow.h"
#include "../SelectUtilities.h"
#include "../ShuttleGui.h"
#include "../TimeTrack.h"
#include "../TrackPanel.h"
@@ -822,7 +823,7 @@ void OnNewWaveTrack(const CommandContext &context)
auto rate = settings.GetRate();
auto t = tracks.Add( trackFactory.NewWaveTrack( defaultFormat, rate ) );
SelectActions::SelectNone( project );
SelectUtilities::SelectNone( project );
t->SetSelected(true);
@@ -845,7 +846,7 @@ void OnNewStereoTrack(const CommandContext &context)
auto defaultFormat = settings.GetDefaultFormat();
auto rate = settings.GetRate();
SelectActions::SelectNone( project );
SelectUtilities::SelectNone( project );
auto left = tracks.Add( trackFactory.NewWaveTrack( defaultFormat, rate ) );
left->SetSelected(true);
@@ -872,7 +873,7 @@ void OnNewLabelTrack(const CommandContext &context)
auto t = tracks.Add( trackFactory.NewLabelTrack() );
SelectActions::SelectNone( project );
SelectUtilities::SelectNone( project );
t->SetSelected(true);
@@ -898,7 +899,7 @@ void OnNewTimeTrack(const CommandContext &context)
auto t = tracks.AddToHead( trackFactory.NewTimeTrack() );
SelectActions::SelectNone( project );
SelectUtilities::SelectNone( project );
t->SetSelected(true);