Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library editor menu items are counter-intuitive #200

Closed
243750496 opened this issue Nov 29, 2017 · 10 comments
Closed

Library editor menu items are counter-intuitive #200

243750496 opened this issue Nov 29, 2017 · 10 comments
Labels
Milestone

Comments

@243750496
Copy link

243750496 commented Nov 29, 2017

can not remove anything
hope you can fix

btw: if you choose another two to have a try , you wlll see all three was blue and cannot delete any of them

@ubruhin
Copy link
Member

ubruhin commented Nov 29, 2017

Oh that's a misleading GUI. These menu items should be disabled if no library element is open. To remove whole library elements, currently the only way is to open it and then choose File -> Remove Element.

@243750496
Copy link
Author

find still no able to delete anythins with File -> Remove Element. and update library
maybe it's a bug
no use of delete elements

@243750496
Copy link
Author

right way to do delete element
this is the rightway to do delete , in main page after opened the library manager , we can not delete it

only can delete it with opened the item , please correct it , it's a worg guide to show up in main page without function

@ubruhin
Copy link
Member

ubruhin commented Nov 30, 2017

@0xB767B Maybe you could improve the GUI to avoid confusion? Most important would be to disable/enable some menu items depending on the current state of the library editor.

In addition, it would be nice to allow removing library elements without the need for opening them first.

@ubruhin ubruhin changed the title can not remove anything , it's a bug! Library editor menu items are counter-intuitive Nov 30, 2017
@0xB767B
Copy link
Contributor

0xB767B commented Dec 1, 2017

@ubruhin Are there any general concepts in LibrePCB how to enable/disable menu-items based on some state of the program?

@ubruhin
Copy link
Member

ubruhin commented Dec 1, 2017

Not really. I guess the library editor is currently the only window which enables/disables some QActions depending on which kind of library element is currently open. And the implementation of that is quite pragmatic ;)

Btw, now I noticed that some QActions in the toolbars are disabled properly, but not their corresponding menu items (most QAction objects are added to both, a toolbar and a menu).

@lukabosnjakovic
Copy link

I had similar problem few minutes a go. It is not intuitive that you must first open element and than go to Edit > Remove. My proposal is that maybe you add context menu (right click on element) with remove option. This is more intuitive to me.

@dbrgn
Copy link
Member

dbrgn commented Nov 16, 2018

I'd nominate this for the 0.1 final 🙂

@ubruhin
Copy link
Member

ubruhin commented Nov 16, 2018

I'm ready to accept pull requests ;)

@ubruhin
Copy link
Member

ubruhin commented Dec 2, 2018

Context menu added in #380.

Btw, now I noticed that some QActions in the toolbars are disabled properly, but not their corresponding menu items (most QAction objects are added to both, a toolbar and a menu).

Fixed in c0d39eb.

@ubruhin ubruhin closed this as completed Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants