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
d7a85428
Commit
d7a85428
authored
Jan 02, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more specctra work
parent
ed4b9015
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
448 additions
and
121 deletions
+448
-121
dsn.cpp
pcbnew/dsn.cpp
+21
-13
dsn.h
pcbnew/dsn.h
+12
-2
specctra.cpp
pcbnew/specctra.cpp
+415
-106
No files found.
pcbnew/dsn.cpp
View file @
d7a85428
...
...
@@ -2,7 +2,7 @@
/*
* This program source code file is part of KICAD, a free EDA CAD application.
*
* Copyright (C) 2007
Dick Hollenbeck, dick@softplc.com
* Copyright (C) 2007
-2008 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2007 Kicad Developers, see change_log.txt for contributors.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -506,50 +506,58 @@ int LEXER::findToken( const std::string& tok )
}
wxString
LEXER
::
GetTokenText
(
DSN_T
aTok
)
const
char
*
LEXER
::
GetTokenText
(
DSN_T
aTok
)
{
wxString
ret
;
const
char
*
ret
;
if
(
aTok
<
0
)
{
switch
(
aTok
)
{
case
T_QUOTE_DEF
:
ret
<<
_
(
"'quoted text delimiter'"
)
;
ret
=
"'quoted text delimiter'"
;
break
;
case
T_DASH
:
ret
<<
wxT
(
"'-'"
)
;
ret
=
"'-'"
;
break
;
case
T_SYMBOL
:
ret
<<
_
(
"'symbol'"
)
;
ret
=
"'symbol'"
;
break
;
case
T_NUMBER
:
ret
<<
_
(
"'number'"
)
;
ret
=
"'number'"
;
break
;
case
T_RIGHT
:
ret
<<
wxT
(
"')'"
)
;
ret
=
"')'"
;
break
;
case
T_LEFT
:
ret
<<
wxT
(
"'('"
)
;
ret
=
"'('"
;
break
;
case
T_STRING
:
ret
<<
_
(
"
\"
quoted string
\"
"
)
;
ret
=
"'quoted string'"
;
break
;
case
T_EOF
:
ret
<<
_
(
"'end of file'"
)
;
ret
=
"'end of file'"
;
break
;
default
:
;
ret
=
"???"
;
}
}
else
{
ret
<<
wxT
(
"'"
)
<<
CONV_FROM_UTF8
(
tokens
[
aTok
].
name
)
<<
wxT
(
"'"
)
;
ret
=
tokens
[
aTok
].
name
;
}
return
ret
;
}
wxString
LEXER
::
GetTokenString
(
DSN_T
aTok
)
{
wxString
ret
=
CONV_FROM_UTF8
(
GetTokenText
(
aTok
)
);
return
ret
;
}
void
LEXER
::
ThrowIOError
(
wxString
aText
,
int
charOffset
)
throw
(
IOError
)
{
...
...
pcbnew/dsn.h
View file @
d7a85428
/*
* This program source code file is part of KICAD, a free EDA CAD application.
*
* Copyright (C) 2007
Dick Hollenbeck, dick@softplc.com
* Copyright (C) 2007
-2008 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2007 Kicad Developers, see change_log.txt for contributors.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -606,8 +606,18 @@ public:
*/
void
ThrowIOError
(
wxString
aText
,
int
charOffset
)
throw
(
IOError
);
/**
* Function GetTokenString
* returns the wxString representation of a DSN_T value.
*/
static
wxString
GetTokenString
(
DSN_T
aTok
);
wxString
GetTokenText
(
DSN_T
aTok
);
/**
* Function GetTokenString
* returns the C string representation of a DSN_T value.
*/
static
const
char
*
GetTokenText
(
DSN_T
aTok
);
/**
...
...
pcbnew/specctra.cpp
View file @
d7a85428
This diff is collapsed.
Click to expand it.
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