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:
@@ -58,7 +58,7 @@ WinEDA_DrawFrame::WinEDA_DrawFrame( wxWindow* father, int idtype,
|
||||
MsgPanel = NULL;
|
||||
m_CurrentScreen = NULL;
|
||||
m_ID_current_state = 0;
|
||||
m_ID_last_state = 0;
|
||||
m_ID_last_state = 0;
|
||||
m_HTOOL_current_state = 0;
|
||||
m_Draw_Axis = FALSE; // TRUE pour avoir les axes dessines
|
||||
m_Draw_Grid = FALSE; // TRUE pour avoir la axes dessinee
|
||||
@@ -108,10 +108,10 @@ WinEDA_DrawFrame::WinEDA_DrawFrame( wxWindow* father, int idtype,
|
||||
}
|
||||
|
||||
|
||||
/****************************************/
|
||||
WinEDA_DrawFrame::~WinEDA_DrawFrame()
|
||||
/****************************************/
|
||||
{
|
||||
if( m_CurrentScreen != NULL )
|
||||
delete m_CurrentScreen;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user