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
42f97b4d
Commit
42f97b4d
authored
Feb 13, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed zoom issues with F1 and F2 hot keys
parent
636eace7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
67 deletions
+27
-67
hotkeys.cpp
eeschema/hotkeys.cpp
+1
-1
menubar.cpp
eeschema/menubar.cpp
+13
-13
hershey_fonts.h.unused
include/hershey_fonts.h.unused
+0
-39
menubar_pcbframe.cpp
pcbnew/menubar_pcbframe.cpp
+13
-14
No files found.
eeschema/hotkeys.cpp
View file @
42f97b4d
...
...
@@ -771,7 +771,7 @@ void WinEDA_LibeditFrame::OnHotKey( wxDC* DC, int hotkey,
cmd
.
SetId
(
ID_POPUP_LIBEDIT_ROTATE_GRAPHIC_TEXT
);
GetEventHandler
()
->
ProcessEvent
(
cmd
);
break
;
default
:
break
;
}
...
...
eeschema/menubar.cpp
View file @
42f97b4d
...
...
@@ -203,26 +203,26 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
*/
wxMenu
*
viewMenu
=
new
wxMenu
;
/* Important Note for ZOOM IN and ZOOM OUT commands from menubar:
* we cannot add hotkey info here, because the hotkey HK_ZOOM_IN and HK_ZOOM_OUT
* events(default = WXK_F1 and WXK_F2) are *NOT* equivalent to this menu command:
* zoom in and out from hotkeys are equivalent to the pop up menu zoom
* From here, zoomming is made around the screen center
* From hotkeys, zoomming is made around the mouse cursor position
* (obvioulsy not possible from the toolbat or menubar command)
*
* in others words HK_ZOOM_IN and HK_ZOOM_OUT *are NOT* accelerators
* for Zoom in and Zoom out sub menus
*/
/* Zoom in */
#if !defined( __WXMAC__)
text
=
AddHotkeyName
(
_
(
"Zoom In"
),
s_Schematic_Hokeys_Descr
,
HK_ZOOM_IN
);
#else
text
=
_
(
"Zoom In
\t
Ctrl++"
);
#endif
text
=
_
(
"Zoom In"
);
item
=
new
wxMenuItem
(
viewMenu
,
ID_ZOOM_IN
,
text
,
_
(
"Zoom In"
),
wxITEM_NORMAL
);
item
->
SetBitmap
(
zoom_in_xpm
);
viewMenu
->
Append
(
item
);
/* Zoom out */
#if !defined( __WXMAC__)
text
=
AddHotkeyName
(
_
(
"Zoom Out"
),
s_Schematic_Hokeys_Descr
,
HK_ZOOM_OUT
);
#else
text
=
_
(
"Zoom Out
\t
Ctrl+-"
);
#endif
/* !defined( __WXMAC__) */
text
=
_
(
"Zoom Out"
);
item
=
new
wxMenuItem
(
viewMenu
,
ID_ZOOM_OUT
,
text
,
_
(
"Zoom Out"
),
wxITEM_NORMAL
);
item
->
SetBitmap
(
zoom_out_xpm
);
...
...
include/hershey_fonts.h.unused
deleted
100644 → 0
View file @
636eace7
/* Hershey fonts */
/* This distribution of the Hershey Fonts may be used by anyone for
* any purpose, commercial or otherwise, providing that:
* 1. The following acknowledgements must be distributed with
* the font data:
* - The Hershey Fonts were originally created by Dr.
* A. V. Hershey while working at the U. S.
* National Bureau of Standards.
* - The format of the Font data in this distribution
* was originally created by
* James Hurt
* Cognition, Inc.
* 900 Technology Park Drive
* Billerica, MA 01821
* (mit-eddie!ci-dandelion!hurt)
* 2. The font data in this distribution may be converted into
* any other format *EXCEPT* the format distributed by
* the U.S. NTIS (which organization holds the rights
* to the distribution and use of the font data in that
* particular format). Not that anybody would really
* *want* to use their format... each point is described
* in eight bytes as "xxx yyy:", where xxx and yyy are
* the coordinate values as ASCII numbers.
*/
/*
* Hershey fonts are vectored fonts.
* Note one can find many formats for these vectored fonts
* here is the format used :
* >shapes are a set of polygons.
* >A given shape includes one or more polygons.
* >corner coordinates are coded by a XY pair.
* >The value of each coordinate is <ascii code> - 'R'
* >The coordinate (-50,0) or " R" is the Pen Up command (end of the current polygon)
*/
#include "HersheySimplexRoman_sans_normal.h"
pcbnew/menubar_pcbframe.cpp
View file @
42f97b4d
...
...
@@ -306,27 +306,26 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
*/
wxMenu
*
viewMenu
=
new
wxMenu
;
/* Important Note for ZOOM IN and ZOOM OUT commands from menubar:
* we cannot add hotkey info here, because the hotkey HK_ZOOM_IN and HK_ZOOM_OUT
* events(default = WXK_F1 and WXK_F2) are *NOT* equivalent to this menu command:
* zoom in and out from hotkeys are equivalent to the pop up menu zoom
* From here, zoomming is made around the screen center
* From hotkeys, zoomming is made around the mouse cursor position
* (obvioulsy not possible from the toolbat or menubar command)
*
* in others words HK_ZOOM_IN and HK_ZOOM_OUT *are NOT* accelerators
* for Zoom in and Zoom out sub menus
*/
/* Zoom in */
#if !defined( __WXMAC__)
text
=
AddHotkeyName
(
_
(
"Zoom In"
),
s_Pcbnew_Editor_Hokeys_Descr
,
HK_ZOOM_IN
);
#else
text
=
_
(
"Zoom In
\t
Ctrl++"
);
#endif
text
=
_
(
"Zoom In"
);
item
=
new
wxMenuItem
(
viewMenu
,
ID_ZOOM_IN
,
text
,
_
(
"Zoom In"
),
wxITEM_NORMAL
);
item
->
SetBitmap
(
zoom_in_xpm
);
viewMenu
->
Append
(
item
);
/* Zoom out */
#if !defined( __WXMAC__)
text
=
AddHotkeyName
(
_
(
"Zoom out"
),
s_Pcbnew_Editor_Hokeys_Descr
,
HK_ZOOM_OUT
);
#else
text
=
_
(
"Zoom Out
\t
Ctrl+-"
);
#endif
text
=
_
(
"Zoom out"
);
item
=
new
wxMenuItem
(
viewMenu
,
ID_ZOOM_OUT
,
text
,
_
(
"Zoom Out"
),
wxITEM_NORMAL
);
item
->
SetBitmap
(
zoom_out_xpm
);
...
...
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