Try out an animating, obscuring infobar.

This commit is contained in:
Jeff Young 2020-12-08 15:05:35 +00:00
parent b1f0bf7334
commit d1a9efa5fc
2 changed files with 9 additions and 3 deletions

View File

@ -50,8 +50,14 @@ WX_INFOBAR::WX_INFOBAR( wxWindow* aParent, wxAuiManager* aMgr, wxWindowID aWinid
{
m_showTimer = new wxTimer( this, ID_CLOSE_INFOBAR );
#if 1
m_auiManager = nullptr;
SetShowHideEffects( wxSHOW_EFFECT_ROLL_TO_BOTTOM, wxSHOW_EFFECT_ROLL_TO_TOP );
SetEffectDuration( 300 );
#else
// Don't use any effects since they leave the sizer area visible under the infobar
SetShowHideEffects( wxSHOW_EFFECT_NONE, wxSHOW_EFFECT_NONE );
#endif
// The infobar seems to start too small, so increase its height
int sx, sy;

View File

@ -697,6 +697,9 @@ void SYMBOL_EDIT_FRAME::SetCurPart( LIB_PART* aPart )
// Ensure synchronized pin edit can be enabled only symbols with interchangeable units
m_SyncPinEdit = aPart && aPart->IsRoot() && aPart->IsMulti() && !aPart->UnitsLocked();
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
RebuildView();
WX_INFOBAR* infobar = GetInfoBar();
if( IsSymbolFromSchematic() )
@ -736,9 +739,6 @@ void SYMBOL_EDIT_FRAME::SetCurPart( LIB_PART* aPart )
{
infobar->Dismiss();
}
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
RebuildView();
}