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
1016448c
Commit
1016448c
authored
Apr 07, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change EESchema library viewer to stay on top of parent not all other windows.
parent
09523934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
viewlib_frame.cpp
eeschema/viewlib_frame.cpp
+14
-4
No files found.
eeschema/viewlib_frame.cpp
View file @
1016448c
...
...
@@ -83,13 +83,13 @@ static wxAcceleratorEntry accels[] =
LIB_VIEW_FRAME
::
LIB_VIEW_FRAME
(
wxWindow
*
father
,
CMP_LIBRARY
*
Library
,
wxSemaphore
*
semaphore
)
:
EDA_DRAW_FRAME
(
father
,
VIEWER_FRAME
,
_
(
"Library
b
rowser"
),
wxDefaultPosition
,
wxDefaultSize
)
EDA_DRAW_FRAME
(
father
,
VIEWER_FRAME
,
_
(
"Library
B
rowser"
),
wxDefaultPosition
,
wxDefaultSize
)
{
wxAcceleratorTable
table
(
ACCEL_TABLE_CNT
,
accels
);
m_FrameName
=
wxT
(
"ViewlibFrame"
);
m_ConfigPath
=
wxT
(
"LibraryViewer"
);
m_ConfigPath
=
wxT
(
"LibraryViewer"
);
// Give an icon
SetIcon
(
wxIcon
(
library_browse_xpm
)
);
...
...
@@ -103,7 +103,7 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( wxWindow* father, CMP_LIBRARY* Library, wxSemaph
m_exportToEeschemaCmpName
.
Empty
();
if
(
m_Semaphore
)
SetWindowStyle
(
GetWindowStyle
()
|
wx
STAY_ON_TOP
);
SetWindowStyle
(
GetWindowStyle
()
|
wx
FRAME_FLOAT_ON_PARENT
);
SetScreen
(
new
SCH_SCREEN
()
);
GetScreen
()
->
m_Center
=
true
;
// Center coordinate origins on screen.
...
...
@@ -251,6 +251,16 @@ void LIB_VIEW_FRAME::OnCloseWindow( wxCloseEvent& Event )
m_Semaphore
->
Post
();
Destroy
();
if
(
m_Semaphore
)
{
// Raise EESchema above all other windows when the library viewer is being used
// to select a component.
wxWindow
*
parent
=
GetParent
();
if
(
parent
)
parent
->
Raise
();
}
}
...
...
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