Hi Dayco,
Just want to make the file reads easier, and hope you already figured out from your side.
look at one example from the said URL,
cmdTranslation.insert("polyline", tr("polyline"));
mainCommands.insert(tr("polyline"), RS2::ActionDrawPolyline);
cmdTranslation.insert("pl", tr("pl"));
shortCommands.insert(tr("pl"), RS2::ActionDrawPolyline);
tr("polyline") means the translated/localized string for "polyline"
the first line links the "polyline" with the translated string: cmdTranslation.insert("polyline", tr("polyline"));
The second line links the translated string to the the Action to take RS2::ActionDrawPolyline (which is mostly self-explaining by name). mainCommands.insert(tr("polyline"), RS2::ActionDrawPolyline);
following two lines are essentially the same, but in a category of "short commands" instead of full "commands", as "pl" vs "polyline"
then, you can edit your own command alias file to link your own alias commands to existing commands.
Dayco wrote
Thanks,
I shall try and understand the instructions.