How do I create a custom mapping based on a square mapping widget?

Hi Guys,

Following my previous question on mapping widget.

I am wondering if we can customize the square mapping widget with my own choice of direction for the textures on its face?

Currently by applying the square widget to a lot of different polysurfaces I get all kinds of direction because the texture widget’s changes the direction of the texture depending on its face. Have a look at the texture below and resulting space: