[ocrfeeder] Add the "unpaper images after addition" settings to the preferences dialog
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Add the "unpaper images after addition" settings to the preferences dialog
- Date: Tue, 27 Jul 2010 22:14:58 +0000 (UTC)
commit 4c90c5c873761674480c6acc7ce408fd43707099
Author: Joaquim Rocha <jrocha igalia com>
Date: Thu Jul 22 10:51:16 2010 +0200
Add the "unpaper images after addition" settings to the preferences dialog
studio/widgetPresenter.py | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/studio/widgetPresenter.py b/studio/widgetPresenter.py
index f94ec0a..9810450 100644
--- a/studio/widgetPresenter.py
+++ b/studio/widgetPresenter.py
@@ -1178,6 +1178,8 @@ class PreferencesDialog(gtk.Dialog):
self.__getBoundsAdjustmentSize()
self.configuration_manager.deskew_images_after_addition = \
self.deskew_images.get_active()
+ self.configuration_manager.unpaper_images_after_addition = \
+ self.unpaper_images.get_active()
index = self.engines_combo.get_active()
if index != -1:
lib.debug('ACTIVE INDEX: ', index, self.ocr_engines[index][0].name)
@@ -1487,8 +1489,18 @@ class PreferencesDialog(gtk.Dialog):
'before they are added'))
self.deskew_images.set_active(
self.configuration_manager.deskew_images_after_addition)
- box = gtk.HBox()
+
+ box = gtk.VBox()
box.pack_start(self.deskew_images, False)
+
+ if self.configuration_manager.has_unpaper:
+ self.unpaper_images = gtk.CheckButton(_('_Unpaper images'),
+ use_underline = True)
+ self.unpaper_images.set_tooltip_text(_('Cleans the image using the '
+ 'Unpaper pre-processor'))
+ self.unpaper_images.set_active(
+ self.configuration_manager.unpaper_images_after_addition)
+ box.pack_start(self.unpaper_images, False)
preprocessing_frame.add(box)
return preprocessing_frame
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]