Commit 5cda6bc1 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

eagle plugin first work

parent ea467e67
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ set(PCB_COMMON_SRCS
    ../pcbnew/sel_layer.cpp
    ../pcbnew/pcb_plot_params.cpp
    ../pcbnew/io_mgr.cpp
    ../pcbnew/eagle_plugin.cpp
    ../pcbnew/legacy_plugin.cpp
    ../pcbnew/kicad_plugin.cpp
    pcb_plot_params_keywords.cpp
+0 −1
Original line number Diff line number Diff line
@@ -110,7 +110,6 @@ set(PCBNEW_SRCS
    drc.cpp
    drc_clearance_test_functions.cpp
    drc_marker_functions.cpp
    eagle_plugin.cpp
    edgemod.cpp
    edit.cpp
    editedge.cpp
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ public:
    unsigned m_RatsnestEndIdx;         // Ending point of ratsnests of this net
                                       // (excluded) in this buffer

    NETINFO_ITEM( BOARD_ITEM* aParent );
    NETINFO_ITEM( BOARD_ITEM* aParent, const wxString& aNetName = NETCLASS::Default, int aNetCode = 0 );
    ~NETINFO_ITEM();

    /**
+3 −3
Original line number Diff line number Diff line
@@ -22,9 +22,9 @@
/* class NETINFO_ITEM: handle data relative to a given net */
/*********************************************************/

NETINFO_ITEM::NETINFO_ITEM( BOARD_ITEM* aParent )
NETINFO_ITEM::NETINFO_ITEM( BOARD_ITEM* aParent, const wxString& aNetName, int aNetCode )
{
    SetNet( 0 );
    SetNet( aNetCode );
    m_NbNodes  = 0;
    m_NbLink   = 0;
    m_NbNoconn = 0;
@@ -33,7 +33,7 @@ NETINFO_ITEM::NETINFO_ITEM( BOARD_ITEM* aParent )
                                // general buffer of ratsnest
    m_RatsnestEndIdx   = 0;     // Ending point of ratsnests of this net

    m_NetClassName = NETCLASS::Default;
    m_NetClassName = aNetName;

    m_NetClass = 0;
}
+5 −5
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ void NETINFO_LIST::buildListOfNets()

    // Create and add the "unconnected net", always existing,
    // used to handle pads and tracks that are not member of a "real" net
    net_item = new NETINFO_ITEM( (BOARD_ITEM*) m_Parent );
    net_item = new NETINFO_ITEM( m_Parent );
    AppendNet( net_item );

    // Build the PAD list, sorted by net
@@ -108,15 +108,15 @@ void NETINFO_LIST::buildListOfNets()
        if( last_pad == NULL || ( pad->GetNetname() != last_pad->GetNetname() ) )
        {
            netcode++;
            net_item = new NETINFO_ITEM( (BOARD_ITEM*)m_Parent );
            net_item->SetNet( netcode );
            net_item->SetNetname( pad->GetNetname() );
            net_item = new NETINFO_ITEM( m_Parent, pad->GetNetname(), netcode );
            AppendNet( net_item );
        }

        pad->SetNet( netcode );
        net_item->m_PadInNetList.push_back( pad );

        nodes_count++;

        last_pad = pad;
    }

Loading