You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2015 CERN
  5. * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
  6. * @author Maciej Suminski <maciej.suminski@cern.ch>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version 2
  11. * of the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, you may find one here:
  20. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  21. * or you may search the http://www.gnu.org website for the version 2 license,
  22. * or you may write to the Free Software Foundation, Inc.,
  23. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  24. */
  25. #ifndef GRID_MENU_H
  26. #define GRID_MENU_H
  27. #include <tool/action_menu.h>
  28. class EDA_DRAW_FRAME;
  29. class APP_SETTINGS_BASE;
  30. class GRID_MENU : public ACTION_MENU
  31. {
  32. public:
  33. GRID_MENU( EDA_DRAW_FRAME* aParent );
  34. void UpdateTitle() override;
  35. static void BuildChoiceList( wxArrayString* aGridsList, APP_SETTINGS_BASE* aCfg,
  36. EDA_DRAW_FRAME* aParent );
  37. private:
  38. ACTION_MENU* create() const override
  39. {
  40. return new GRID_MENU( m_parent );
  41. }
  42. OPT_TOOL_EVENT eventHandler( const wxMenuEvent& aEvent ) override;
  43. void update() override;
  44. EDA_DRAW_FRAME* m_parent;
  45. };
  46. #endif /* GRID_MENU_H */