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
ab468e20
Commit
ab468e20
authored
Feb 05, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cvpcb relative paths patch
parent
0bf4b5ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dialog_cvpcb_config.cpp
cvpcb/dialog_cvpcb_config.cpp
+14
-0
No files found.
cvpcb/dialog_cvpcb_config.cpp
View file @
ab468e20
...
@@ -267,6 +267,20 @@ void DIALOG_CVPCB_CONFIG::OnAddOrInsertPath( wxCommandEvent& event )
...
@@ -267,6 +267,20 @@ void DIALOG_CVPCB_CONFIG::OnAddOrInsertPath( wxCommandEvent& event )
if
(
jj
>=
0
)
if
(
jj
>=
0
)
ipos
=
jj
;
ipos
=
jj
;
}
}
// Ask the user if this is a relative path
int
diag
=
wxMessageBox
(
_
(
"Use a relative path?"
),
_
(
"Path type"
),
wxYES_NO
|
wxICON_QUESTION
,
this
);
if
(
diag
==
wxYES
)
{
// Make it relative
wxFileName
fn
=
path
;
fn
.
MakeRelativeTo
(
wxT
(
"."
)
);
path
=
fn
.
GetPathWithSep
()
+
fn
.
GetFullName
();
}
m_listUserPaths
->
Insert
(
path
,
ipos
);
m_listUserPaths
->
Insert
(
path
,
ipos
);
m_LibPathChanged
=
true
;
m_LibPathChanged
=
true
;
wxGetApp
().
InsertLibraryPath
(
path
,
ipos
+
1
);
wxGetApp
().
InsertLibraryPath
(
path
,
ipos
+
1
);
...
...
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