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
6c0c4dbe
Commit
6c0c4dbe
authored
Feb 19, 2012
by
Miguel Angel Ajo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added hotkey for high contrast mode as 'H'
parent
5208bf99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
hotkeys.cpp
pcbnew/hotkeys.cpp
+3
-1
hotkeys.h
pcbnew/hotkeys.h
+2
-1
hotkeys_board_editor.cpp
pcbnew/hotkeys_board_editor.cpp
+4
-0
No files found.
pcbnew/hotkeys.cpp
View file @
6c0c4dbe
...
@@ -78,7 +78,8 @@ static EDA_HOTKEY HkLock_Unlock_Footprint( wxT( "Lock/Unlock Footprint" ),
...
@@ -78,7 +78,8 @@ static EDA_HOTKEY HkLock_Unlock_Footprint( wxT( "Lock/Unlock Footprint" ),
static
EDA_HOTKEY
HkDelete
(
wxT
(
"Delete Track or Footprint"
),
HK_DELETE
,
WXK_DELETE
);
static
EDA_HOTKEY
HkDelete
(
wxT
(
"Delete Track or Footprint"
),
HK_DELETE
,
WXK_DELETE
);
static
EDA_HOTKEY
HkResetLocalCoord
(
wxT
(
"Reset Local Coordinates"
),
static
EDA_HOTKEY
HkResetLocalCoord
(
wxT
(
"Reset Local Coordinates"
),
HK_RESET_LOCAL_COORD
,
' '
);
HK_RESET_LOCAL_COORD
,
' '
);
static
EDA_HOTKEY
HkSwitchHighContrastMode
(
wxT
(
"Switch Highcontrast mode"
),
HK_SWITCH_HIGHCONTRAST_MODE
,
'H'
);
/* Fit on Screen */
/* Fit on Screen */
#if !defined( __WXMAC__ )
#if !defined( __WXMAC__ )
static
EDA_HOTKEY
HkZoomAuto
(
wxT
(
"Zoom Auto"
),
HK_ZOOM_AUTO
,
WXK_HOME
);
static
EDA_HOTKEY
HkZoomAuto
(
wxT
(
"Zoom Auto"
),
HK_ZOOM_AUTO
,
WXK_HOME
);
...
@@ -224,6 +225,7 @@ EDA_HOTKEY* board_edit_Hotkey_List[] =
...
@@ -224,6 +225,7 @@ EDA_HOTKEY* board_edit_Hotkey_List[] =
&
HkRecordMacros4
,
&
HkCallMacros4
,
&
HkRecordMacros5
,
&
HkCallMacros5
,
&
HkRecordMacros4
,
&
HkCallMacros4
,
&
HkRecordMacros5
,
&
HkCallMacros5
,
&
HkRecordMacros6
,
&
HkCallMacros6
,
&
HkRecordMacros7
,
&
HkCallMacros7
,
&
HkRecordMacros6
,
&
HkCallMacros6
,
&
HkRecordMacros7
,
&
HkCallMacros7
,
&
HkRecordMacros8
,
&
HkCallMacros8
,
&
HkRecordMacros9
,
&
HkCallMacros9
,
&
HkRecordMacros8
,
&
HkCallMacros8
,
&
HkRecordMacros9
,
&
HkCallMacros9
,
&
HkSwitchHighContrastMode
,
NULL
NULL
};
};
...
...
pcbnew/hotkeys.h
View file @
6c0c4dbe
...
@@ -76,7 +76,8 @@ enum hotkey_id_commnand {
...
@@ -76,7 +76,8 @@ enum hotkey_id_commnand {
HK_RECORD_MACROS_8
,
HK_RECORD_MACROS_8
,
HK_CALL_MACROS_8
,
HK_CALL_MACROS_8
,
HK_RECORD_MACROS_9
,
HK_RECORD_MACROS_9
,
HK_CALL_MACROS_9
HK_CALL_MACROS_9
,
HK_SWITCH_HIGHCONTRAST_MODE
,
};
};
// Full list of hotkey descriptors for board editor and footprint editor
// Full list of hotkey descriptors for board editor and footprint editor
...
...
pcbnew/hotkeys_board_editor.cpp
View file @
6c0c4dbe
...
@@ -625,6 +625,10 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
...
@@ -625,6 +625,10 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
case
HK_FLIP_FOOTPRINT
:
// move to other side
case
HK_FLIP_FOOTPRINT
:
// move to other side
OnHotkeyRotateItem
(
HK_FLIP_FOOTPRINT
);
OnHotkeyRotateItem
(
HK_FLIP_FOOTPRINT
);
break
;
break
;
case
HK_SWITCH_HIGHCONTRAST_MODE
:
// switch to high contrast mode and refresh the canvas
DisplayOpt
.
ContrastModeDisplay
=
!
DisplayOpt
.
ContrastModeDisplay
;
m_canvas
->
Refresh
();
break
;
}
}
if
(
evt_type
!=
0
)
if
(
evt_type
!=
0
)
...
...
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