← Back to team overview

kicad-developers team mailing list archive

Re: Library Editor refactor

 

Hi,

I managed to find a workaround for Windows. I could not make dynamic tree widget updates work correctly on Windows, at best I got duplicate components and libraries whenever new entries are added. The only solution that worked for me is to recreate the tree upon a change.

The price to pay is slower updates and collapsing tree nodes, but I hope it is acceptable for now. Later, I will try to reexpand the nodes after the widget update, but for now I wanted to provide code that might be tested on different platforms to get some feedback.

I pushed fixed and rebased code to the same branch.

Cheers,
Orson

On 14/11/2017 8:36 PM, Wayne Stambaugh wrote:
On 11/14/2017 2:34 PM, Maciej Suminski wrote:
Hi Wayne,

The tree view is exactly the same widget as the one used in the
schematic symbol placer and is supposed to display all libraries. It
works fine under Linux, but I have just discovered that under Windows it
displays nothing, so there is still work to do.

I thought something was amiss when I was starring at an empty library
tree wonder what to do next.


The true joy of multiplatform programming with universal libraries. As
certain programming language advertises: "write once, fix everywhere" or
something similar..

I wish I could say it gets easier but I'm still waiting for that to happen.


Cheers,
Orson

On 14/11/2017 8:23 PM, Wayne Stambaugh wrote:
Orson,

I cannot select a library from the symbol library table to edit.  Is
this intentional?  I would have thought the tree view would show the all
of the libraries which could be expanded to show all of the parts in the
library similar to the symbol chooser dialog.  I thought that was
originally discussed at the hack-a-thon.

Cheers,

Wayne

On 11/14/2017 11:37 AM, Maciej Sumiński wrote:
The long awaited refactor of the Symbol Library Editor is ready for
testing!

Changes (yes, it will be included in the commit message):
- Component Tree widget as a user-friendly part selector
- Multiple editor contexts, allowing the user to easily switch between
modified parts
- Cut/Copy/Paste/Duplicate for whole components (also between libraries)
- Reverting unsaved modifications per part or library
- 'Browse' button for Symbol Library Table dialog to add files
- Redone menu and toolbar
- Improved icons to make the user interface more consistent

I look forward to your feedback. I would like to merge the branch this
week, which would most likely indicate the v5 feature freeze start
(yay!).

I have also started to work on copy/paste for individual part items, but
I cannot fully wrap my head around eeschema code. If such feature is
desired and you are willing to help, I can share my desperate trial
patch. I will try to implement it before the branch is merged, otherwise
copy/paste will be postponed to v6.

Regards,
Orson

1. https://code.launchpad.net/~orsonmmz/kicad/+git/kicad/+ref/libedit



_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



References