2008-10-18 23:41:16 +00:00
|
|
|
|
2019-05-08 18:56:03 +00:00
|
|
|
#if 0
|
2010-12-10 19:47:44 +00:00
|
|
|
case LIB_POLYLINE_T:
|
2013-01-02 07:55:48 +00:00
|
|
|
if( item->IsNew() )
|
2009-09-22 12:27:57 +00:00
|
|
|
{
|
2011-04-27 19:44:32 +00:00
|
|
|
if( ( (LIB_POLYLINE*) item )->GetCornerCount() > 2 )
|
2008-10-18 23:41:16 +00:00
|
|
|
{
|
2019-04-01 17:14:16 +00:00
|
|
|
msg = AddHotkeyName( _( "Delete" ), g_Libedit_Hotkeys_Descr, HK_DELETE );
|
2011-09-01 12:54:34 +00:00
|
|
|
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_DELETE_CURRENT_POLY_SEGMENT,
|
2017-07-04 15:17:55 +00:00
|
|
|
msg, KiBitmap( delete_xpm ) );
|
2008-10-18 23:41:16 +00:00
|
|
|
}
|
2009-09-22 12:27:57 +00:00
|
|
|
}
|
2010-02-04 17:46:12 +00:00
|
|
|
|
2009-09-22 12:27:57 +00:00
|
|
|
break;
|
2008-10-18 23:41:16 +00:00
|
|
|
|
2019-05-08 18:56:03 +00:00
|
|
|
//===============================================
|
2009-09-22 12:27:57 +00:00
|
|
|
|
2019-05-08 18:56:03 +00:00
|
|
|
case ID_POPUP_LIBEDIT_DELETE_CURRENT_POLY_SEGMENT:
|
|
|
|
{
|
|
|
|
// Delete the last created segment, while creating a polyline draw item
|
|
|
|
if( item == NULL )
|
|
|
|
break;
|
2009-09-22 12:27:57 +00:00
|
|
|
|
2019-05-08 18:56:03 +00:00
|
|
|
m_canvas->MoveCursorToCrossHair();
|
|
|
|
static_cast<LIB_POLYLINE*>( item )->DeleteSegment( GetCrossHairPosition( true ) );
|
|
|
|
}
|
2009-09-22 12:27:57 +00:00
|
|
|
break;
|
2019-05-08 18:56:03 +00:00
|
|
|
#endif
|
2018-09-06 21:42:51 +00:00
|
|
|
|