wish : simple expression evaluator for x,y,width,height and so on

Bug #993628 reported by v1nce
This bug report is a duplicate of:  Bug #171282: Calculator in input fields. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Hi,

For technical drawing it could be usefull if one could enter expression in input boxes such as x,y,width,height.

Eg :
My page is 512px wide. I want to make a centered rect that starts at 48px from the left.
So x is 48 and width is 416.
Instead of entering 416 I wish I could enter the expression 512 -48 * 2

--
Maybe this could be delegated to libxslt (if inkscape use it)

create the xsl and evaluate it
<xsl>
<variable pw="512" /> <!-- page width -->
<variable ph="1024" /> <!-- page height -->
<variable bbw="400" /> <!-- bounding box width of current item -->
<variable bbh="200" /> <!-- bb height -->
<variable bbx="20" /> <!-- bb x -->
<variable bby="100" /> <!-- bb y -->

<xsl:template match="/">
<xsl:value-of select=" 512 - 48 * 2 " /><!-- maybe we could evaluate more complex expressions such as math.cos()... -->
</xsl:template>

</xsl>

Tags: ui
Revision history for this message
su_v (suv-lp) wrote :

Already implemented in trunk (for Inkscape 0.49):
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.49#Simple_calculations_in_spinboxes>

Linking as duplicate to
Bug #171282 (sf1488591) “Calculator in input fields”
<https://bugs.launchpad.net/inkscape/+bug/171282>

Please add a comment here and revert the duplicate status here if you don't agree and think these are different feature requests.

tags: added: ui
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.