Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
c27b2fbf
Commit
c27b2fbf
authored
Jan 16, 2015
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues in fp lib table wizard
parent
0b1a6fd7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
92 deletions
+115
-92
basicframe.cpp
common/basicframe.cpp
+9
-2
build_version.cpp
common/build_version.cpp
+3
-3
shape_collisions.cpp
common/geometry/shape_collisions.cpp
+77
-77
wizard_add_fplib.cpp
pcbnew/dialogs/wizard_add_fplib.cpp
+26
-10
No files found.
common/basicframe.cpp
View file @
c27b2fbf
/*
/*
* 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) 201
3
Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 201
5
Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 2013 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-201
3
KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-201
5
KiCad Developers, see AUTHORS.txt for contributors.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -629,6 +629,13 @@ void EDA_BASE_FRAME::CopyVersionInfoToClipboard( wxCommandEvent& event )
...
@@ -629,6 +629,13 @@ void EDA_BASE_FRAME::CopyVersionInfoToClipboard( wxCommandEvent& event )
tmp
<<
wxT
(
"OFF
\n
"
);
tmp
<<
wxT
(
"OFF
\n
"
);
#endif
#endif
tmp
<<
wxT
(
" KICAD_USE_WEBKIT="
);
#ifdef KICAD_USE_WEBKIT
tmp
<<
wxT
(
"ON
\n
"
);
#else
tmp
<<
wxT
(
"OFF
\n
"
);
#endif
wxMessageBox
(
tmp
,
_
(
"Version Information (copied to the clipboard)"
)
);
wxMessageBox
(
tmp
,
_
(
"Version Information (copied to the clipboard)"
)
);
wxTheClipboard
->
SetData
(
new
wxTextDataObject
(
tmp
)
);
wxTheClipboard
->
SetData
(
new
wxTextDataObject
(
tmp
)
);
...
...
common/build_version.cpp
View file @
c27b2fbf
/*
/*
* 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) 201
4
Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 201
5
Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 201
4
KiCad Developers, see CHANGELOG.TXT for contributors.
* Copyright (C) 201
5
KiCad Developers, see CHANGELOG.TXT for contributors.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#endif
#endif
#ifndef KICAD_BUILD_VERSION
#ifndef KICAD_BUILD_VERSION
# define KICAD_BUILD_VERSION "(
2014-jul
-16 BZR unknown)"
# define KICAD_BUILD_VERSION "(
after 2015-jan
-16 BZR unknown)"
#endif
#endif
/**
/**
...
...
common/geometry/shape_collisions.cpp
View file @
c27b2fbf
pcbnew/dialogs/wizard_add_fplib.cpp
View file @
c27b2fbf
...
@@ -136,13 +136,17 @@ void WIZARD_FPLIB_TABLE::initDlg( wxArrayString& aEnvVariableList )
...
@@ -136,13 +136,17 @@ void WIZARD_FPLIB_TABLE::initDlg( wxArrayString& aEnvVariableList )
wxString
msg
;
wxString
msg
;
wxConfigBase
*
cfg
=
Pgm
().
CommonSettings
();
wxConfigBase
*
cfg
=
Pgm
().
CommonSettings
();
cfg
->
Read
(
KICAD_FPLIBS_URL_KEY
,
&
msg
);
cfg
->
Read
(
WIZARD_LAST_PLUGIN_KEY
,
&
m_last_plugin_choice
);
cfg
->
Read
(
WIZARD_LAST_PLUGIN_KEY
,
&
m_last_plugin_choice
);
cfg
->
Read
(
WIZARD_LAST_PATHOPTION_KEY
,
&
m_last_defaultpath_choice
);
cfg
->
Read
(
WIZARD_LAST_PATHOPTION_KEY
,
&
m_last_defaultpath_choice
);
cfg
->
Read
(
KICAD_FPLIBS_URL_KEY
,
&
msg
);
if
(
msg
.
IsEmpty
()
)
// Give our current KiCad github URL
msg
=
wxT
(
"http://github.com/KiCad"
);
// Be sure there is no trailing '/' at the end of the repo name
if
(
msg
.
EndsWith
(
wxT
(
"/"
)
)
)
msg
.
RemoveLast
();
if
(
msg
.
IsEmpty
()
)
m_textCtrlGithubURL
->
SetValue
(
wxT
(
"http://github.com/KiCad/"
)
);
else
m_textCtrlGithubURL
->
SetValue
(
msg
);
m_textCtrlGithubURL
->
SetValue
(
msg
);
// KIGITHUB is frequently used (examples in docs, and other place)
// KIGITHUB is frequently used (examples in docs, and other place)
...
@@ -744,11 +748,13 @@ void WIZARD_FPLIB_TABLE::selectLibsGithubWithWebViewer() // select a set of l
...
@@ -744,11 +748,13 @@ void WIZARD_FPLIB_TABLE::selectLibsGithubWithWebViewer() // select a set of l
defaultURL
=
wxT
(
"https://github.com/KiCad"
);
defaultURL
=
wxT
(
"https://github.com/KiCad"
);
#ifdef KICAD_USE_WEBKIT
#ifdef KICAD_USE_WEBKIT
RunWebViewer
(
this
,
defaultURL
,
&
urls
);
RunWebViewer
(
this
,
defaultURL
,
&
urls
);
installGithubLibsFromList
(
urls
);
#else
#else
urls
.
Add
(
defaultURL
+
wxT
(
"newlibname.pretty"
)
);
// If the Web Viewer is not available, just add a template
// to the fp lib table.
// The user have to edit it
urls
.
Add
(
defaultURL
+
wxT
(
"/newlibname.pretty"
)
);
#endif
#endif
installGithubLibsFromList
(
urls
);
}
}
void
WIZARD_FPLIB_TABLE
::
installGithubLibsFromList
(
wxArrayString
&
aUrlList
)
void
WIZARD_FPLIB_TABLE
::
installGithubLibsFromList
(
wxArrayString
&
aUrlList
)
...
@@ -843,12 +849,22 @@ void WIZARD_FPLIB_TABLE::OnGithubLibsList( wxCommandEvent& event )
...
@@ -843,12 +849,22 @@ void WIZARD_FPLIB_TABLE::OnGithubLibsList( wxCommandEvent& event )
void
WIZARD_FPLIB_TABLE
::
getLibsListGithub
(
wxArrayString
&
aList
)
void
WIZARD_FPLIB_TABLE
::
getLibsListGithub
(
wxArrayString
&
aList
)
{
{
wxBeginBusyCursor
();
wxBeginBusyCursor
();
GITHUB_GETLIBLIST
getter
(
m_textCtrlGithubURL
->
GetValue
()
);
wxEndBusyCursor
();
// Be sure there is no trailing '/' at the end of the repo name
wxString
git_url
=
m_textCtrlGithubURL
->
GetValue
();
if
(
git_url
.
EndsWith
(
wxT
(
"/"
)
)
)
{
git_url
.
RemoveLast
();
m_textCtrlGithubURL
->
SetValue
(
git_url
);
}
GITHUB_GETLIBLIST
getter
(
git_url
);
wxArrayString
fullList
;
wxArrayString
fullList
;
getter
.
GetLibraryList
(
fullList
);
getter
.
GetLibraryList
(
fullList
);
wxEndBusyCursor
();
wxArrayInt
choices
;
wxArrayInt
choices
;
wxString
msg
(
_
(
"Urls detected as footprint .pretty libraries.
\n
"
wxString
msg
(
_
(
"Urls detected as footprint .pretty libraries.
\n
"
"Selected urls will be added to the current footprint library list"
)
);
"Selected urls will be added to the current footprint library list"
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment