コード例 #1
0
ファイル: bulk.py プロジェクト: pombreda/calibre-1
 def accept(self):
     recs = GuiRecommendations()
     for w in self._groups_model.widgets:
         if not w.pre_commit_check():
             return
         x = w.commit(save_defaults=False)
         recs.update(x)
     self._recommendations = recs
     ResizableDialog.accept(self)
コード例 #2
0
ファイル: bulk.py プロジェクト: Eksmo/calibre
 def accept(self):
     recs = GuiRecommendations()
     for w in self._groups_model.widgets:
         if not w.pre_commit_check():
             return
         x = w.commit(save_defaults=False)
         recs.update(x)
     self._recommendations = recs
     ResizableDialog.accept(self)
コード例 #3
0
ファイル: single.py プロジェクト: Hainish/calibre
 def accept(self):
     recs = GuiRecommendations()
     for w in self._groups_model.widgets:
         if not w.pre_commit_check():
             return
         x = w.commit(save_defaults=False)
         recs.update(x)
     self.opf_file, self.cover_file = self.mw.opf_file, self.mw.cover_file
     self._recommendations = recs
     if self.db is not None:
         recs['gui_preferred_input_format'] = self.input_format
         save_specifics(self.db, self.book_id, recs)
     self.break_cycles()
     ResizableDialog.accept(self)
コード例 #4
0
ファイル: single.py プロジェクト: tokot/calibre
 def accept(self):
     recs = GuiRecommendations()
     for w in self._groups_model.widgets:
         if not w.pre_commit_check():
             return
         x = w.commit(save_defaults=False)
         recs.update(x)
     self.opf_file, self.cover_file = self.mw.opf_file, self.mw.cover_file
     self._recommendations = recs
     if self.db is not None:
         recs['gui_preferred_input_format'] = self.input_format
         save_specifics(self.db, self.book_id, recs)
     self.break_cycles()
     ResizableDialog.accept(self)
コード例 #5
0
ファイル: single.py プロジェクト: JapaChin/calibre
 def accept(self):
     self.save_state()
     if not self.apply_changes():
         return
     if self.editing_multiple and self.current_row != len(self.row_list) - 1:
         num = len(self.row_list) - 1 - self.current_row
         from calibre.gui2 import question_dialog
         if not question_dialog(
                 self, _('Are you sure?'),
                 _('There are still %d more books to edit in this set.'
                   ' Are you sure you want to stop? Use the Next button'
                   ' instead of the OK button to move through books in the set.') % num,
                 yes_text=_('&Stop editing'), no_text=_('&Continue editing'),
                 yes_icon='dot_red.png', no_icon='dot_green.png',
                 default_yes=False, skip_dialog_name='edit-metadata-single-confirm-ok-on-multiple'):
             return self.do_one(delta=1, apply_changes=False)
     ResizableDialog.accept(self)
コード例 #6
0
 def accept(self):
     self.save_state()
     if not self.apply_changes():
         return
     if self.editing_multiple and self.current_row != len(self.row_list) - 1:
         num = len(self.row_list) - 1 - self.current_row
         from calibre.gui2 import question_dialog
         if not question_dialog(
                 self, _('Are you sure?'),
                 _('There are still %d more books to edit in this set.'
                   ' Are you sure you want to stop? Use the Next button'
                   ' instead of the OK button to move through books in the set.') % num,
                 yes_text=_('&Stop editing'), no_text=_('&Continue editing'),
                 yes_icon='dot_red.png', no_icon='dot_green.png',
                 default_yes=False, skip_dialog_name='edit-metadata-single-confirm-ok-on-multiple'):
             return self.do_one(delta=1, apply_changes=False)
     ResizableDialog.accept(self)
コード例 #7
0
 def accept(self):
     self.save_state()
     if not self.apply_changes():
         return
     ResizableDialog.accept(self)
コード例 #8
0
ファイル: single.py プロジェクト: Hainish/calibre
 def accept(self):
     self.save_state()
     if not self.apply_changes():
         return
     ResizableDialog.accept(self)
コード例 #9
0
ファイル: catalog.py プロジェクト: ZRhinoceros/calibre
 def accept(self):
     self.save_catalog_settings()
     return ResizableDialog.accept(self)
コード例 #10
0
ファイル: catalog.py プロジェクト: tokot/calibre
 def accept(self):
     self.save_catalog_settings()
     return ResizableDialog.accept(self)