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 )
|
||||
{
|
||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
||||
m_statusPopup->SetText( _( "A minimum of two straight track segments must be selected." ) );
|
||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
||||
m_statusPopup->PopupFor( 2000 );
|
||||
frame()->ShowInfoBarMsg(
|
||||
_( "A minimum of two straight track segments must be selected." ) );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -744,11 +742,8 @@ int EDIT_TOOL::FilletTracks( const TOOL_EVENT& aEvent )
|
|||
|
||||
if( filletRadiusIU == 0 )
|
||||
{
|
||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
||||
m_statusPopup->SetText( _( "A radius of zero was entered.\n"
|
||||
frame()->ShowInfoBarMsg( _( "A radius of zero was entered.\n"
|
||||
"The fillet operation was not performed." ) );
|
||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
||||
m_statusPopup->PopupFor( 2000 );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -871,17 +866,11 @@ int EDIT_TOOL::FilletTracks( const TOOL_EVENT& aEvent )
|
|||
|
||||
if( !operationPerformedOnAtLeastOne )
|
||||
{
|
||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
||||
m_statusPopup->SetText( _( "Unable to fillet the selected track segments." ) );
|
||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
||||
m_statusPopup->PopupFor( 2000 );
|
||||
frame()->ShowInfoBarMsg( _( "Unable to fillet the selected track segments." ) );
|
||||
}
|
||||
else if( didOneAttemptFail )
|
||||
{
|
||||
m_statusPopup.reset( new STATUS_TEXT_POPUP( frame() ) );
|
||||
m_statusPopup->SetText( _( "Some of the track segments could not be filleted." ) );
|
||||
m_statusPopup->Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
||||
m_statusPopup->PopupFor( 2000 );
|
||||
frame()->ShowInfoBarMsg( _( "Some of the track segments could not be filleted." ) );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue