1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 15:39:27 +02:00

ShuttleGui::AddSpace takes prop argument...

... This will be needed to rewrite EffectRack
This commit is contained in:
Paul Licameli 2017-10-26 23:34:42 -04:00
parent f825c32a50
commit 7d38500ecf
2 changed files with 7 additions and 4 deletions

View File

@ -2419,12 +2419,15 @@ void ShuttleGui::AddStandardButtons(long buttons, wxWindow *extra)
EndVerticalLay();
}
wxSizerItem * ShuttleGui::AddSpace( int width, int height )
wxSizerItem * ShuttleGui::AddSpace( int width, int height, int prop )
{
if( mShuttleMode != eIsCreating )
return NULL;
SetProportions(0);
return mpSizer->Add( width, height, miProp);
// SetProportions(0);
// return mpSizer->Add( width, height, miProp);
return mpSizer->Add( width, height, prop );
}
void ShuttleGui::SetMinSize( wxWindow *window, const wxArrayStringEx & items )

View File

@ -714,7 +714,7 @@ public:
void AddStandardButtons(
long buttons = eOkButton | eCancelButton, wxWindow *extra = NULL );
wxSizerItem * AddSpace( int width, int height );
wxSizerItem * AddSpace( int width, int height, int prop = 0 );
wxSizerItem * AddSpace( int size ) { return AddSpace( size, size ); };
// Calculate width of a choice control adequate for the items, maybe after