mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
2 very minor fixes in Eeschema:
* Component doc: add https as prefix in list of urls which are opened by a Internet browser. * Import .cmp files: Use "IdModule" instead of "IdModule =" as keyword for footprint name and use '=' only as separator.
This commit is contained in:
parent
a356293fee
commit
c3b51b0d07
@ -94,15 +94,16 @@ bool GetAssociatedDocument( wxWindow* aParent,
|
|||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
||||||
// Is an internet url
|
// Is an internet url
|
||||||
static const wxChar* url_header[3] = {
|
static const wxChar* url_header[] = {
|
||||||
wxT( "http:" ),
|
wxT( "http:" ),
|
||||||
|
wxT( "https:" ),
|
||||||
wxT( "ftp:" ),
|
wxT( "ftp:" ),
|
||||||
wxT( "www." )
|
wxT( "www." )
|
||||||
};
|
};
|
||||||
|
|
||||||
for( unsigned ii = 0; ii < DIM(url_header); ii++ )
|
for( unsigned ii = 0; ii < DIM(url_header); ii++ )
|
||||||
{
|
{
|
||||||
if( aDocName.First( url_header[ii] ) == 0 ) //. seems an internet url
|
if( aDocName.First( url_header[ii] ) == 0 ) // looks like an internet url
|
||||||
{
|
{
|
||||||
wxLaunchDefaultBrowser( aDocName );
|
wxLaunchDefaultBrowser( aDocName );
|
||||||
return true;
|
return true;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2008-2013 Wayne Stambaugh <stambaughw@verizon.net>
|
* Copyright (C) 2008-2013 Wayne Stambaugh <stambaughw@verizon.net>
|
||||||
* Copyright (C) 2004-2015 KiCad Developers, see change_log.txt for contributors.
|
* Copyright (C) 2004-2015 KiCad Developers, see change_log.txt for contributors.
|
||||||
*
|
*
|
||||||
@ -182,7 +182,7 @@ bool SCH_EDIT_FRAME::ProcessCmpToFootprintLinkFile( const wxString& aFullFilenam
|
|||||||
{
|
{
|
||||||
reference = value;
|
reference = value;
|
||||||
}
|
}
|
||||||
else if( buffer.StartsWith( wxT( "IdModule =" ) ) )
|
else if( buffer.StartsWith( wxT( "IdModule" ) ) )
|
||||||
{
|
{
|
||||||
footprint = value;
|
footprint = value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user