mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
ShuttleGui::AddSpace takes prop argument...
... This will be needed to rewrite EffectRack
This commit is contained in:
parent
f825c32a50
commit
7d38500ecf
@ -2419,12 +2419,15 @@ void ShuttleGui::AddStandardButtons(long buttons, wxWindow *extra)
|
|||||||
EndVerticalLay();
|
EndVerticalLay();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSizerItem * ShuttleGui::AddSpace( int width, int height )
|
wxSizerItem * ShuttleGui::AddSpace( int width, int height, int prop )
|
||||||
{
|
{
|
||||||
if( mShuttleMode != eIsCreating )
|
if( mShuttleMode != eIsCreating )
|
||||||
return NULL;
|
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 )
|
void ShuttleGui::SetMinSize( wxWindow *window, const wxArrayStringEx & items )
|
||||||
|
@ -714,7 +714,7 @@ public:
|
|||||||
void AddStandardButtons(
|
void AddStandardButtons(
|
||||||
long buttons = eOkButton | eCancelButton, wxWindow *extra = NULL );
|
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 ); };
|
wxSizerItem * AddSpace( int size ) { return AddSpace( size, size ); };
|
||||||
|
|
||||||
// Calculate width of a choice control adequate for the items, maybe after
|
// Calculate width of a choice control adequate for the items, maybe after
|
||||||
|
Loading…
x
Reference in New Issue
Block a user