Applied x2b Copy/Swap Patches Manually (did not merge cleanly)
Made color snatches look less disturbing

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
x2b's fix of #23
Formatted master using same astyle as addpoppler.
Improve undo for scaling/moving of content

An undo event is always generated as soon as the selection is
moved/scaled and not only after the selection is removed. This
makes it possible to correctly undo a series of moving/scaling
operations although occasionaly move undos are created even
if the content was only scaled.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Deleting strokes now produces a single undo

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Fixed some bugs

- The scroll handler unnecessarily locked the document
  leading to a dead lock
- A failed mathtex call lead to a segfault

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Improved direct copying

Now copied objects are placed correctly even after
intermediate moves

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Removed collaboration files.
Fixes bug #54
Made PageRef an actual reference

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Fixed two off-by-one errors

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Changed event handling

The UndoActions now fire events whenever content changes.
The PageViews receive the events and rerender themselves.

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Fixed Stroke error.
Fixes redraw bug on firePageChanged.
Fix sidebar multi-column tiling

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Fixed bug #39 with better backup scheme.
Fixed rendering bug

If multiple intersecting rectangles are to be redrawn on
a single page, the rendering engine used to redraw only
the intersection of the rectangles (not enough) instead
of the union (enough). This problem became appearent after
undoing / redoing a "delete stroke" operation on multiple
letters

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
Added tool item for page deletion

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>
This hopefully fixes xournalpp/xournalpp#41

Signed-off-by: Wilson Brenna <wbrenna@uwaterloo.ca>