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
151f81aa
Commit
151f81aa
authored
Dec 04, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Plain Diff
merge patch with refinement
parents
275f02ad
79015495
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
viewlib_frame.cpp
eeschema/viewlib_frame.cpp
+19
-6
viewlib_frame.h
eeschema/viewlib_frame.h
+1
-0
No files found.
eeschema/viewlib_frame.cpp
View file @
151f81aa
...
@@ -74,6 +74,7 @@ BEGIN_EVENT_TABLE( LIB_VIEW_FRAME, EDA_DRAW_FRAME )
...
@@ -74,6 +74,7 @@ BEGIN_EVENT_TABLE( LIB_VIEW_FRAME, EDA_DRAW_FRAME )
/* listbox events */
/* listbox events */
EVT_LISTBOX
(
ID_LIBVIEW_LIB_LIST
,
LIB_VIEW_FRAME
::
ClickOnLibList
)
EVT_LISTBOX
(
ID_LIBVIEW_LIB_LIST
,
LIB_VIEW_FRAME
::
ClickOnLibList
)
EVT_LISTBOX
(
ID_LIBVIEW_CMP_LIST
,
LIB_VIEW_FRAME
::
ClickOnCmpList
)
EVT_LISTBOX
(
ID_LIBVIEW_CMP_LIST
,
LIB_VIEW_FRAME
::
ClickOnCmpList
)
EVT_LISTBOX_DCLICK
(
ID_LIBVIEW_CMP_LIST
,
LIB_VIEW_FRAME
::
DClickOnCmpList
)
EVT_MENU
(
ID_SET_RELATIVE_OFFSET
,
LIB_VIEW_FRAME
::
OnSetRelativeOffset
)
EVT_MENU
(
ID_SET_RELATIVE_OFFSET
,
LIB_VIEW_FRAME
::
OnSetRelativeOffset
)
END_EVENT_TABLE
()
END_EVENT_TABLE
()
...
@@ -312,12 +313,12 @@ void LIB_VIEW_FRAME::OnSashDrag( wxSashEvent& event )
...
@@ -312,12 +313,12 @@ void LIB_VIEW_FRAME::OnSashDrag( wxSashEvent& event )
break
;
break
;
case
ID_LIBVIEW_CMPWINDOW
:
case
ID_LIBVIEW_CMPWINDOW
:
{
{
wxAuiPaneInfo
&
pane
=
m_auimgr
.
GetPane
(
m_CmpListWindow
);
wxAuiPaneInfo
&
pane
=
m_auimgr
.
GetPane
(
m_CmpListWindow
);
m_CmpListSize
.
x
=
event
.
GetDragRect
().
width
;
m_CmpListSize
.
x
=
event
.
GetDragRect
().
width
;
pane
.
MinSize
(
m_CmpListSize
);
pane
.
MinSize
(
m_CmpListSize
);
m_auimgr
.
Update
();
m_auimgr
.
Update
();
}
}
break
;
break
;
}
}
}
}
...
@@ -497,6 +498,18 @@ void LIB_VIEW_FRAME::ClickOnCmpList( wxCommandEvent& event )
...
@@ -497,6 +498,18 @@ void LIB_VIEW_FRAME::ClickOnCmpList( wxCommandEvent& event )
}
}
}
}
void
LIB_VIEW_FRAME
::
DClickOnCmpList
(
wxCommandEvent
&
event
)
{
if
(
m_Semaphore
)
{
ExportToSchematicLibraryPart
(
event
);
// Prevent the double click from being as a single click in the parent
// window which would cause the part to be parked rather than staying
// in drag mode.
event
.
StopPropagation
();
}
}
void
LIB_VIEW_FRAME
::
ExportToSchematicLibraryPart
(
wxCommandEvent
&
event
)
void
LIB_VIEW_FRAME
::
ExportToSchematicLibraryPart
(
wxCommandEvent
&
event
)
{
{
...
...
eeschema/viewlib_frame.h
View file @
151f81aa
...
@@ -166,6 +166,7 @@ private:
...
@@ -166,6 +166,7 @@ private:
void
ExportToSchematicLibraryPart
(
wxCommandEvent
&
event
);
void
ExportToSchematicLibraryPart
(
wxCommandEvent
&
event
);
void
ViewOneLibraryContent
(
CMP_LIBRARY
*
Lib
,
int
Flag
);
void
ViewOneLibraryContent
(
CMP_LIBRARY
*
Lib
,
int
Flag
);
bool
OnRightClick
(
const
wxPoint
&
MousePos
,
wxMenu
*
PopMenu
);
bool
OnRightClick
(
const
wxPoint
&
MousePos
,
wxMenu
*
PopMenu
);
void
DClickOnCmpList
(
wxCommandEvent
&
event
);
DECLARE_EVENT_TABLE
()
DECLARE_EVENT_TABLE
()
};
};
...
...
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