[ocrfeeder] Add the deskew current image action to the UI



commit bb1c9fda77df2085e65b70d9686f4c44600aa188
Author: Joaquim Rocha <jrocha igalia com>
Date:   Tue Jul 20 18:31:46 2010 +0200

    Add the deskew current image action to the UI

 studio/studioBuilder.py   |    1 +
 studio/widgetPresenter.py |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/studio/studioBuilder.py b/studio/studioBuilder.py
index 14aea98..7082f50 100644
--- a/studio/studioBuilder.py
+++ b/studio/studioBuilder.py
@@ -97,6 +97,7 @@ class Studio:
                                  'select_previous_area': self.source_images_controler.selectPreviousArea,
                                  'select_all_areas': self.source_images_controler.selectAllAreas,
                                  'delete_selected_areas': self.source_images_controler.deleteSelectedAreas,
+                                 'image_deskewer': self.source_images_controler.deskewCurrentImage
                                  }
 
         self.main_window.setHeader(menubar_callback_dict, toolbar_callback_dict)
diff --git a/studio/widgetPresenter.py b/studio/widgetPresenter.py
index b60d35a..5dfd1f7 100644
--- a/studio/widgetPresenter.py
+++ b/studio/widgetPresenter.py
@@ -85,6 +85,7 @@ class MainWindow:
             <menuitem action="OCREngines"/>
             <separator/>
             <menuitem action="Unpaper"/>
+            <menuitem action="ImageDeskewer"/>
         </menu>
         <menu action="Help">
             <menuitem action="About"/>
@@ -163,6 +164,9 @@ class MainWindow:
                                   ('Tools', None, _('_Tools')),
                                   ('OCREngines', None, _('_OCR Engines'), None, _('Manage OCR engines'), menu_items['ocr_engines']),
                                   ('Unpaper', gtk.STOCK_EXECUTE, _('_Unpaper'), None, _('Process image with unpaper'), menu_items['unpaper']),
+                                  ('ImageDeskewer', None, _('Image Des_kewer'),
+                                   None, _('Trie to straighten the image'),
+                                   menu_items['image_deskewer']),
                                   ('Help', None, _('_Help')),
                                   ('About', gtk.STOCK_ABOUT, _('_About'), None, _('About this application'), menu_items['about']),
                                   ('OCRFeederDetection', None, _('_Recognize Document'), None, _("Automatic Detection and Recognition"), tool_items['detection']),
@@ -218,7 +222,7 @@ class MainWindow:
                    'Export', 'GenerateODT', 'Unpaper',
                    'DeletePage', 'SaveProject', 'SaveProjectAs',
                    'OCRFeederDetection', 'EditPage', 'ClearProject',
-                   'AppendProject', 'ZoomFit']
+                   'AppendProject', 'ZoomFit', 'ImageDeskewer']
         self.__setActionsSensitiveness(actions, has_images)
         if not has_images:
             self.setHasSelectedBoxes(False)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]