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
7ab924c3
Commit
7ab924c3
authored
Apr 16, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bugs fixed, and remove warnings when using wxWidgets 3 in specctra.cpp
parent
bc9ad9c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
16 deletions
+10
-16
edaappl.cpp
common/edaappl.cpp
+1
-1
gr_basic.cpp
common/gr_basic.cpp
+0
-2
find.cpp
eeschema/find.cpp
+1
-1
schframe.cpp
eeschema/schframe.cpp
+3
-7
specctra.cpp
pcbnew/specctra.cpp
+5
-5
No files found.
common/edaappl.cpp
View file @
7ab924c3
...
@@ -1008,7 +1008,7 @@ wxString WinEDA_App::GetLibraryFile( const wxString& filename )
...
@@ -1008,7 +1008,7 @@ wxString WinEDA_App::GetLibraryFile( const wxString& filename )
*/
*/
wxString
WinEDA_App
::
ReturnLastVisitedLibraryPath
(
const
wxString
&
aSubPathToSearch
)
wxString
WinEDA_App
::
ReturnLastVisitedLibraryPath
(
const
wxString
&
aSubPathToSearch
)
{
{
if
(
m_LastVisitedLibPath
)
if
(
!
m_LastVisitedLibPath
.
IsEmpty
()
)
return
m_LastVisitedLibPath
;
return
m_LastVisitedLibPath
;
wxString
path
;
wxString
path
;
...
...
common/gr_basic.cpp
View file @
7ab924c3
...
@@ -50,8 +50,6 @@ extern BASE_SCREEN* ActiveScreen;
...
@@ -50,8 +50,6 @@ extern BASE_SCREEN* ActiveScreen;
/* Variables locales */
/* Variables locales */
static
int
GRLastMoveToX
,
GRLastMoveToY
;
static
int
GRLastMoveToX
,
GRLastMoveToY
;
static
int
Text_Color
=
LIGHTGRAY
;
static
int
PenMinWidth
=
1
;
/* largeur minimum de la plume (DOIT etre > 0)
static
int
PenMinWidth
=
1
;
/* largeur minimum de la plume (DOIT etre > 0)
* (utile pour trace sur imprimante) */
* (utile pour trace sur imprimante) */
static
int
ForceBlackPen
;
/* si != 0 : traces en noir (utilise pour trace
static
int
ForceBlackPen
;
/* si != 0 : traces en noir (utilise pour trace
...
...
eeschema/find.cpp
View file @
7ab924c3
...
@@ -717,7 +717,7 @@ int WinEDA_FindFrame::ExploreAllLibraries( const wxString& wildmask, wxString& F
...
@@ -717,7 +717,7 @@ int WinEDA_FindFrame::ExploreAllLibraries( const wxString& wildmask, wxString& F
char
Line
[
2048
],
*
name
;
char
Line
[
2048
],
*
name
;
wxString
path
;
wxString
path
;
for
(
unsigned
ii
;
ii
<
wxGetApp
().
GetLibraryPathList
().
GetCount
();
ii
++
)
for
(
unsigned
ii
=
0
;
ii
<
wxGetApp
().
GetLibraryPathList
().
GetCount
();
ii
++
)
{
{
path
=
wxGetApp
().
GetLibraryPathList
()[
ii
];
path
=
wxGetApp
().
GetLibraryPathList
()[
ii
];
FullFileName
=
wxFindFirstFile
(
path
+
wxT
(
"*."
)
+
CompLibFileExtension
);
FullFileName
=
wxFindFirstFile
(
path
+
wxT
(
"*."
)
+
CompLibFileExtension
);
...
...
eeschema/schframe.cpp
View file @
7ab924c3
...
@@ -465,7 +465,7 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet( )
...
@@ -465,7 +465,7 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet( )
/** Function GetUniqueFilenameForCurrentSheet
/** Function GetUniqueFilenameForCurrentSheet
* @return a filename that can be used in plot and print functions
* @return a filename that can be used in plot and print functions
* for the current screen anad sheet path.
* for the current screen anad sheet path.
* This filename is unique and must be used insteed of the sreen filename
* This filename is unique and must be used insteed of the s
c
reen filename
* (or scheen filename) when one must creates file for each sheet in the heierarchy.
* (or scheen filename) when one must creates file for each sheet in the heierarchy.
* because in complex hierarchies a sheet and a SCH_SCREEN is used more than once
* because in complex hierarchies a sheet and a SCH_SCREEN is used more than once
* Name is <root sheet filename>-<sheet path>
* Name is <root sheet filename>-<sheet path>
...
@@ -473,10 +473,8 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet( )
...
@@ -473,10 +473,8 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet( )
* However if filename is too long name is <sheet filename>-<sheet number>
* However if filename is too long name is <sheet filename>-<sheet number>
*/
*/
{
{
wxString
filename
;
wxFileName
fn
=
g_RootSheet
->
GetFileName
();
wxString
filename
=
fn
.
GetName
();
wxSplitPath
(
g_RootSheet
->
GetFileName
().
GetData
(),
(
wxString
*
)
NULL
,
&
filename
,
(
wxString
*
)
NULL
);
if
(
(
filename
.
Len
()
+
m_CurrentSheet
->
PathHumanReadable
().
Len
()
)
<
50
)
if
(
(
filename
.
Len
()
+
m_CurrentSheet
->
PathHumanReadable
().
Len
()
)
<
50
)
{
{
...
@@ -486,8 +484,6 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet( )
...
@@ -486,8 +484,6 @@ wxString WinEDA_SchematicFrame::GetUniqueFilenameForCurrentSheet( )
}
}
else
else
{
{
wxSplitPath
(
g_RootSheet
->
GetFileName
().
GetData
(),
(
wxString
*
)
NULL
,
&
filename
,
(
wxString
*
)
NULL
);
filename
<<
wxT
(
"-"
)
<<
GetScreen
()
->
m_ScreenNumber
;
filename
<<
wxT
(
"-"
)
<<
GetScreen
()
->
m_ScreenNumber
;
}
}
...
...
pcbnew/specctra.cpp
View file @
7ab924c3
...
@@ -321,7 +321,7 @@ void SPECCTRA_DB::LoadPCB( const wxString& filename ) throw( IOError )
...
@@ -321,7 +321,7 @@ void SPECCTRA_DB::LoadPCB( const wxString& filename ) throw( IOError )
if
(
!
fp
)
if
(
!
fp
)
{
{
ThrowIOError
(
_
(
"Unable to open file
\"
%s
\"
"
),
filename
.
GetData
()
);
ThrowIOError
(
_
(
"Unable to open file
\"
"
)
+
filename
+
wxT
(
"
\"
"
)
);
}
}
file
.
Attach
(
fp
);
// "exception safe" way to close the file.
file
.
Attach
(
fp
);
// "exception safe" way to close the file.
...
@@ -351,7 +351,7 @@ void SPECCTRA_DB::LoadSESSION( const wxString& filename ) throw( IOError )
...
@@ -351,7 +351,7 @@ void SPECCTRA_DB::LoadSESSION( const wxString& filename ) throw( IOError )
if
(
!
fp
)
if
(
!
fp
)
{
{
ThrowIOError
(
_
(
"Unable to open file
\"
%s
\"
"
),
filename
.
GetData
()
);
ThrowIOError
(
_
(
"Unable to open file
\"
"
)
+
filename
+
wxT
(
"
\"
"
)
);
}
}
file
.
Attach
(
fp
);
// "exception safe" way to close the file.
file
.
Attach
(
fp
);
// "exception safe" way to close the file.
...
@@ -3465,7 +3465,7 @@ int SPECCTRA_DB::Print( int nestLevel, const char* fmt, ... ) throw( IOError )
...
@@ -3465,7 +3465,7 @@ int SPECCTRA_DB::Print( int nestLevel, const char* fmt, ... ) throw( IOError )
}
}
if
(
result
<
0
||
(
result
=
vfprintf
(
fp
,
fmt
,
args
))
<
0
)
if
(
result
<
0
||
(
result
=
vfprintf
(
fp
,
fmt
,
args
))
<
0
)
ThrowIOError
(
_
(
"System file error writing to file
\"
%s
\"
"
),
filename
.
GetData
(
)
);
ThrowIOError
(
_
(
"System file error writing to file
\"
"
)
+
filename
+
wxT
(
"
\"
"
)
);
va_end
(
args
);
va_end
(
args
);
...
@@ -3521,7 +3521,7 @@ void SPECCTRA_DB::ExportPCB( wxString filename, bool aNameChange ) throw( IOErro
...
@@ -3521,7 +3521,7 @@ void SPECCTRA_DB::ExportPCB( wxString filename, bool aNameChange ) throw( IOErro
if
(
!
fp
)
if
(
!
fp
)
{
{
ThrowIOError
(
_
(
"Unable to open file
\"
%s
\"
"
),
filename
.
GetData
(
)
);
ThrowIOError
(
_
(
"Unable to open file
\"
"
)
+
filename
+
wxT
(
"
\"
"
)
);
}
}
if
(
pcb
)
if
(
pcb
)
...
@@ -3546,7 +3546,7 @@ void SPECCTRA_DB::ExportSESSION( wxString filename )
...
@@ -3546,7 +3546,7 @@ void SPECCTRA_DB::ExportSESSION( wxString filename )
if
(
!
fp
)
if
(
!
fp
)
{
{
ThrowIOError
(
_
(
"Unable to open file
\"
%s
\"
"
),
filename
.
GetData
(
)
);
ThrowIOError
(
_
(
"Unable to open file
\"
"
)
+
filename
+
wxT
(
"
\"
"
)
);
}
}
if
(
session
)
if
(
session
)
...
...
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