Commit 76aa3f6e authored by Wayne Stambaugh's avatar Wayne Stambaugh
Browse files

EESchema schematic object refactoring and header rationalization.

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


2010-nov-10 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
++EESchema
  * Header file rationalization.
  * Move schematic object load code into the appropriate schematic object.


2010-nov-3 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
2010-nov-3 UPDATE Wayne Stambaugh <stambaughw@verizon.net>
================================================================================
================================================================================
++common
++common
+1 −2
Original line number Original line Diff line number Diff line
@@ -12,13 +12,12 @@
#include "common.h"
#include "common.h"
#include "base_struct.h"
#include "base_struct.h"
#include "class_drawpanel.h"
#include "class_drawpanel.h"
#include "class_base_screen.h"
#include "class_sch_screen.h"
#include "wxstruct.h"
#include "wxstruct.h"


#include "wx/valgen.h"
#include "wx/valgen.h"


#ifdef EESCHEMA
#ifdef EESCHEMA
#include "program.h"
#include "general.h"
#include "general.h"
#endif
#endif


+7 −1
Original line number Original line Diff line number Diff line
@@ -11,7 +11,6 @@
#include "class_drawpanel.h"
#include "class_drawpanel.h"
#include "wxEeschemaStruct.h"
#include "wxEeschemaStruct.h"


#include "program.h"
#include "general.h"
#include "general.h"
#include "protos.h"
#include "protos.h"


@@ -29,10 +28,17 @@ SCH_ITEM::SCH_ITEM( EDA_BaseStruct* aParent, KICAD_T aType ) :
    m_Layer = 0;
    m_Layer = 0;
}
}



SCH_ITEM::~SCH_ITEM()
SCH_ITEM::~SCH_ITEM()
{
{
    // Do not let the connections container go out of scope with any ojbects or they
    // will be deleted by the container will cause the EESchema to crash.  These objects
    // are owned by the sheet object container.
    if( !m_connections.empty() )
        m_connections.release();
}
}



/**
/**
 * place the struct in EEDrawList.
 * place the struct in EEDrawList.
 * if it is a new item, it it also put in undo list
 * if it is a new item, it it also put in undo list
+0 −1
Original line number Original line Diff line number Diff line
@@ -122,7 +122,6 @@ set(EESCHEMA_SRCS
    operations_on_items_lists.cpp
    operations_on_items_lists.cpp
    pinedit.cpp
    pinedit.cpp
    plot.cpp
    plot.cpp
    read_from_file_schematic_items_descriptions.cpp
    schedit.cpp
    schedit.cpp
    schematic_undo_redo.cpp
    schematic_undo_redo.cpp
    schframe.cpp
    schframe.cpp
+3 −1
Original line number Original line Diff line number Diff line
@@ -10,10 +10,12 @@
#include "class_drawpanel.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "confirm.h"
#include "wxstruct.h"
#include "wxstruct.h"
#include "wxEeschemaStruct.h"


#include "program.h"
#include "class_library.h"
#include "class_library.h"
#include "protos.h"
#include "protos.h"
#include "class_sch_screen.h"
#include "class_sch_component.h"
#include "netlist.h"
#include "netlist.h"
#include "lib_pin.h"
#include "lib_pin.h"


Loading