Beautification, Doxyfile edits
This commit is contained in:
parent
0dc3be8806
commit
3d73eb6823
|
@ -41,22 +41,26 @@ wxSize minsize;
|
|||
|
||||
// Create child subwindows.
|
||||
GetClientSize( &m_FrameSize.x, &m_FrameSize.y ); /* dimx, dimy = dimensions utiles de la
|
||||
zone utilisateur de la fenetre principale */
|
||||
* zone utilisateur de la fenetre principale */
|
||||
m_FramePos.x = m_FramePos.y = 0;
|
||||
m_FrameSize.y -= m_MsgFrameHeight;
|
||||
}
|
||||
|
||||
|
||||
/******************************************/
|
||||
WinEDA_BasicFrame::~WinEDA_BasicFrame()
|
||||
/******************************************/
|
||||
{
|
||||
if ( m_Parent->m_HtmlCtrl ) delete m_Parent->m_HtmlCtrl;
|
||||
if( m_Parent->m_HtmlCtrl )
|
||||
delete m_Parent->m_HtmlCtrl;
|
||||
m_Parent->m_HtmlCtrl = NULL;
|
||||
}
|
||||
|
||||
|
||||
/********************************************/
|
||||
void WinEDA_BasicFrame::ReCreateMenuBar()
|
||||
/********************************************/
|
||||
|
||||
// Virtual function
|
||||
{
|
||||
}
|
||||
|
@ -83,12 +87,14 @@ int Ypos_min;
|
|||
|
||||
// Ensure Window title bar is visible
|
||||
#ifdef __WXMAC__
|
||||
|
||||
// for macOSX, the window must be below system (macOSX) toolbar
|
||||
Ypos_min = GetMBarHeight();
|
||||
#else
|
||||
Ypos_min = 0;
|
||||
#endif
|
||||
if ( m_FramePos.y < Ypos_min ) m_FramePos.y = Ypos_min;
|
||||
if( m_FramePos.y < Ypos_min )
|
||||
m_FramePos.y = Ypos_min;
|
||||
}
|
||||
|
||||
|
||||
|
@ -98,9 +104,11 @@ void WinEDA_BasicFrame::SaveSettings()
|
|||
{
|
||||
wxString text;
|
||||
|
||||
if ( !m_Parent || !m_Parent->m_EDA_Config ) return;
|
||||
if( !m_Parent || !m_Parent->m_EDA_Config )
|
||||
return;
|
||||
|
||||
if( ! m_Parent->m_EDA_Config || IsIconized() ) return;
|
||||
if( !m_Parent->m_EDA_Config || IsIconized() )
|
||||
return;
|
||||
|
||||
m_FrameSize = GetSize();
|
||||
m_FramePos = GetPosition();
|
||||
|
@ -116,7 +124,6 @@ wxString text;
|
|||
}
|
||||
|
||||
|
||||
|
||||
/******************************************************/
|
||||
void WinEDA_BasicFrame::PrintMsg( const wxString& text )
|
||||
/******************************************************/
|
||||
|
@ -127,9 +134,11 @@ void WinEDA_BasicFrame::PrintMsg(const wxString & text)
|
|||
#endif
|
||||
}
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
void WinEDA_BasicFrame::DisplayActivity( int PerCent, const wxString& Text )
|
||||
/*************************************************************************/
|
||||
|
||||
/* Display a bargraph (0 to 50 point length) for a PerCent value from 0 to 100
|
||||
*/
|
||||
{
|
||||
|
@ -140,25 +149,30 @@ wxString Line;
|
|||
PerCent = (PerCent < 0) ? 0 : PerCent;
|
||||
PerCent = (PerCent > 100) ? 100 : PerCent;
|
||||
PerCent /= 2; // Bargraph is 0 .. 50 points from 0% to 100%
|
||||
if (PerCent) Line.Pad(PerCent, '*');
|
||||
if( PerCent )
|
||||
Line.Pad( PerCent, '*' );
|
||||
|
||||
SetStatusText( Line );
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************/
|
||||
void WinEDA_BasicFrame::SetLastProject( const wxString& FullFileName )
|
||||
/*******************************************************************/
|
||||
|
||||
/* Met a jour la liste des anciens projets
|
||||
*/
|
||||
{
|
||||
unsigned ii;
|
||||
|
||||
if ( FullFileName.IsEmpty() ) return;
|
||||
if( FullFileName.IsEmpty() )
|
||||
return;
|
||||
|
||||
//suppression d'une ancienne trace eventuelle du meme fichier
|
||||
for( ii = 0; ii < m_Parent->m_LastProject.GetCount(); )
|
||||
{
|
||||
if(m_Parent->m_LastProject[ii].IsEmpty() ) break;
|
||||
if( m_Parent->m_LastProject[ii].IsEmpty() )
|
||||
break;
|
||||
#ifdef __WINDOWS__
|
||||
if( m_Parent->m_LastProject[ii].CmpNoCase( FullFileName ) == 0 )
|
||||
#else
|
||||
|
@ -171,7 +185,8 @@ unsigned ii;
|
|||
m_Parent->m_LastProject.RemoveAt( ii );
|
||||
#endif
|
||||
}
|
||||
else ii++;
|
||||
else
|
||||
ii++;
|
||||
}
|
||||
|
||||
while( m_Parent->m_LastProject.GetCount() >= m_Parent->m_LastProjectMaxCount )
|
||||
|
@ -182,16 +197,19 @@ unsigned ii;
|
|||
m_Parent->m_LastProject.RemoveAt( m_Parent->m_LastProject.GetCount() - 1 );
|
||||
#endif
|
||||
}
|
||||
|
||||
m_Parent->m_LastProject.Insert( FullFileName, 0 );
|
||||
|
||||
ReCreateMenuBar();
|
||||
}
|
||||
|
||||
|
||||
/**************************************************/
|
||||
wxString WinEDA_BasicFrame::GetLastProject( int rang )
|
||||
/**************************************************/
|
||||
{
|
||||
if ( rang < 0 ) rang = 0;
|
||||
if( rang < 0 )
|
||||
rang = 0;
|
||||
if( (unsigned) rang >= m_Parent->m_LastProject.GetCount() )
|
||||
return wxEmptyString;
|
||||
return m_Parent->m_LastProject[rang];
|
||||
|
@ -221,6 +239,7 @@ void WinEDA_BasicFrame::GetKicadHelp(wxCommandEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************/
|
||||
void WinEDA_BasicFrame::GetKicadAbout( wxCommandEvent& event )
|
||||
/**********************************************************/
|
||||
|
@ -228,6 +247,7 @@ void WinEDA_BasicFrame::GetKicadAbout(wxCommandEvent& event)
|
|||
Print_Kicad_Infos( this, m_AboutTitle );
|
||||
}
|
||||
|
||||
|
||||
/********************************************************************/
|
||||
void WinEDA_BasicFrame::ProcessFontPreferences( int id )
|
||||
/********************************************************************/
|
||||
|
@ -236,12 +256,10 @@ wxFont font;
|
|||
|
||||
switch( id )
|
||||
{
|
||||
|
||||
case ID_PREFERENCES_FONT:
|
||||
break;
|
||||
|
||||
case ID_PREFERENCES_FONT_STATUS:
|
||||
{
|
||||
font = wxGetFontFromUser( this, *g_StdFont );
|
||||
if( font.Ok() )
|
||||
{
|
||||
|
@ -253,10 +271,8 @@ wxFont font;
|
|||
g_StdFontPointSize = pointsize;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case ID_PREFERENCES_FONT_DIALOG:
|
||||
{
|
||||
font = wxGetFontFromUser( this, *g_DialogFont );
|
||||
if( font.Ok() )
|
||||
{
|
||||
|
@ -268,9 +284,9 @@ wxFont font;
|
|||
g_FixedFont->SetPointSize( g_FixedFontPointSize );
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default: DisplayError(this, wxT("WinEDA_BasicFrame::ProcessFontPreferences Internal Error") );
|
||||
default:
|
||||
DisplayError( this, wxT( "WinEDA_BasicFrame::ProcessFontPreferences Internal Error" ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,10 +16,12 @@ extern wxString g_Main_Title;
|
|||
/*************************************************************************************/
|
||||
void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_width )
|
||||
/*************************************************************************************/
|
||||
|
||||
/* Draw the sheet references
|
||||
*/
|
||||
{
|
||||
if ( ! m_Draw_Sheet_Ref ) return;
|
||||
if( !m_Draw_Sheet_Ref )
|
||||
return;
|
||||
|
||||
Ki_PageDescr* Sheet = screen->m_CurrentSheetDesc;
|
||||
int ii, jj, xg, yg, ipas, gxpas, gypas;
|
||||
|
@ -30,6 +32,7 @@ Ki_WorkSheetData * WsItem;
|
|||
int scale = m_InternalUnits / 1000;
|
||||
wxSize size( SIZETEXT* scale, SIZETEXT* scale );
|
||||
wxSize size_ref( SIZETEXT_REF* scale, SIZETEXT_REF* scale );
|
||||
|
||||
wxString msg;
|
||||
int UpperLimit = VARIABLE_BLOCK_START_POSITION;
|
||||
int width = line_width;
|
||||
|
@ -66,6 +69,7 @@ int width = line_width;
|
|||
refx += GRID_REF_W; refy += GRID_REF_W;
|
||||
xg -= GRID_REF_W; yg -= GRID_REF_W;
|
||||
}
|
||||
|
||||
/* trace des reperes */
|
||||
refx = Sheet->m_LeftMargin;
|
||||
refy = Sheet->m_TopMargin; /* Upper left corner */
|
||||
|
@ -106,8 +110,10 @@ int width = line_width;
|
|||
for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- )
|
||||
{
|
||||
Line.Empty();
|
||||
if( jj < 26 ) Line.Printf(wxT("%c"), jj + 'A');
|
||||
else Line.Printf(wxT("%c"), 'a' + jj - 26);
|
||||
if( jj < 26 )
|
||||
Line.Printf( wxT( "%c" ), jj + 'A' );
|
||||
else
|
||||
Line.Printf( wxT( "%c" ), 'a' + jj - 26 );
|
||||
if( ii < yg - PAS_REF / 2 )
|
||||
{
|
||||
GRLine( &DrawPanel->m_ClipBox, DC, refx * scale, ii * scale,
|
||||
|
@ -130,8 +136,6 @@ int width = line_width;
|
|||
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER, width );
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Trace du cartouche */
|
||||
refx = Sheet->m_Size.x - Sheet->m_RightMargin - GRID_REF_W;
|
||||
refy = Sheet->m_Size.y - Sheet->m_BottomMargin - GRID_REF_W; /* lower right corner */
|
||||
|
@ -141,10 +145,12 @@ int width = line_width;
|
|||
pos.x = (refx - WsItem->m_Posx) * scale;
|
||||
pos.y = (refy - WsItem->m_Posy) * scale;
|
||||
msg.Empty();
|
||||
|
||||
switch( WsItem->m_Type )
|
||||
{
|
||||
case WS_DATE:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Date;
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -152,7 +158,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_REV:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Revision;
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -160,7 +167,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_KICAD_VERSION:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += g_ProductName + g_Main_Title;
|
||||
msg += wxT( " " ) + GetBuildVersion();
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
|
@ -169,7 +177,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_SIZESHEET:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += Sheet->m_Name;
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -178,7 +187,8 @@ int width = line_width;
|
|||
|
||||
|
||||
case WS_IDENTSHEET:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg << screen->m_ScreenNumber << wxT( "/" ) << screen->m_NumberOfScreen;
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -189,7 +199,8 @@ int width = line_width;
|
|||
{
|
||||
wxString fname, fext;
|
||||
wxFileName::SplitPath( screen->m_FileName, (wxString*) NULL, &fname, &fext );
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg << fname << wxT( "." ) << fext;
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -198,7 +209,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_FULLSHEETNAME:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += GetScreenDesc();
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -207,7 +219,8 @@ int width = line_width;
|
|||
|
||||
|
||||
case WS_COMPANY_NAME:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Company;
|
||||
if( !msg.IsEmpty() )
|
||||
{
|
||||
|
@ -219,7 +232,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_TITLE:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Title;
|
||||
DrawGraphicText( DrawPanel, DC, pos, Color,
|
||||
msg, TEXT_ORIENT_HORIZ, size,
|
||||
|
@ -227,7 +241,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_COMMENT1:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Commentaire1;
|
||||
if( !msg.IsEmpty() )
|
||||
{
|
||||
|
@ -239,7 +254,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_COMMENT2:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Commentaire2;
|
||||
if( !msg.IsEmpty() )
|
||||
{
|
||||
|
@ -251,7 +267,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_COMMENT3:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Commentaire3;
|
||||
if( !msg.IsEmpty() )
|
||||
{
|
||||
|
@ -263,7 +280,8 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_COMMENT4:
|
||||
if(WsItem->m_Legende) msg = WsItem->m_Legende;
|
||||
if( WsItem->m_Legende )
|
||||
msg = WsItem->m_Legende;
|
||||
msg += screen->m_Commentaire4;
|
||||
if( !msg.IsEmpty() )
|
||||
{
|
||||
|
@ -275,12 +293,15 @@ int width = line_width;
|
|||
break;
|
||||
|
||||
case WS_UPPER_SEGMENT:
|
||||
if (UpperLimit == 0 ) break;
|
||||
if( UpperLimit == 0 )
|
||||
break;
|
||||
|
||||
case WS_LEFT_SEGMENT:
|
||||
WS_MostUpperLine.m_Posy =
|
||||
WS_MostUpperLine.m_Endy =
|
||||
WS_MostLeftLine.m_Posy = UpperLimit;
|
||||
pos.y = (refy - WsItem->m_Posy) * scale;
|
||||
|
||||
case WS_SEGMENT:
|
||||
xg = Sheet->m_Size.x -
|
||||
GRID_REF_W - Sheet->m_RightMargin - WsItem->m_Endx;
|
||||
|
@ -289,15 +310,17 @@ int width = line_width;
|
|||
GRLine( &DrawPanel->m_ClipBox, DC, pos.x, pos.y,
|
||||
xg * scale, yg * scale, width, Color );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
/*********************************************************************/
|
||||
wxString WinEDA_DrawFrame::GetScreenDesc()
|
||||
/*********************************************************************/
|
||||
{
|
||||
wxString msg;
|
||||
|
||||
msg << GetScreen()->m_ScreenNumber << wxT( "/" ) <<
|
||||
GetScreen()->m_NumberOfScreen;
|
||||
return msg;
|
||||
|
|
|
@ -22,8 +22,7 @@ static bool Pad_Shape_Change = FALSE;
|
|||
static bool Pad_Orient_Change = FALSE;
|
||||
static bool Pad_Drill_Change = TRUE;
|
||||
|
||||
enum id_pad_global_edit
|
||||
{
|
||||
enum id_pad_global_edit {
|
||||
ID_CHANGE_CURRENT_MODULE = 1900,
|
||||
ID_CHANGE_ID_MODULES,
|
||||
ID_CHANGE_GET_PAD_SETTINGS
|
||||
|
@ -50,6 +49,7 @@ private:
|
|||
wxCheckBox* m_Pad_Orient_Change;
|
||||
|
||||
public:
|
||||
|
||||
// Constructor and destructor
|
||||
WinEDA_PadGlobalEditFrame( WinEDA_BasePcbFrame * parent,
|
||||
D_PAD * Pad, wxDC * DC, const wxPoint &pos );
|
||||
|
@ -72,7 +72,9 @@ END_EVENT_TABLE()
|
|||
|
||||
/********************************************************************************/
|
||||
WinEDA_PadGlobalEditFrame::WinEDA_PadGlobalEditFrame( WinEDA_BasePcbFrame* parent,
|
||||
D_PAD * Pad,wxDC * DC, const wxPoint & framepos):
|
||||
D_PAD* Pad,
|
||||
wxDC* DC,
|
||||
const wxPoint& framepos ) :
|
||||
wxDialog( parent, -1, _( "Pads Global Edit" ), framepos, wxSize( 310, 235 ),
|
||||
DIALOG_STYLE )
|
||||
/********************************************************************************/
|
||||
|
@ -92,20 +94,24 @@ wxButton * Button;
|
|||
pos.y = 10;
|
||||
Button = new wxButton( this, ID_CHANGE_GET_PAD_SETTINGS,
|
||||
_( "Pad Settings..." ), pos );
|
||||
|
||||
Button->SetForegroundColour( wxColor( 0, 80, 0 ) );
|
||||
|
||||
pos.y += Button->GetDefaultSize().y + 50;
|
||||
Button = new wxButton( this, ID_CHANGE_CURRENT_MODULE,
|
||||
_( "Change Module" ), pos );
|
||||
|
||||
Button->SetForegroundColour( *wxRED );
|
||||
|
||||
pos.y += Button->GetDefaultSize().y + 10;
|
||||
Button = new wxButton( this, ID_CHANGE_ID_MODULES,
|
||||
_( "Change Id Modules" ), pos );
|
||||
|
||||
Button->SetForegroundColour( *wxRED );
|
||||
|
||||
pos.y += Button->GetDefaultSize().y + 10;
|
||||
Button = new wxButton( this, wxID_CANCEL, _( "Cancel" ), pos );
|
||||
|
||||
Button->SetForegroundColour( *wxBLUE );
|
||||
|
||||
// Selection des filtres de selection des pads :
|
||||
|
@ -116,14 +122,17 @@ wxButton * Button;
|
|||
pos.x += 5;
|
||||
pos.y += 18;
|
||||
m_Pad_Shape_Filter = new wxCheckBox( this, -1, _( "Shape Filter" ), pos );
|
||||
|
||||
m_Pad_Shape_Filter->SetValue( Pad_Shape_Filter );
|
||||
|
||||
pos.y += 18;
|
||||
m_Pad_Layer_Filter = new wxCheckBox( this, -1, _( "Layer Filter" ), pos );
|
||||
|
||||
m_Pad_Layer_Filter->SetValue( Pad_Layer_Filter );
|
||||
|
||||
pos.y += 18;
|
||||
m_Pad_Orient_Filter = new wxCheckBox( this, -1, _( "Orient Filter" ), pos );
|
||||
|
||||
m_Pad_Orient_Filter->SetValue( Pad_Orient_Filter );
|
||||
|
||||
// Items a editer
|
||||
|
@ -134,18 +143,22 @@ wxButton * Button;
|
|||
pos.x += 5;
|
||||
pos.y += 18;
|
||||
m_Pad_Size_Change = new wxCheckBox( this, -1, _( "Change Size" ), pos );
|
||||
|
||||
m_Pad_Size_Change->SetValue( Pad_Size_Change );
|
||||
|
||||
pos.y += 18;
|
||||
m_Pad_Shape_Change = new wxCheckBox( this, -1, _( "Change Shape" ), pos );
|
||||
|
||||
m_Pad_Shape_Change->SetValue( Pad_Shape_Change );
|
||||
|
||||
pos.y += 18;
|
||||
m_Pad_Drill_Change = new wxCheckBox( this, -1, _( "Change Drill" ), pos );
|
||||
|
||||
m_Pad_Drill_Change->SetValue( Pad_Drill_Change );
|
||||
|
||||
pos.y += 18;
|
||||
m_Pad_Orient_Change = new wxCheckBox( this, -1, _( "Change Orient" ), pos );
|
||||
|
||||
m_Pad_Orient_Change->SetValue( Pad_Orient_Change );
|
||||
}
|
||||
|
||||
|
@ -161,6 +174,7 @@ void WinEDA_PadGlobalEditFrame::OnCancelClick(wxCommandEvent& WXUNUSED(event))
|
|||
/*************************************************************************/
|
||||
void WinEDA_PadGlobalEditFrame::PadPropertiesAccept( wxCommandEvent& event )
|
||||
/*************************************************************************/
|
||||
|
||||
/* Met a jour les differents parametres pour le composant en cours d'édition
|
||||
*/
|
||||
{
|
||||
|
@ -174,6 +188,7 @@ int returncode = 0;
|
|||
|
||||
case ID_CHANGE_ID_MODULES:
|
||||
returncode = 1;
|
||||
|
||||
// Fall through
|
||||
|
||||
case ID_CHANGE_CURRENT_MODULE:
|
||||
|
@ -193,6 +208,7 @@ int returncode = 0;
|
|||
/***************************************************************************/
|
||||
void WinEDA_BasePcbFrame::Global_Import_Pad_Settings( D_PAD* Pad, wxDC* DC )
|
||||
/***************************************************************************/
|
||||
|
||||
/*
|
||||
* Routine de selection et de correction des dimensions des pastilles
|
||||
* de tous les modules
|
||||
|
@ -223,6 +239,7 @@ wxString ref_name_module = Module->m_LibRef;
|
|||
|
||||
WinEDA_PadGlobalEditFrame* frame = new WinEDA_PadGlobalEditFrame( this, Pad, DC,
|
||||
wxPoint( -1, -1 ) );
|
||||
|
||||
diag = frame->ShowModal();
|
||||
frame->Destroy();
|
||||
|
||||
|
@ -323,10 +340,13 @@ WinEDA_PadGlobalEditFrame * frame = new WinEDA_PadGlobalEditFrame(this, Pad,DC,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
pt_pad->ComputeRayon();
|
||||
}
|
||||
|
||||
Module->Set_Rectangle_Encadrement();
|
||||
Module->Draw( DrawPanel, DC, wxPoint( 0, 0 ), GR_OR );
|
||||
}
|
||||
|
||||
GetScreen()->SetModify();
|
||||
}
|
||||
|
|
|
@ -309,7 +309,7 @@ int WinEDA_BasePcbFrame::ReadSetup( FILE* File, int* LineNum )
|
|||
if( strncmp( Line, "Layer[", LAYERKEYZ ) == 0 )
|
||||
{
|
||||
// parse:
|
||||
// Layer[n] "a Layer name" <LAYER_T>
|
||||
// Layer[n] <a_Layer_name_with_no_spaces> <LAYER_T>
|
||||
|
||||
char* cp = Line + LAYERKEYZ;
|
||||
int layer = atoi(cp);
|
||||
|
@ -320,7 +320,6 @@ int WinEDA_BasePcbFrame::ReadSetup( FILE* File, int* LineNum )
|
|||
m_Pcb->SetLayerName( layer, layerName );
|
||||
|
||||
data = strtok( NULL, " " );
|
||||
|
||||
if( data )
|
||||
{
|
||||
LAYER_T type = LAYER::ParseType( data );
|
||||
|
|
Loading…
Reference in New Issue