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
4c9cf1df
Commit
4c9cf1df
authored
Feb 12, 2009
by
stambaughw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zoom accelerator keys in schematic library viewer for wxMSW.
parent
3f6f3c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
viewlib_frame.cpp
eeschema/viewlib_frame.cpp
+8
-10
No files found.
eeschema/viewlib_frame.cpp
View file @
4c9cf1df
...
...
@@ -41,16 +41,12 @@ END_EVENT_TABLE()
* This emulates the zoom menu entries found in the other Kicad applications.
* The library viewer does not have any menus so add an accelerator table to
* the main frame.
*
* FIXME: For some reason this doesn't work correctly in windows. Works fine
* in GTK2 in Linux. Not tested on Mac. Adding EVT_MENU_RANGE() to
* event table doesn't solve the problem either.
*/
static
wxAcceleratorEntry
accels
[]
=
{
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F1
,
ID_ZOOM_IN
),
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F2
,
ID_ZOOM_OUT
),
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F1
,
ID_
POPUP_
ZOOM_IN
),
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F2
,
ID_
POPUP_
ZOOM_OUT
),
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F3
,
ID_ZOOM_REDRAW
),
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F4
,
ID_
ZOOM_PAGE
)
wxAcceleratorEntry
(
wxACCEL_NORMAL
,
WXK_F4
,
ID_
POPUP_ZOOM_CENTER
)
};
#define ACCEL_TABLE_CNT ( sizeof( accels ) / sizeof( wxAcceleratorEntry ) )
...
...
@@ -89,7 +85,7 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father,
m_LibListSize
.
x
=
150
;
// Width of library list
m_LibListSize
.
y
=
-
1
;
m_LibList
=
new
wxListBox
(
this
,
ID_LIBVIEW_LIB_LIST
,
wxPoint
(
0
,
0
),
m_LibListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
m_LibListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
m_LibList
->
SetFont
(
*
g_DialogFont
);
m_LibList
->
SetBackgroundColour
(
wxColour
(
255
,
255
,
255
)
);
// Library background listbox color (white)
m_LibList
->
SetForegroundColour
(
wxColour
(
0
,
0
,
0
)
);
// Library foreground listbox color (black)
...
...
@@ -99,7 +95,8 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father,
m_CmpListSize
.
x
=
150
;
// Width of component list
m_CmpListSize
.
y
=
-
1
;
m_CmpList
=
new
wxListBox
(
this
,
ID_LIBVIEW_CMP_LIST
,
wxPoint
(
m_LibListSize
.
x
,
0
),
m_CmpList
=
new
wxListBox
(
this
,
ID_LIBVIEW_CMP_LIST
,
wxPoint
(
m_LibListSize
.
x
,
0
),
m_CmpListSize
,
0
,
NULL
,
wxLB_HSCROLL
);
m_CmpList
->
SetFont
(
*
g_DialogFont
);
m_CmpList
->
SetBackgroundColour
(
wxColour
(
255
,
255
,
255
)
);
// Component background listbox color (white)
...
...
@@ -112,7 +109,8 @@ WinEDA_ViewlibFrame::WinEDA_ViewlibFrame( wxWindow* father,
if
(
m_LibList
)
ReCreateListLib
();
DisplayLibInfos
();
SetAcceleratorTable
(
table
);
if
(
DrawPanel
)
DrawPanel
->
SetAcceleratorTable
(
table
);
BestZoom
();
Show
(
TRUE
);
}
...
...
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