mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-23 23:03:55 +02:00
Added Space-Saver meters. These are now the default.
Fixed ResetToolbars so that SpectralSelectionBar is not shown after a reset.
This commit is contained in:
@@ -130,7 +130,7 @@ class ToolFrame:public wxFrame
|
||||
width += sizerW;
|
||||
}
|
||||
|
||||
SetSize( width + 2, bar->GetMinSize().y + 2 );
|
||||
SetSize( width + 2, bar->GetDockedSize().y + 2 );
|
||||
|
||||
// Attach the sizer and resize the window to fit
|
||||
SetSizer( s );
|
||||
@@ -490,18 +490,18 @@ void ToolManager::Reset()
|
||||
floater = bar->GetParent();
|
||||
}
|
||||
|
||||
if (ndx == SelectionBarID
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
|| ndx == SpectralSelectionBarID
|
||||
#endif
|
||||
)
|
||||
if (ndx == SelectionBarID )
|
||||
{
|
||||
dock = mBotDock;
|
||||
|
||||
wxCommandEvent e;
|
||||
bar->GetEventHandler()->ProcessEvent(e);
|
||||
}
|
||||
else if( ndx == MeterBarID )
|
||||
else if( ndx == MeterBarID
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
|| ndx == SpectralSelectionBarID
|
||||
#endif
|
||||
)
|
||||
{
|
||||
dock = NULL;
|
||||
}
|
||||
@@ -650,6 +650,13 @@ void ToolManager::ReadConfig()
|
||||
bar->Create( mBotDock );
|
||||
}
|
||||
|
||||
// Set the width and height
|
||||
if( width[ ndx ] != -1 && height[ ndx ] != -1 )
|
||||
{
|
||||
wxSize sz( width[ ndx ], height[ ndx ] );
|
||||
bar->SetSize( sz );
|
||||
}
|
||||
|
||||
#ifdef EXPERIMENTAL_SYNC_LOCK
|
||||
// Set the width
|
||||
if( width[ ndx ] >= bar->GetSize().x )
|
||||
|
Reference in New Issue
Block a user