Minor code cleaning.

This commit is contained in:
Wayne Stambaugh 2015-06-21 16:30:33 -04:00
parent 48d3371abd
commit 4d1feef597
2 changed files with 1 additions and 17 deletions

View File

@ -40,9 +40,7 @@
#include <help_common_strings.h>
/**
* @brief (Re)Create the menubar for the schematic frame
*/
void SCH_EDIT_FRAME::ReCreateMenuBar()
{
// Create and try to get the current menubar

View File

@ -177,11 +177,6 @@ void SCH_EDIT_FRAME::ReCreateHToolbar()
KiBitmap( import_footprint_names_xpm ),
HELP_IMPORT_FOOTPRINTS );
// set icon paddings
m_mainToolBar->SetToolBorderPadding(3); // padding
m_mainToolBar->SetToolSeparation(0);
//m_mainToolBar->SetMargins(0,1); // margins width and height
// after adding the tools to the toolbar, must call Realize() to reflect the changes
m_mainToolBar->Realize();
}
@ -265,11 +260,6 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
KiBitmap( delete_xpm ),
HELP_DELETE_ITEMS, wxITEM_CHECK );
// set icon paddings
m_drawToolBar->SetToolBorderPadding(2); // padding
m_drawToolBar->SetToolSeparation(0);
//m_drawToolBar->SetMargins(1,0); // margins width and height
m_drawToolBar->Realize();
}
@ -311,10 +301,6 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
_( "HV orientation for wires and bus" ),
wxITEM_CHECK );
// set icon paddings
m_optionsToolBar->SetToolBorderPadding(2); // padding
m_optionsToolBar->SetToolSeparation(0);
m_optionsToolBar->Realize();
}