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?
Yep, that sounds right. Which align functions correspond to the align horizontal and align vertical functions are highly dependant on what is selected. For example if you want to be a super-hero, you could automatically align (vertically) to the baselines of the text if two text objects are selected instead of the current behaviour which simply aligns them as if they were non-text objects. 99 times out of 100 this likely isn't what you want with text, which is why special align options were added to align text baselines. Though you may want to leave the horizontal align alone on text, or to be somewhat god-like you could smartly align them based on whether the selected text/paragraphs are to be centered or not.
Highly context dependent. :)
-C
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
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