Placed FragmentOperationsSource back in the view package

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Issue #20 fixed and toString() implemented in some classes.
Fixed parentheses placement

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Import fix

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
New way of defining BoundingBoxes beta
bugfix on the exponent set
bugfix divide
second bugfix divide
added a maximum to the shrinking of objects
Implemented scrolling

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Fixed a bug where the parentheses would be drawn over the action bar

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
MathShadow is now drawn correctly

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Made the default size of MathObject a static variable.

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Fixed the parentheses for powers

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
The line width for painting MathObjects now depends on a static variable.
This way the line width can be set to a resource value (and therefore a density independent value can be used).
Also made the bounding box calculation code for MathBinaryOperationLinear and its children simpler, more efficient and more flexible.

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
The operations in the source drawer are now displayed correctly.
In order to do so new classes have been created that represent a source for new MathObjects.

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Removed the approximate() method from MathObject and its descendants.
It won't be necessary in the future and mixes model and view.

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
The root is now drawn and measured correctly.
Also: the centre of the divide operator is set to the centre of its operator.

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Write to XML now supported.