コード例 #1
0
ファイル: boss.py プロジェクト: mayankgautam/calibre
 def edit_toc(self):
     self.commit_all_editors_to_container()
     self.add_savepoint(_('Edit Table of Contents'))
     d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
     if d.exec_() != d.Accepted:
         self.rewind_savepoint()
         return
     self.update_editors_from_container()
コード例 #2
0
ファイル: boss.py プロジェクト: kmshi/calibre
 def edit_toc(self):
     self.commit_all_editors_to_container()
     self.add_savepoint(_('Edit Table of Contents'))
     d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
     if d.exec_() != d.Accepted:
         self.rewind_savepoint()
         return
     with BusyCursor():
         self.update_editors_from_container()
         self.gui.toc_view.update_if_visible()
コード例 #3
0
ファイル: boss.py プロジェクト: CharlesSong/calibre
 def edit_toc(self):
     self.commit_all_editors_to_container()
     self.add_savepoint(_('Edit Table of Contents'))
     d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
     if d.exec_() != d.Accepted:
         self.rewind_savepoint()
         return
     with BusyCursor():
         self.set_modified()
         self.update_editors_from_container()
         self.gui.toc_view.update_if_visible()