adding custom shortcuts

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

adding custom shortcuts

Arman Eshaghi
Dear All,

I'm wondering what would be the easiest way to add custom shortcuts to 3d slicer? For example, I need to tick/untick smudge option from the Editor toolbox quite frequently, and thought it might be a good idea to write a python function for example to do this.

Thanks
Arman

_______________________________________________
slicer-users mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/4.3/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: adding custom shortcuts

Steve Pieper-2
Hi Arman - 

That sounds like a nice addition.  The place to add that particular shortcut would be an extra logic branch here [1] because it is specific to that EditorEffect.   Just detect the key and toggle the check state of the smudge widget.  The rest should "just work".  If you get a nice implementation then a pull request would be welcome [2].  Be mindful of the other shortcut keys currently in use [3] to avoid collisions.

Other shortcuts of a more general nature are also possible following the pattern here [4].

Best,
Steve





On Sat, Oct 3, 2015 at 10:31 AM, Arman Eshaghi <[hidden email]> wrote:
Dear All,

I'm wondering what would be the easiest way to add custom shortcuts to 3d slicer? For example, I need to tick/untick smudge option from the Editor toolbox quite frequently, and thought it might be a good idea to write a python function for example to do this.

Thanks
Arman

_______________________________________________
slicer-users mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/4.3/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



_______________________________________________
slicer-users mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/4.3/FAQ


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.