Commit 2515a806 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

initial work on PCBNew PLUGIN support, in preparation for nanometer board load and save

parent 5e3ca2e7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4,6 +4,14 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with
email address.


2011-Nov-27 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
  PCBNew
  * Add PLUGIN and IO_MGR classes.
  * Remove one argument from BOARD constructor,
  * add BOARD::SetWindowFrame()

2011-sept-13 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
  PCBNew locate code refactoring.
+3 −11
Original line number Diff line number Diff line
@@ -33,14 +33,6 @@ in the BIU coordinate system. Points falling on the snap grid are evenly spaced
in X and Y directions and are some integer multiple apart in this 2D space,
greater than one BIU.

*) Metric Board. This is a pcb board that has a great number of coordinates and
distances that happen to be some multiple of the BIU that is also a multiple of
a metric engineering unit such as micrometers.

*) Imperial Board.  This is a pcb board that has a great number of coordinates and
distances that happen to be some multiple of the BIU that is also a multiple of
an imperial engineering unit such as mils or inches.

Assumptions:
===========

@@ -97,10 +89,10 @@ then FMT_ENG will be set to "%.6Lg". For example:

#if USE_DOUBLE_BFU
typedef double          BFU;
#define FMT_ENG         ".%6g"
#define FMT_ENG         ".%10g"
#else
typedef long double     BFU;
#define FMT_ENG         ".%6Lg"
#define FMT_ENG         ".%10Lg"
#endif

A format string can then be built up using compile time concatenation of
@@ -158,7 +150,7 @@ Here are the required immediate need BOARD load functions:
of unity, since destination is a RAM BOARD using deci-mils as its BIU.

2) Legacy to nanometer loader. This loader uses a floating point scaling factor
of ________, since destination is a RAM BOARD using nanometers as its BIU, and
of 2540, since destination is a RAM BOARD using nanometers as its BIU, and
the source format is using deci-mils.

3) mm to nanometer loader.  This loader uses a floating point scaling factor
+3 −3
Original line number Diff line number Diff line
@@ -10,10 +10,10 @@ may choose to document this corresponding work in the CHANGELOG.txt file.


/*
 * 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) 1992-2011 <author>
 * Copyright (C) 1992-2011 Kicad Developers, see change_log.txt for contributors.
 * Copyright (C) 2011 <author>
 * Copyright (C) 2011 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
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME( CVPCB_MAINFRAME* father,
    icon.CopyFromBitmap( KiBitmap( icon_cvpcb_xpm ) );
    SetIcon( icon );

    SetBoard( new BOARD( NULL, this ) );
    SetBoard( new BOARD( this ) );
    SetScreen( new PCB_SCREEN() );

    LoadSettings();
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ GBR_TO_PCB_EXPORTER::GBR_TO_PCB_EXPORTER( GERBVIEW_FRAME * aFrame, FILE * aFile
{
    m_gerbview_frame = aFrame;
    m_file = aFile;
    m_pcb = new BOARD( NULL, m_gerbview_frame );
    m_pcb = new BOARD( m_gerbview_frame );
}


Loading