Backend: throw out everything related to scan+OCR. It will move to the frontend part

Conflicts:
	src/paperwork/backend/img/page.py

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Frontend: Throw out everything related to scan + ocr + page display

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Frontend: Start implementing a new widget (Canvas) that will be used to displayed many Image and stuff as efficiently as possible

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Frontend: Canvas widget: don't specify a size request. We will use what is allocated anyway

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Canvas: Make it possible to draw images on the canvas

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Canvas: Fix the global canvas size

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Turn frontend/util/canvas into a package

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Canvas: Image drawing: optimize drawing by only drawing in the visible part

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Will require pyinsane >= 1.3 for the next changes

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Settings window: add a new option: number of angles tried for the orientation detection

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Backend: Config: add 2 new options: OCR enabled + OCR nb of angles (for orientation detection)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Settings window: Add code behind options 'OCR enabled' + 'Nb orientations'

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Settings window: remove obsolete code : dialog indicating that the orientation detection can't be done if the OCR is disabled

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Settings window: When doing the calibration scan, raises a signal for each chunk of the image that has been scanned

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Main window: remove test code

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Frontend: Canvas: Handle scroll events

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Frontend: Canvas: add functions to remove drawer(s)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Settings dialog: Fix Gtk-CRITICAL assertions when opening the dialog

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Settings window: Glade file: remove invalid property

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>
Settings window: Fix verbose (2x errors -> warning)

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>