- Status Assigned
- Percent Complete
- Task Type Feature Request
- Category QCAD (main)
-
Assigned To
andrew - Operating System All
- Severity Low
- Priority Very Low
- Reported Version 3.32.6
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#2709 - Shortcut for 'Activate Layer of Entity'
Hi Dev Team,
Requesting a keyboard shortcut for the ‘Activate Layer of Entity’ option in right-click menu of entity.
Implementation:
1. Entity is selected: keyboard shortcut will activate layer of that entity.
2. No Entity is selected: keyboard shortcut will activate layer of entity that is clicked next.
3. Multiple entities are selected: error message “multiple entities selected, please select a single entity”.
Thankyou for all the hard work on a great piece of software.
Kind Regards, Daniel
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Hi,
Should be implemented already ... Kinda
Try an R-Click near a drawing entity.
Then select 'Activate Layer of entity' from the context menu.
- Basically a 'blank' guiAction created on the fly in .../scripts/Pro/Widgets/ContextMenu/ContextMenu.js
- Nothing more fancy than: di.setCurrentLayer(entity.getLayerId());
- The context menu never acts on selected only
- Does not diversify between stacked entities
- ALT+L-click does not mix with an R-click for the Context Menu
- Re-activates the current active layer on indicating an entity on the current active layer, is considered as a document change, is action in undo stack
- When any of the parents layers are collapsed they are not expanded
- Expanding a presumed parent is activating it, losing the intended focus
- When collapsed it is practically impossible to see which sub-layer was activated
- All main level parents may be collapsed on reloading a drawing
- Deeper levels only may retain their expanded/collapsed state
- Retaining their expanded/collapsed state seems to depend on the QCAD version used to create them.
Another option would be my Add-On tool 'ActivateLayerFromSelection'.
This would at least expand the parent layer and attempt to scroll the Layer List.
Halfway down the list would be a better option but I didn't find a solution for that.
(Due to unsupported Qt5/6 methods)
QCAD Pro or CE
Keyboard shortcut: 'YG'
Option 1 diversifies between current or new to activate on a single selection
Option 2 or a future selection is not supported
Option 3 diversifies between current, new or ambiguous selection
Reports action on Command History
Search the (new) forum on the Add-On name as keyword if that is possible.
It is made impossible for me to help you any further with this.
Regards,
CVH
Hi CVH,
Thanks for this. Your add-on tool 'ActivateLayerFromSelection' did what I needed. It's much faster than using the right-click context menu.
I hope compatibility does not break in future QCAD versions, as I use this often. Hopefully, a keyboard shortcut becomes native.
Regards, Daniel
Thanks for the kind words.
It is indeed very handy for editing a document with many layers.
Future support is no longer up to me as it was not adopted 'As is'.
Additionally, it will no longer be possible to debug it under future releases.
From the notes inside it should be clear that real-time debugging was essential.
On a future shortcut conflict you can adapt the keystroke sequence.
Note that you can also place any command on 1-2 user defined Toolbars.
Then it is merely one click.
For both see: Application Preferences .. General .. Tool Settings
I now see that QCAD Bugtracker on Flyspray has changed overnight.
(Missing formatting icons, date and time misplaced)
It's possible that even this medium will become inaccessible to me.
Regards,
CVH