Browse Source

Pl_editor: fix missing hotkeys

pull/15/head
jean-pierre charras 6 years ago
parent
commit
56e3e988ff
  1. 2518
      pagelayout_editor/dialogs/dialog_new_dataitem_base.fbp
  2. 2
      pagelayout_editor/hotkeys.cpp
  3. 7
      pagelayout_editor/hotkeys.h
  4. 1
      pagelayout_editor/tools/pl_edit_tool.cpp

2518
pagelayout_editor/dialogs/dialog_new_dataitem_base.fbp
File diff suppressed because it is too large
View File

2
pagelayout_editor/hotkeys.cpp

@ -71,7 +71,7 @@ static EDA_HOTKEY HkZoomSelection( _HKI( "Zoom to Selection" ), HK_ZOOM_SELECTIO
GR_KB_CTRL + WXK_F5 );
static EDA_HOTKEY HkHelp( _HKI( "List Hotkeys" ), HK_HELP, GR_KB_CTRL + WXK_F1 );
static EDA_HOTKEY HkMoveItem( _HKI( "Move Item" ), HK_MOVE, 'M' );
static EDA_HOTKEY HkDeleteItem( _HKI( "Delete Item" ), HK_DELETE_ITEM, WXK_DELETE );
static EDA_HOTKEY HkDeleteItem( _HKI( "Delete Item" ), HK_DELETE, WXK_DELETE );
// Common: hotkeys_basic.h
static EDA_HOTKEY HkUndo( _HKI( "Undo" ), HK_UNDO, GR_KB_CTRL + 'Z', (int) wxID_UNDO );

7
pagelayout_editor/hotkeys.h

@ -6,7 +6,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013 CERN
* @author Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2016-2019 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
@ -35,8 +35,9 @@
// see also enum common_hotkey_id_command in hotkeys_basic.h
// for shared hotkeys id
enum hotkey_id_command {
HK_MOVE = HK_COMMON_END,
HK_DELETE_ITEM
HK_PL_EDITOR_START = HK_COMMON_END,
HK_MOVE,
HK_PL_EDITOR_END
};
// List of hotkey descriptors for PlEditor.

1
pagelayout_editor/tools/pl_edit_tool.cpp

@ -91,6 +91,7 @@ bool PL_EDIT_TOOL::Init()
selToolMenu.AddItem( PL_ACTIONS::cut, SELECTION_CONDITIONS::NotEmpty, 200 );
selToolMenu.AddItem( PL_ACTIONS::copy, SELECTION_CONDITIONS::NotEmpty, 200 );
selToolMenu.AddItem( PL_ACTIONS::paste, SELECTION_CONDITIONS::ShowAlways, 200 );
selToolMenu.AddItem( PL_ACTIONS::move, SELECTION_CONDITIONS::NotEmpty, 200 );
selToolMenu.AddItem( PL_ACTIONS::doDelete, SELECTION_CONDITIONS::NotEmpty, 200 );
return true;

Loading…
Cancel
Save