Thank you Marc, that's a great start...
I read through the dialog .cpp file, and found the addNodeTool method, which is used to build up the node alignment buttons. I noticed there is a member _actionList, that is cleared/deleted in the AlignAndDistribute destructor - does that mean the actions/operations are only available if the alignment dialog is open/visible to the end user?
If that is the case, it's a bit annoying, as I'd like keyboard shortcuts to be available to me regardsless of whether a certain dialog is open or not. I'd say as soon as the node tool is active, the Ctrl+Alt+T/H node alignment shortcuts should be available. C R agree?
We could take the discussion off-list if you think it's too noicy. On 10 Mar 2016 22:15, "Marc Jeanmougin" <marc@...3062...> wrote:
Sure, what do you need ?
How I would proceed :
1/ find the functions associated with those buttons(I'd look at the align dialog (in src/ui/dialog/align-and-distribute.cpp), and find something related to nodes)
2/ find the root handler for node tool (in src/ui/tools/node-tool.cpp)
3/ look at how the other keyboard shortcuts are handled there, and add a check for those shortcuts, with the function found in (1) as effect
-- Mc
On 03/10/2016 09:52 PM, Olof Bjarnason wrote:
I'd like to help out in this one if I may ...
But I've only added some unit tests to lib2geom so far, and would need some guidance to the Inkscape source code.
Anyone care to be my "mentor" for this task...?
Regards,
On 10 Mar 2016 21:04, "C R" <cajhne@...400... mailto:cajhne@...400...> wrote:
Ctrl-Alt-T - Align selected nodes Horizontal to eachother. Ctrl-Alt-H - Align selected nodes Vertical to eachother. Quickie, but would really help in making diagrams and quick edits within a shape. -C
Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net <mailto:Inkscape-devel@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel