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
9f7ca344
Commit
9f7ca344
authored
Apr 10, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eeschema: Viewlib: listboxes for lib or component selection are now resizable
parent
d96039a1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
233 additions
and
74 deletions
+233
-74
CHANGELOG.txt
CHANGELOG.txt
+6
-0
dialog_eeschema_config.cpp
eeschema/dialog_eeschema_config.cpp
+7
-3
viewlib_frame.cpp
eeschema/viewlib_frame.cpp
+199
-64
id.h
include/id.h
+2
-2
wxEeschemaStruct.h
include/wxEeschemaStruct.h
+19
-5
No files found.
CHANGELOG.txt
View file @
9f7ca344
...
...
@@ -4,6 +4,12 @@ KiCad ChangeLog 2009
Please add newer entries at the top, list the date and your name with
email address.
2009-apr-10 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++eeschema:
Viewlib: listboxes for lib or component selection are now resizable
2009-apr-07 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++pcbnew:
...
...
eeschema/dialog_eeschema_config.cpp
View file @
9f7ca344
...
...
@@ -109,7 +109,7 @@ void DIALOG_EESCHEMA_CONFIG::Init()
NetlistNameItems
.
Add
(
wxT
(
"OrcadPcb2"
)
);
NetlistNameItems
.
Add
(
wxT
(
"CadStar"
)
);
NetlistNameItems
.
Add
(
wxT
(
"Spice"
)
);
// Add extra neltlist format (using external converter)
msg
=
ReturnUserNetlistTypeName
(
true
);
while
(
!
msg
.
IsEmpty
()
)
...
...
@@ -145,9 +145,13 @@ void DIALOG_EESCHEMA_CONFIG::OnOkClick( wxCommandEvent& event )
g_NetFormat
=
m_NetFormatBox
->
GetSelection
()
+
NET_TYPE_PCBNEW
;
// Set new default path lib
g_UserLibDirBuffer
=
m_LibDirCtrl
->
GetValue
();
if
(
g_UserLibDirBuffer
!=
m_LibDirCtrl
->
GetValue
()
)
{
g_UserLibDirBuffer
=
m_LibDirCtrl
->
GetValue
();
m_LibListChanged
=
true
;
}
// Set new active lib
list
// Set new active lib
rary list if the list of default path was modified
if
(
m_LibListChanged
)
{
// Recreate lib list
...
...
eeschema/viewlib_frame.cpp
View file @
9f7ca344
This diff is collapsed.
Click to expand it.
include/id.h
View file @
9f7ca344
...
...
@@ -392,8 +392,8 @@ enum main_id {
ID_LIBVIEW_SELECT_PART_NUMBER
,
ID_LIBVIEW_LIB_LIST
,
ID_LIBVIEW_CMP_LIST
,
ID_LIBVIEW_
UNUSED0
,
ID_LIBVIEW_
UNUSED1
,
ID_LIBVIEW_
LIBWINDOW
,
ID_LIBVIEW_
CMPWINDOW
,
ID_LIBVIEW_UNUSED3
,
ID_LIBVIEW_UNUSED4
,
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC
,
// Used in Htoolbar, specific function
...
...
include/wxEeschemaStruct.h
View file @
9f7ca344
...
...
@@ -495,17 +495,27 @@ protected:
};
/************************************************************************************************/
/************************************************************************************************/
class
LibraryStruct
;
class
WinEDA_ViewlibFrame
:
public
WinEDA_DrawFrame
{
p
ublic
:
p
rivate
:
WinEDAChoiceBox
*
SelpartBox
;
wxListBox
*
m_LibList
;
wxSize
m_LibListSize
;
wxListBox
*
m_CmpList
;
wxSize
m_CmpListSize
;
// List of libraries (for selection
wxSashLayoutWindow
*
m_LibListWindow
;
// The redimensionnable window to display the lib list
wxListBox
*
m_LibList
;
// The list of libs
wxSize
m_LibListSize
;
// size of the window
// List of components in the selected library
wxSashLayoutWindow
*
m_CmpListWindow
;
// The redimensionnable window to display the component list
wxListBox
*
m_CmpList
;
// The list of components
wxSize
m_CmpListSize
;
// size of the window
// Flags
wxSemaphore
*
m_Semaphore
;
// != NULL if the frame must emulate a modal dialog
wxString
m_ConfigPath
;
// subpath for configuartion
public
:
WinEDA_ViewlibFrame
(
wxWindow
*
father
,
...
...
@@ -515,6 +525,7 @@ public:
~
WinEDA_ViewlibFrame
();
void
OnSize
(
wxSizeEvent
&
event
);
void
OnSashDrag
(
wxSashEvent
&
event
);
void
ReCreateListLib
();
void
ReCreateListCmp
();
void
Process_Special_Functions
(
wxCommandEvent
&
event
);
...
...
@@ -532,6 +543,9 @@ public:
void
GeneralControle
(
wxDC
*
DC
,
wxPoint
MousePositionInPixels
);
void
LoadSettings
();
void
SaveSettings
();
private
:
void
SelectCurrentLibrary
();
void
SelectAndViewLibraryPart
(
int
option
);
...
...
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