[ocrfeeder] Add the save method to the unpaper preferences
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Add the save method to the unpaper preferences
- Date: Tue, 27 Jul 2010 22:15:13 +0000 (UTC)
commit 2fece3500244089c1f20adc96c0c22e18ef07fa1
Author: Joaquim Rocha <jrocha igalia com>
Date: Fri Jul 23 11:25:26 2010 +0200
Add the save method to the unpaper preferences
studio/widgetPresenter.py | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/studio/widgetPresenter.py b/studio/widgetPresenter.py
index 4683a38..a158eec 100644
--- a/studio/widgetPresenter.py
+++ b/studio/widgetPresenter.py
@@ -1010,6 +1010,26 @@ class UnpaperPreferences(gtk.VBox):
command += ' %s ' % extra_options_text
return command
+ def save(self):
+ self.configuration_manager.unpaper_use_black_filter = \
+ self.black_filter_usage.get_active()
+ if self.noise_filter_none.get_active():
+ self.configuration_manager.unpaper_noise_filter_intensity = 'none'
+ elif self.noise_filter_custom.get_active():
+ self.configuration_manager.unpaper_noise_filter_intensity = \
+ self.noise_filter_intensity.get_value()
+ else:
+ self.configuration_manager.unpaper_noise_filter_intensity = 'auto'
+ if self.gray_filter_none.get_active():
+ self.configuration_manager.unpaper_gray_filter_size = 'none'
+ elif self.gray_filter_custom.get_active():
+ self.configuration_manager.unpaper_gray_filter_size = \
+ self.gray_filter_size.get_value()
+ else:
+ self.configuration_manager.unpaper_gray_filter_size = 'auto'
+ self.configuration_manager.unpaper_extra_options = \
+ self.extra_options.get_text()
+
class SimpleDialog(gtk.MessageDialog):
def __init__(self, message, title = '', type = 'info'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]