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
a441900d
Commit
a441900d
authored
Dec 22, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started specctra dsn import/export
parent
467d9d36
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1334 additions
and
0 deletions
+1334
-0
change_log.txt
change_log.txt
+9
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+7
-0
dsn.cpp
pcbnew/dsn.cpp
+1227
-0
specctra.cpp
pcbnew/specctra.cpp
+91
-0
No files found.
change_log.txt
View file @
a441900d
...
...
@@ -4,6 +4,15 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.
2007-Dec-22 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
+all
added strlower() to common.h and string.cpp.
fixed compiler warnings in common/gr_basic.cpp and pcbnew/clean.cpp
+pcbnew
started the DSN file import/export for SPECCTRA routers, adding dsn.cpp and
specctra.cpp, with "stand alone" compile support for it in pcbnew/CMakeLists.txt.
2007-Dec-17 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
...
...
pcbnew/CMakeLists.txt
View file @
a441900d
...
...
@@ -116,6 +116,7 @@ SET(PCBNEW_SRCS
set_color.cpp
set_grid.cpp
solve.cpp
# specctra.cpp
surbrill.cpp
swap_layers.cpp
tool_modedit.cpp
...
...
@@ -153,6 +154,12 @@ ENDIF(APPLE)
ADD_EXECUTABLE
(
pcbnew WIN32 MACOSX_BUNDLE
${
PCBNEW_SRCS
}
${
PCBNEW_EXTRA_SRCS
}
${
PCBNEW_RESOURCES
}
)
# This one gets made only when testing
SET_SOURCE_FILES_PROPERTIES
(
dsn.cpp PROPERTIES COMPILE_FLAGS -DSTANDALONE
)
ADD_EXECUTABLE
(
dsntest EXCLUDE_FROM_ALL dsn.cpp
)
TARGET_LINK_LIBRARIES
(
dsntest common
${
wxWidgets_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
pcbnew common 3d-viewer
${
wxWidgets_LIBRARIES
}
)
INSTALL
(
TARGETS pcbnew RUNTIME DESTINATION
${
KICAD_BIN
}
)
pcbnew/dsn.cpp
0 → 100644
View file @
a441900d
This diff is collapsed.
Click to expand it.
pcbnew/specctra.cpp
0 → 100644
View file @
a441900d
/*
* 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 Kicad Developers, see change_log.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <stdio.h>
#include "fctsys.h"
#include "pcbstruct.h"
/**
* Class SPECCTRA_DB
* holds a DSN data tree, usually coming from a DSN file.
*/
class
SPECCTRA_DB
{
FILE
*
fp
;
/**
* Function print
* formats and writes text to the output stream.
* @param fmt A printf style format string.
* @param ... a variable list of parameters that will get blended into
* the output under control of the format string.
*/
void
print
(
const
char
*
fmt
,
...
);
public
:
SPECCTRA_DB
(
FILE
*
aFile
)
:
fp
(
aFile
)
{
}
/**
* Function Export
* writes the given BOARD out as a SPECTRA DSN format file.
* @param aBoard The BOARD to save.
*/
void
Export
(
BOARD
*
aBoard
);
};
void
SPECCTRA_DB
::
print
(
const
char
*
fmt
,
...
)
{
va_list
args
;
va_start
(
args
,
fmt
);
vfprintf
(
fp
,
fmt
,
args
);
va_end
(
args
);
}
void
SPECCTRA_DB
::
Export
(
BOARD
*
aBoard
)
{
}
//EOF
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