Esempio n. 1
0
 def choosePageSize(self):
     current_reviewer = self.__getCurrentReviewer()
     current_page = current_reviewer.page
     page_size_dialog = PageSizeDialog((current_page.width, current_page.height))
     response = page_size_dialog.run()
     if response == gtk.RESPONSE_ACCEPT:
         size = page_size_dialog.getSize()
         if page_size_dialog.all_pages_radio.get_active():
             for key, reviewer in self.image_reviewer_dict.items():
                 reviewer.page.setSize(size)
         else:
             current_reviewer.page.setSize(size)
         debug('Page size: ', size)
     page_size_dialog.destroy()
Esempio n. 2
0
 def choosePageSize(self):
     current_reviewer = self.__getCurrentReviewer()
     current_page = current_reviewer.page
     page_size_dialog = PageSizeDialog(
         (current_page.width, current_page.height))
     response = page_size_dialog.run()
     if response == gtk.RESPONSE_ACCEPT:
         size = page_size_dialog.getSize()
         if page_size_dialog.all_pages_radio.get_active():
             for key, reviewer in self.image_reviewer_dict.items():
                 reviewer.page.setSize(size)
         else:
             current_reviewer.page.setSize(size)
         debug('Page size: ', size)
     page_size_dialog.destroy()
Esempio n. 3
0
 def choosePageSize(self):
     current_reviewer = self.__getCurrentReviewer()
     current_page = current_reviewer.page
     page_size_dialog = PageSizeDialog((current_page.width, current_page.height))
     response = page_size_dialog.run()
     if response == gtk.RESPONSE_ACCEPT:
         size = page_size_dialog.getSize()
         if page_size_dialog.all_pages_radio.get_active():
             for page in self.source_images_selector_widget.getAllPages():
                 page.setSize(size)
         else:
             current_reviewer.page.setSize(size)
         debug('Page size: ', size)
     page_size_dialog.destroy()
     self.__updateStatusBar(current_reviewer)
Esempio n. 4
0
 def choosePageSize(self):
     current_reviewer = self.__getCurrentReviewer()
     current_page = current_reviewer.page
     page_size_dialog = PageSizeDialog(self.main_window,
                                       (current_page.width, current_page.height))
     response = page_size_dialog.run()
     if response == Gtk.ResponseType.ACCEPT:
         size = page_size_dialog.getSize()
         if page_size_dialog.all_pages_radio.get_active():
             for page in self.pages_icon_view.getAllPages():
                 page.setSize(size)
         else:
             current_reviewer.page.setSize(size)
         debug('Page size: ', size)
     page_size_dialog.destroy()
     self.__updateStatusBar(current_reviewer)
Esempio n. 5
0
 def choosePageSize(self):
     current_reviewer = self.__getCurrentReviewer()
     current_page = current_reviewer.page
     page_size_dialog = PageSizeDialog(
         (current_page.width, current_page.height))
     response = page_size_dialog.run()
     if response == gtk.RESPONSE_ACCEPT:
         size = page_size_dialog.getSize()
         if page_size_dialog.all_pages_radio.get_active():
             for page in self.source_images_selector_widget.getAllPages():
                 page.setSize(size)
         else:
             current_reviewer.page.setSize(size)
         debug('Page size: ', size)
     page_size_dialog.destroy()
     self.__updateStatusBar(current_reviewer)
Esempio n. 6
0
 def choosePageSize(self):
     current_reviewer = self.__getCurrentReviewer()
     current_page = current_reviewer.page
     page_size_dialog = PageSizeDialog(
         self.main_window, (current_page.width, current_page.height))
     response = page_size_dialog.run()
     if response == Gtk.ResponseType.ACCEPT:
         size = page_size_dialog.getSize()
         if page_size_dialog.all_pages_radio.get_active():
             for page in self.pages_icon_view.getAllPages():
                 page.setSize(size)
         else:
             current_reviewer.page.setSize(size)
         debug('Page size: %s' % size)
     page_size_dialog.destroy()
     self.__updateStatusBar(current_reviewer)