Login  Register

Re: updating rs_commands

Posted by ravas on Jun 17, 2015; 9:55pm
URL: https://forum.librecad.org/updating-rs-commands-tp5711646p5711670.html

dxli wrote
Just one question, I'm not sure about the reason why there could be only one full command for each action?

For example, can we assign both "parallel" and "offset" for ModifyOffset?
I noticed:

        //zoom redraw
        {
            {{"regen", QObject::tr("regen", "zoom - redraw")},
             {"redraw", QObject::tr("redraw", "zoom - redraw")}},
            {{"rg", QObject::tr("rg", "zoom - redraw")},
            {"zr", QObject::tr("zr", "zoom - redraw")}},
            RS2::ActionZoomRedraw
        },
If we enter "re" and press tab, then "regen" and "redraw" both come up.
So it appears that we could make both "parallel" and "offset" full commands.