2007-08-20 01:20:48 +00:00
|
|
|
|
/******************************************************/
|
|
|
|
|
/* schedit.cpp: fonctions generales de la schematique */
|
|
|
|
|
/******************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
|
|
|
|
|
|
#include "gr_basic.h"
|
|
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
#include "program.h"
|
|
|
|
|
#include "libcmp.h"
|
|
|
|
|
#include "general.h"
|
|
|
|
|
|
|
|
|
|
#include "id.h"
|
|
|
|
|
|
|
|
|
|
#include "protos.h"
|
|
|
|
|
|
2008-02-27 19:38:16 +00:00
|
|
|
|
#include "schframe.h"
|
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
static wxArrayString s_CmpNameList;
|
|
|
|
|
static wxArrayString s_PowerNameList;
|
|
|
|
|
|
|
|
|
|
/**********************************************************************************/
|
2007-08-20 01:20:48 +00:00
|
|
|
|
void WinEDA_SchematicFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/**********************************************************************************/
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
2008-02-12 21:12:46 +00:00
|
|
|
|
/* Traite les commandes declench<63>e par le bouton gauche de la souris,
|
|
|
|
|
* quand un outil est deja selectionn<EFBFBD>
|
2007-08-20 01:20:48 +00:00
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
EDA_BaseStruct* DrawStruct = GetScreen()->GetCurItem();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
|
|
if( (m_ID_current_state == 0) || ( DrawStruct && DrawStruct->m_Flags ) )
|
|
|
|
|
{
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
|
|
|
|
g_ItemToRepeat = NULL;
|
|
|
|
|
|
|
|
|
|
if( DrawStruct && DrawStruct->m_Flags ) // Commande "POPUP" en cours
|
|
|
|
|
{
|
2007-09-01 12:00:30 +00:00
|
|
|
|
switch( DrawStruct->Type() )
|
2007-08-20 01:20:48 +00:00
|
|
|
|
{
|
|
|
|
|
case DRAW_LABEL_STRUCT_TYPE:
|
|
|
|
|
case DRAW_GLOBAL_LABEL_STRUCT_TYPE:
|
2008-02-12 21:12:46 +00:00
|
|
|
|
case DRAW_HIER_LABEL_STRUCT_TYPE:
|
2007-08-20 01:20:48 +00:00
|
|
|
|
case DRAW_TEXT_STRUCT_TYPE:
|
|
|
|
|
case DRAW_SHEETLABEL_STRUCT_TYPE:
|
|
|
|
|
case DRAW_SHEET_STRUCT_TYPE:
|
|
|
|
|
case DRAW_BUSENTRY_STRUCT_TYPE:
|
|
|
|
|
case DRAW_JUNCTION_STRUCT_TYPE:
|
|
|
|
|
case DRAW_LIB_ITEM_STRUCT_TYPE:
|
|
|
|
|
case DRAW_PART_TEXT_STRUCT_TYPE:
|
|
|
|
|
DrawStruct->Place( this, DC );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( NULL );
|
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
case SCREEN_STRUCT_TYPE:
|
|
|
|
|
case DRAW_PICK_ITEM_STRUCT_TYPE:
|
|
|
|
|
DisplayError( this,
|
|
|
|
|
wxT( "OnLeftClick err: unexpected type for Place" ) );
|
|
|
|
|
DrawStruct->m_Flags = 0;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case DRAW_SEGMENT_STRUCT_TYPE: // Segment peut-etre en cours de trace
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
DisplayError( this,
|
|
|
|
|
wxT( "WinEDA_SchematicFrame::OnLeftClick err: m_Flags != 0" ) );
|
|
|
|
|
DrawStruct->m_Flags = 0;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct = SchematicGeneralLocateAndDisplay();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch( m_ID_current_state )
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_NO_SELECT_BUTT:
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_HIERARCHY_PUSH_POP_BUTT:
|
|
|
|
|
if( DrawStruct && DrawStruct->m_Flags )
|
|
|
|
|
break;
|
|
|
|
|
DrawStruct = SchematicGeneralLocateAndDisplay();
|
2007-09-01 12:00:30 +00:00
|
|
|
|
if( DrawStruct && (DrawStruct->Type() == DRAW_SHEET_STRUCT_TYPE) )
|
2007-08-20 01:20:48 +00:00
|
|
|
|
{
|
|
|
|
|
InstallNextScreen( (DrawSheetStruct*) DrawStruct );
|
|
|
|
|
}
|
|
|
|
|
else
|
2008-02-12 21:12:46 +00:00
|
|
|
|
InstallPreviousSheet();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_NOCONN_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
|
|
|
|
g_ItemToRepeat = CreateNewNoConnectStruct( DC );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( g_ItemToRepeat );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
|
|
|
|
}
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_JUNCTION_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
g_ItemToRepeat = CreateNewJunctionStruct( DC, GetScreen()->m_Curseur, TRUE );
|
|
|
|
|
GetScreen()->SetCurItem( g_ItemToRepeat );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
|
|
|
|
}
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_WIRETOBUS_ENTRY_BUTT:
|
|
|
|
|
case ID_BUSTOBUS_ENTRY_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
|
|
|
|
DrawStruct =
|
|
|
|
|
CreateBusEntry( DC,
|
|
|
|
|
(m_ID_current_state == ID_WIRETOBUS_ENTRY_BUTT) ?
|
|
|
|
|
WIRE_TO_BUS : BUS_TO_BUS );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( DrawStruct );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( NULL );
|
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_SCHEMATIC_DELETE_ITEM_BUTT:
|
|
|
|
|
LocateAndDeleteItem( this, DC );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetModify();
|
|
|
|
|
GetScreen()->SetCurItem( NULL );
|
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_WIRE_BUTT:
|
|
|
|
|
BeginSegment( DC, LAYER_WIRE );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_BUS_BUTT:
|
|
|
|
|
BeginSegment( DC, LAYER_BUS );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_LINE_COMMENT_BUTT:
|
|
|
|
|
BeginSegment( DC, LAYER_NOTES );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_TEXT_COMMENT_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( CreateNewText( DC, LAYER_NOTES ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_LABEL_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( CreateNewText( DC, LAYER_LOCLABEL ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_GLABEL_BUTT:
|
2008-02-12 21:12:46 +00:00
|
|
|
|
case ID_HIERLABEL_BUTT:
|
2007-08-20 01:20:48 +00:00
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
if(m_ID_current_state == ID_GLABEL_BUTT)
|
|
|
|
|
GetScreen()->SetCurItem( CreateNewText( DC, LAYER_GLOBLABEL ) );
|
|
|
|
|
if(m_ID_current_state == ID_HIERLABEL_BUTT)
|
|
|
|
|
GetScreen()->SetCurItem( CreateNewText( DC, LAYER_HIERLABEL ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
|
|
|
|
GetScreen()->SetCurItem( CreateNewText( DC, LAYER_HIERLABEL ) );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
|
|
|
|
}
|
|
|
|
|
break;
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
|
|
|
|
case ID_SHEET_SYMBOL_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( CreateSheet( DC ) );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_IMPORT_GLABEL_BUTT:
|
|
|
|
|
case ID_SHEET_LABEL_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
DrawStruct = SchematicGeneralLocateAndDisplay();
|
|
|
|
|
|
|
|
|
|
if( DrawStruct == NULL )
|
|
|
|
|
break;
|
|
|
|
|
|
2007-09-01 12:00:30 +00:00
|
|
|
|
if( (DrawStruct->Type() == DRAW_SHEET_STRUCT_TYPE)
|
2007-08-20 01:20:48 +00:00
|
|
|
|
&& (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
|
|
|
|
if( m_ID_current_state == ID_IMPORT_GLABEL_BUTT )
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem(
|
2007-08-20 01:20:48 +00:00
|
|
|
|
Import_PinSheet( (DrawSheetStruct*) DrawStruct, DC ) );
|
|
|
|
|
else
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem(
|
2007-08-20 01:20:48 +00:00
|
|
|
|
Create_PinSheet( (DrawSheetStruct*) DrawStruct, DC ) );
|
|
|
|
|
}
|
2007-09-01 12:00:30 +00:00
|
|
|
|
else if( (DrawStruct->Type() == DRAW_SHEETLABEL_STRUCT_TYPE)
|
2007-08-20 01:20:48 +00:00
|
|
|
|
&& (DrawStruct->m_Flags != 0) )
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_COMPONENT_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem( Load_Component( DC, wxEmptyString,
|
2007-08-20 01:20:48 +00:00
|
|
|
|
s_CmpNameList, TRUE ) );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case ID_PLACE_POWER_BUTT:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
GetScreen()->SetCurItem(
|
2007-08-20 01:20:48 +00:00
|
|
|
|
Load_Component( DC, wxT( "power" ), s_PowerNameList, FALSE ) );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = TRUE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DrawStruct->Place( this, DC );
|
|
|
|
|
DrawPanel->m_AutoPAN_Request = FALSE;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
TestDanglingEnds( GetScreen()->EEDrawList, DC );
|
2007-08-20 01:20:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
{
|
|
|
|
|
SetToolID( 0, wxCURSOR_ARROW, wxEmptyString );
|
|
|
|
|
wxString msg( wxT( "WinEDA_SchematicFrame::OnLeftClick error state " ) );
|
|
|
|
|
|
|
|
|
|
msg << m_ID_current_state;
|
|
|
|
|
DisplayError( this, msg );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/***************************************************************************/
|
2007-08-20 01:20:48 +00:00
|
|
|
|
void WinEDA_SchematicFrame::OnLeftDClick( wxDC* DC, const wxPoint& MousePos )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
/***************************************************************************/
|
2007-08-20 01:20:48 +00:00
|
|
|
|
|
2008-02-12 21:12:46 +00:00
|
|
|
|
/* Appel<65> sur un double click:
|
|
|
|
|
* pour un <EFBFBD>l<EFBFBD>ment editable (textes, composant):
|
2007-08-20 01:20:48 +00:00
|
|
|
|
* appel de l'editeur correspondant.
|
|
|
|
|
* pour une connexion en cours:
|
|
|
|
|
* termine la connexion
|
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
{
|
2008-02-12 21:12:46 +00:00
|
|
|
|
EDA_BaseStruct* DrawStruct = GetScreen()->GetCurItem();
|
2007-08-20 01:20:48 +00:00
|
|
|
|
wxPoint pos = GetPosition();
|
|
|
|
|
|
|
|
|
|
switch( m_ID_current_state )
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags == 0) )
|
|
|
|
|
{
|
|
|
|
|
DrawStruct = SchematicGeneralLocateAndDisplay();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( (DrawStruct == NULL) || (DrawStruct->m_Flags != 0) )
|
|
|
|
|
break;
|
|
|
|
|
|
2008-02-12 21:12:46 +00:00
|
|
|
|
// Element localis<69>
|
2007-09-01 12:00:30 +00:00
|
|
|
|
switch( DrawStruct->Type() )
|
2007-08-20 01:20:48 +00:00
|
|
|
|
{
|
|
|
|
|
case DRAW_SHEET_STRUCT_TYPE:
|
|
|
|
|
InstallNextScreen( (DrawSheetStruct*) DrawStruct );
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case DRAW_LIB_ITEM_STRUCT_TYPE:
|
|
|
|
|
InstallCmpeditFrame( this, pos, (EDA_SchComponentStruct*) DrawStruct );
|
|
|
|
|
DrawPanel->MouseToCursorSchema();
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case DRAW_TEXT_STRUCT_TYPE:
|
|
|
|
|
case DRAW_LABEL_STRUCT_TYPE:
|
|
|
|
|
case DRAW_GLOBAL_LABEL_STRUCT_TYPE:
|
2008-02-12 21:12:46 +00:00
|
|
|
|
case DRAW_HIER_LABEL_STRUCT_TYPE:
|
2007-08-20 01:20:48 +00:00
|
|
|
|
EditSchematicText( (DrawTextStruct*) DrawStruct, DC );
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case DRAW_PART_TEXT_STRUCT_TYPE:
|
|
|
|
|
EditCmpFieldText( (PartTextStruct*) DrawStruct, DC );
|
|
|
|
|
DrawPanel->MouseToCursorSchema();
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break; // end case 0
|
|
|
|
|
|
|
|
|
|
case ID_BUS_BUTT:
|
|
|
|
|
case ID_WIRE_BUTT:
|
|
|
|
|
case ID_LINE_COMMENT_BUTT:
|
|
|
|
|
if( DrawStruct && (DrawStruct->m_Flags & IS_NEW) )
|
|
|
|
|
EndSegment( DC );
|
|
|
|
|
break;
|
|
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
|
}
|