beautified
This commit is contained in:
parent
72f7cb164c
commit
ede37ecfa7
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************/
|
/********************************************************************************/
|
||||||
/* tool_onrightclick.cpp: fonctions appelées par le bouton droit sur un TOOL */
|
/* tool_onrightclick.cpp: fonctions appel<EFBFBD>s par le bouton droit sur un TOOL */
|
||||||
/********************************************************************************/
|
/********************************************************************************/
|
||||||
|
|
||||||
#include "fctsys.h"
|
#include "fctsys.h"
|
||||||
|
@ -15,69 +15,67 @@
|
||||||
#include "protos.h"
|
#include "protos.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************/
|
/*****************************************************************/
|
||||||
void WinEDA_PcbFrame::ToolOnRightClick(wxCommandEvent& event)
|
void WinEDA_PcbFrame::ToolOnRightClick( wxCommandEvent& event )
|
||||||
/*****************************************************************/
|
/*****************************************************************/
|
||||||
{
|
{
|
||||||
wxPoint pos;
|
wxPoint pos;
|
||||||
int id = event.GetSelection();
|
int id = event.GetSelection();
|
||||||
|
|
||||||
wxGetMousePosition(&pos.x, &pos.y);
|
wxGetMousePosition( &pos.x, &pos.y );
|
||||||
pos.x -= 400;
|
pos.x -= 400;
|
||||||
pos.y -= 30;
|
pos.y -= 30;
|
||||||
|
|
||||||
switch ( id )
|
switch( id )
|
||||||
{
|
{
|
||||||
case ID_TRACK_BUTT:
|
case ID_TRACK_BUTT:
|
||||||
InstallPcbOptionsFrame(pos, NULL, ID_PCB_TRACK_SIZE_SETUP);
|
InstallPcbOptionsFrame( pos, NULL, ID_PCB_TRACK_SIZE_SETUP );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_COMPONENT_BUTT:
|
case ID_COMPONENT_BUTT:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_PCB_CIRCLE_BUTT:
|
case ID_PCB_CIRCLE_BUTT:
|
||||||
case ID_PCB_ARC_BUTT:
|
case ID_PCB_ARC_BUTT:
|
||||||
case ID_LINE_COMMENT_BUTT:
|
case ID_LINE_COMMENT_BUTT:
|
||||||
case ID_PCB_COTATION_BUTT:
|
case ID_PCB_COTATION_BUTT:
|
||||||
case ID_TEXT_COMMENT_BUTT:
|
case ID_TEXT_COMMENT_BUTT:
|
||||||
InstallPcbOptionsFrame(pos, NULL, ID_PCB_DRAWINGS_WIDTHS_SETUP);
|
InstallPcbOptionsFrame( pos, NULL, ID_PCB_DRAWINGS_WIDTHS_SETUP );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/************************************************************************/
|
|
||||||
void WinEDA_ModuleEditFrame::ToolOnRightClick(wxCommandEvent& event)
|
|
||||||
/************************************************************************/
|
|
||||||
{
|
|
||||||
wxPoint pos;
|
|
||||||
int id = event.GetSelection();
|
|
||||||
|
|
||||||
wxGetMousePosition(&pos.x, &pos.y);
|
|
||||||
pos.x -= 400;
|
|
||||||
pos.y -= 30;
|
|
||||||
|
|
||||||
switch ( id )
|
|
||||||
{
|
|
||||||
case ID_MODEDIT_ADD_PAD:
|
|
||||||
InstallPadOptionsFrame(NULL, NULL, wxPoint(-1,-1) );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ID_PCB_CIRCLE_BUTT:
|
|
||||||
case ID_PCB_ARC_BUTT:
|
|
||||||
case ID_LINE_COMMENT_BUTT:
|
|
||||||
case ID_PCB_COTATION_BUTT:
|
|
||||||
case ID_TEXT_COMMENT_BUTT:
|
|
||||||
InstallOptionsFrame(pos);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
DisplayError(this, wxT("ToolOnRightClick() error"));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************/
|
||||||
|
void WinEDA_ModuleEditFrame::ToolOnRightClick( wxCommandEvent& event )
|
||||||
|
/************************************************************************/
|
||||||
|
{
|
||||||
|
wxPoint pos;
|
||||||
|
int id = event.GetSelection();
|
||||||
|
|
||||||
|
wxGetMousePosition( &pos.x, &pos.y );
|
||||||
|
pos.x -= 400;
|
||||||
|
pos.y -= 30;
|
||||||
|
|
||||||
|
switch( id )
|
||||||
|
{
|
||||||
|
case ID_MODEDIT_ADD_PAD:
|
||||||
|
InstallPadOptionsFrame( NULL, NULL, wxPoint( -1, -1 ) );
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ID_PCB_CIRCLE_BUTT:
|
||||||
|
case ID_PCB_ARC_BUTT:
|
||||||
|
case ID_LINE_COMMENT_BUTT:
|
||||||
|
case ID_PCB_COTATION_BUTT:
|
||||||
|
case ID_TEXT_COMMENT_BUTT:
|
||||||
|
InstallOptionsFrame( pos );
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
DisplayError( this, wxT( "ToolOnRightClick() error" ) );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue