|
|
|
@ -3,7 +3,7 @@ |
|
|
|
* |
|
|
|
* Copyright (C) 2015 CERN |
|
|
|
* @author Maciej Suminski <maciej.suminski@cern.ch> |
|
|
|
* Copyright (C) 2015-2017 KiCad Developers, see AUTHORS.txt for contributors. |
|
|
|
* Copyright (C) 2015-2018 KiCad Developers, see AUTHORS.txt for contributors. |
|
|
|
* |
|
|
|
* This program is free software; you can redistribute it and/or |
|
|
|
* modify it under the terms of the GNU General Public License |
|
|
|
@ -51,6 +51,13 @@ GRID_MENU::GRID_MENU( EDA_DRAW_FRAME* aParent ) : m_parent( aParent ) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CONTEXT_MENU* GRID_MENU::Clone() const |
|
|
|
{ |
|
|
|
// Just return a fresh menu. This keeps the units up-to-date.
|
|
|
|
return create(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
OPT_TOOL_EVENT GRID_MENU::eventHandler( const wxMenuEvent& aEvent ) |
|
|
|
{ |
|
|
|
OPT_TOOL_EVENT event( ACTIONS::gridPreset.MakeEvent() ); |
|
|
|
|