1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-23 23:03:55 +02:00

Frequency Selection toolbar from Paul Licameli.

Linux/Mac will need new files adding to project, SpectralSelectionBar.cpp, NumericTextCtrl.cpp.
This commit is contained in:
james.k.crook@gmail.com
2014-11-08 15:18:43 +00:00
parent 327bd905de
commit 67d2b274e2
36 changed files with 3050 additions and 2192 deletions

View File

@@ -54,6 +54,7 @@
#include "MeterToolBar.h"
#include "MixerToolBar.h"
#include "SelectionBar.h"
#include "SpectralSelectionBar.h"
#include "ToolsToolBar.h"
#include "TranscriptionToolBar.h"
@@ -412,6 +413,9 @@ ToolManager::ToolManager( AudacityProject *parent )
mBars[ TranscriptionBarID ] = new TranscriptionToolBar();
mBars[ SelectionBarID ] = new SelectionBar();
mBars[ DeviceBarID ] = new DeviceToolBar();
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
mBars[SpectralSelectionBarID] = new SpectralSelectionBar();
#endif
// We own the timer
mTimer.SetOwner( this );
@@ -486,7 +490,11 @@ void ToolManager::Reset()
floater = bar->GetParent();
}
if( ndx == SelectionBarID )
if (ndx == SelectionBarID
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|| ndx == SpectralSelectionBarID
#endif
)
{
dock = mBotDock;
@@ -598,7 +606,12 @@ void ToolManager::ReadConfig()
gPrefs->SetPath( bar->GetSection() );
int defaultDock = ndx == SelectionBarID ? BotDockID : TopDockID;
int defaultDock = (ndx == SelectionBarID
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|| ndx == SpectralSelectionBarID
#endif
)
? BotDockID : TopDockID;
if( ndx == MeterBarID )
defaultDock = 0;
// Read in all the settings