Component library editor improvements and minor bug fixes.
* Component library objects renamed for improved readability. * Fields now move when selected in library editor. * Add copy constructor to all library draw and library component objects. * Added copy constructor to EDA_BaseStruct. * Delete base screen in WinEDA_DrawFrame destructor to prevent potential memory leak. * Fixed memory access bug when replacing and adding a component to library. * Moved library component block manipulation code into component object. * Removed all of the global variables used by the library editor main window object. * The usual code cleaning and refactoring.
This commit is contained in:
@@ -41,6 +41,18 @@ EDA_BaseStruct::EDA_BaseStruct( KICAD_T idType )
|
||||
}
|
||||
|
||||
|
||||
EDA_BaseStruct::EDA_BaseStruct( const EDA_BaseStruct& base )
|
||||
{
|
||||
m_StructType = base.m_StructType;
|
||||
m_Parent = base.m_Parent;
|
||||
m_Son = base.m_Son;
|
||||
m_Flags = base.m_Flags;
|
||||
m_TimeStamp = base.m_TimeStamp;
|
||||
m_Status = base.m_Status;
|
||||
m_Selected = base.m_Selected;
|
||||
}
|
||||
|
||||
|
||||
/********************************************/
|
||||
void EDA_BaseStruct::InitVars()
|
||||
/********************************************/
|
||||
|
||||
Reference in New Issue
Block a user