EDIT_TOOL::FilletTrack Change STATUS_TEXT_POPUP messages to an infobar instead
This commit is contained in:
parent
bdbb68f813
commit
bdc89df333
|
@ -727,10 +727,8 @@ int EDIT_TOOL::FilletTracks( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
if( selection.Size() < 2 )
|
if( selection.Size() < 2 )
|
||||||
{
|
{
|
||||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
frame()->ShowInfoBarMsg(
|
||||||
m_statusPopup->SetText( _( "A minimum of two straight track segments must be selected." ) );
|
_( "A minimum of two straight track segments must be selected." ) );
|
||||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
|
||||||
m_statusPopup->PopupFor( 2000 );
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -744,11 +742,8 @@ int EDIT_TOOL::FilletTracks( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
if( filletRadiusIU == 0 )
|
if( filletRadiusIU == 0 )
|
||||||
{
|
{
|
||||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
frame()->ShowInfoBarMsg( _( "A radius of zero was entered.\n"
|
||||||
m_statusPopup->SetText( _( "A radius of zero was entered.\n"
|
"The fillet operation was not performed." ) );
|
||||||
"The fillet operation was not performed." ) );
|
|
||||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
|
||||||
m_statusPopup->PopupFor( 2000 );
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -871,17 +866,11 @@ int EDIT_TOOL::FilletTracks( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
if( !operationPerformedOnAtLeastOne )
|
if( !operationPerformedOnAtLeastOne )
|
||||||
{
|
{
|
||||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
frame()->ShowInfoBarMsg( _( "Unable to fillet the selected track segments." ) );
|
||||||
m_statusPopup->SetText( _( "Unable to fillet the selected track segments." ) );
|
|
||||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
|
||||||
m_statusPopup->PopupFor( 2000 );
|
|
||||||
}
|
}
|
||||||
else if( didOneAttemptFail )
|
else if( didOneAttemptFail )
|
||||||
{
|
{
|
||||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
frame()->ShowInfoBarMsg( _( "Some of the track segments could not be filleted." ) );
|
||||||
m_statusPopup->SetText( _( "Some of the track segments could not be filleted." ) );
|
|
||||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
|
||||||
m_statusPopup->PopupFor( 2000 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue