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
Show 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,7 +83,7 @@ static wxAcceleratorEntry accels[] =
...
@@ -83,7 +83,7 @@ static wxAcceleratorEntry accels[] =
LIB_VIEW_FRAME
::
LIB_VIEW_FRAME
(
wxWindow
*
father
,
CMP_LIBRARY
*
Library
,
wxSemaphore
*
semaphore
)
:
LIB_VIEW_FRAME
::
LIB_VIEW_FRAME
(
wxWindow
*
father
,
CMP_LIBRARY
*
Library
,
wxSemaphore
*
semaphore
)
:
EDA_DRAW_FRAME
(
father
,
VIEWER_FRAME
,
_
(
"Library
b
rowser"
),
EDA_DRAW_FRAME
(
father
,
VIEWER_FRAME
,
_
(
"Library
B
rowser"
),
wxDefaultPosition
,
wxDefaultSize
)
wxDefaultPosition
,
wxDefaultSize
)
{
{
wxAcceleratorTable
table
(
ACCEL_TABLE_CNT
,
accels
);
wxAcceleratorTable
table
(
ACCEL_TABLE_CNT
,
accels
);
...
@@ -103,7 +103,7 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( wxWindow* father, CMP_LIBRARY* Library, wxSemaph
...
@@ -103,7 +103,7 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( wxWindow* father, CMP_LIBRARY* Library, wxSemaph
m_exportToEeschemaCmpName
.
Empty
();
m_exportToEeschemaCmpName
.
Empty
();
if
(
m_Semaphore
)
if
(
m_Semaphore
)
SetWindowStyle
(
GetWindowStyle
()
|
wx
STAY_ON_TOP
);
SetWindowStyle
(
GetWindowStyle
()
|
wx
FRAME_FLOAT_ON_PARENT
);
SetScreen
(
new
SCH_SCREEN
()
);
SetScreen
(
new
SCH_SCREEN
()
);
GetScreen
()
->
m_Center
=
true
;
// Center coordinate origins on screen.
GetScreen
()
->
m_Center
=
true
;
// Center coordinate origins on screen.
...
@@ -251,6 +251,16 @@ void LIB_VIEW_FRAME::OnCloseWindow( wxCloseEvent& Event )
...
@@ -251,6 +251,16 @@ void LIB_VIEW_FRAME::OnCloseWindow( wxCloseEvent& Event )
m_Semaphore
->
Post
();
m_Semaphore
->
Post
();
Destroy
();
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