Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
e373850d
Commit
e373850d
authored
Dec 06, 2014
by
Nick Østergaard
Committed by
Wayne Stambaugh
Dec 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add remove fill and fill all zones hot keys.
parent
0e996cac
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
hotkeys.cpp
pcbnew/hotkeys.cpp
+5
-0
hotkeys.h
pcbnew/hotkeys.h
+3
-1
hotkeys_board_editor.cpp
pcbnew/hotkeys_board_editor.cpp
+8
-0
onrightclick.cpp
pcbnew/onrightclick.cpp
+6
-2
No files found.
pcbnew/hotkeys.cpp
View file @
e373850d
...
...
@@ -126,6 +126,10 @@ static EDA_HOTKEY HkCanvasOpenGL( wxT( "Switch to OpenGL Canvas" ),
static
EDA_HOTKEY
HkCanvasCairo
(
wxT
(
"Switch to Cairo Canvas"
),
HK_CANVAS_CAIRO
,
WXK_F12
);
static
EDA_HOTKEY
HkZoneFillOrRefill
(
wxT
(
"Fill or Refill All Zones"
),
HK_ZONE_FILL_OR_REFILL
,
'B'
);
static
EDA_HOTKEY
HkZoneRemoveFilled
(
wxT
(
"Remove Filled Areas in All Zones"
),
HK_ZONE_REMOVE_FILLED
,
'N'
);
/* Fit on Screen */
#if !defined( __WXMAC__ )
static
EDA_HOTKEY
HkZoomAuto
(
wxT
(
"Zoom Auto"
),
HK_ZOOM_AUTO
,
WXK_HOME
);
...
...
@@ -289,6 +293,7 @@ EDA_HOTKEY* board_edit_Hotkey_List[] =
&
HkRecordMacros8
,
&
HkCallMacros8
,
&
HkRecordMacros9
,
&
HkCallMacros9
,
&
HkSwitchHighContrastMode
,
&
HkCanvasDefault
,
&
HkCanvasCairo
,
&
HkCanvasOpenGL
,
&
HkZoneFillOrRefill
,
&
HkZoneRemoveFilled
,
NULL
};
...
...
pcbnew/hotkeys.h
View file @
e373850d
...
...
@@ -114,7 +114,9 @@ enum hotkey_id_commnand {
HK_CANVAS_OPENGL
,
HK_CANVAS_CAIRO
,
HK_LEFT_CLICK
,
HK_LEFT_DCLICK
HK_LEFT_DCLICK
,
HK_ZONE_FILL_OR_REFILL
,
HK_ZONE_REMOVE_FILLED
};
// Full list of hotkey descriptors for board editor and footprint editor
...
...
pcbnew/hotkeys_board_editor.cpp
View file @
e373850d
...
...
@@ -41,6 +41,7 @@
#include <pcbnew.h>
#include <pcbnew_id.h>
#include <hotkeys.h>
#include <class_zone.h>
/* How to add a new hotkey:
* see hotkeys.cpp
...
...
@@ -566,6 +567,13 @@ bool PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
case
HK_CANVAS_DEFAULT
:
evt_type
=
ID_MENU_CANVAS_DEFAULT
;
break
;
case
HK_ZONE_FILL_OR_REFILL
:
evt_type
=
ID_POPUP_PCB_FILL_ALL_ZONES
;
break
;
case
HK_ZONE_REMOVE_FILLED
:
evt_type
=
ID_POPUP_PCB_REMOVE_FILLED_AREAS_IN_ALL_ZONES
;
break
;
}
if
(
evt_type
!=
0
)
...
...
pcbnew/onrightclick.cpp
View file @
e373850d
...
...
@@ -319,10 +319,14 @@ bool PCB_EDIT_FRAME::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
if
(
GetBoard
()
->
m_ZoneDescriptorList
.
size
()
>
0
)
{
aPopMenu
->
AppendSeparator
();
msg
=
AddHotkeyName
(
_
(
"Fill or Refill All Zones"
),
g_Board_Editor_Hokeys_Descr
,
HK_ZONE_FILL_OR_REFILL
);
AddMenuItem
(
aPopMenu
,
ID_POPUP_PCB_FILL_ALL_ZONES
,
_
(
"Fill or Refill All Zones"
),
KiBitmap
(
fill_zone_xpm
)
);
msg
,
KiBitmap
(
fill_zone_xpm
)
);
msg
=
AddHotkeyName
(
_
(
"Remove Filled Areas in All Zones"
),
g_Board_Editor_Hokeys_Descr
,
HK_ZONE_REMOVE_FILLED
);
AddMenuItem
(
aPopMenu
,
ID_POPUP_PCB_REMOVE_FILLED_AREAS_IN_ALL_ZONES
,
_
(
"Remove Filled Areas in All Zones"
)
,
KiBitmap
(
zone_unfill_xpm
)
);
msg
,
KiBitmap
(
zone_unfill_xpm
)
);
aPopMenu
->
AppendSeparator
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment