more QIcon.ic() usage

This commit is contained in:
Kovid Goyal 2022-01-08 15:53:02 +05:30
parent 35aba136ee
commit a48fae501f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
24 changed files with 46 additions and 46 deletions

View File

@ -1106,7 +1106,7 @@ plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
class LookAndFeel(PreferencesPlugin): class LookAndFeel(PreferencesPlugin):
name = 'Look & Feel' name = 'Look & Feel'
icon = I('lookfeel.png') icon = 'lookfeel.png'
gui_name = _('Look & feel') gui_name = _('Look & feel')
category = 'Interface' category = 'Interface'
gui_category = _('Interface') gui_category = _('Interface')
@ -1119,7 +1119,7 @@ class LookAndFeel(PreferencesPlugin):
class Behavior(PreferencesPlugin): class Behavior(PreferencesPlugin):
name = 'Behavior' name = 'Behavior'
icon = I('config.png') icon = 'config.png'
gui_name = _('Behavior') gui_name = _('Behavior')
category = 'Interface' category = 'Interface'
gui_category = _('Interface') gui_category = _('Interface')
@ -1131,7 +1131,7 @@ class Behavior(PreferencesPlugin):
class Columns(PreferencesPlugin): class Columns(PreferencesPlugin):
name = 'Custom Columns' name = 'Custom Columns'
icon = I('column.png') icon = 'column.png'
gui_name = _('Add your own columns') gui_name = _('Add your own columns')
category = 'Interface' category = 'Interface'
gui_category = _('Interface') gui_category = _('Interface')
@ -1143,7 +1143,7 @@ class Columns(PreferencesPlugin):
class Toolbar(PreferencesPlugin): class Toolbar(PreferencesPlugin):
name = 'Toolbar' name = 'Toolbar'
icon = I('wizard.png') icon = 'wizard.png'
gui_name = _('Toolbars & menus') gui_name = _('Toolbars & menus')
category = 'Interface' category = 'Interface'
gui_category = _('Interface') gui_category = _('Interface')
@ -1156,7 +1156,7 @@ class Toolbar(PreferencesPlugin):
class Search(PreferencesPlugin): class Search(PreferencesPlugin):
name = 'Search' name = 'Search'
icon = I('search.png') icon = 'search.png'
gui_name = _('Searching') gui_name = _('Searching')
category = 'Interface' category = 'Interface'
gui_category = _('Interface') gui_category = _('Interface')
@ -1168,7 +1168,7 @@ class Search(PreferencesPlugin):
class InputOptions(PreferencesPlugin): class InputOptions(PreferencesPlugin):
name = 'Input Options' name = 'Input Options'
icon = I('arrow-down.png') icon = 'arrow-down.png'
gui_name = _('Input options') gui_name = _('Input options')
category = 'Conversion' category = 'Conversion'
gui_category = _('Conversion') gui_category = _('Conversion')
@ -1185,7 +1185,7 @@ class InputOptions(PreferencesPlugin):
class CommonOptions(PreferencesPlugin): class CommonOptions(PreferencesPlugin):
name = 'Common Options' name = 'Common Options'
icon = I('convert.png') icon = 'convert.png'
gui_name = _('Common options') gui_name = _('Common options')
category = 'Conversion' category = 'Conversion'
gui_category = _('Conversion') gui_category = _('Conversion')
@ -1197,7 +1197,7 @@ class CommonOptions(PreferencesPlugin):
class OutputOptions(PreferencesPlugin): class OutputOptions(PreferencesPlugin):
name = 'Output Options' name = 'Output Options'
icon = I('arrow-up.png') icon = 'arrow-up.png'
gui_name = _('Output options') gui_name = _('Output options')
category = 'Conversion' category = 'Conversion'
gui_category = _('Conversion') gui_category = _('Conversion')
@ -1209,7 +1209,7 @@ class OutputOptions(PreferencesPlugin):
class Adding(PreferencesPlugin): class Adding(PreferencesPlugin):
name = 'Adding' name = 'Adding'
icon = I('add_book.png') icon = 'add_book.png'
gui_name = _('Adding books') gui_name = _('Adding books')
category = 'Import/Export' category = 'Import/Export'
gui_category = _('Import/export') gui_category = _('Import/export')
@ -1222,7 +1222,7 @@ class Adding(PreferencesPlugin):
class Saving(PreferencesPlugin): class Saving(PreferencesPlugin):
name = 'Saving' name = 'Saving'
icon = I('save.png') icon = 'save.png'
gui_name = _('Saving books to disk') gui_name = _('Saving books to disk')
category = 'Import/Export' category = 'Import/Export'
gui_category = _('Import/export') gui_category = _('Import/export')
@ -1235,7 +1235,7 @@ class Saving(PreferencesPlugin):
class Sending(PreferencesPlugin): class Sending(PreferencesPlugin):
name = 'Sending' name = 'Sending'
icon = I('sync.png') icon = 'sync.png'
gui_name = _('Sending books to devices') gui_name = _('Sending books to devices')
category = 'Import/Export' category = 'Import/Export'
gui_category = _('Import/export') gui_category = _('Import/export')
@ -1248,7 +1248,7 @@ class Sending(PreferencesPlugin):
class Plugboard(PreferencesPlugin): class Plugboard(PreferencesPlugin):
name = 'Plugboard' name = 'Plugboard'
icon = I('plugboard.png') icon = 'plugboard.png'
gui_name = _('Metadata plugboards') gui_name = _('Metadata plugboards')
category = 'Import/Export' category = 'Import/Export'
gui_category = _('Import/export') gui_category = _('Import/export')
@ -1260,7 +1260,7 @@ class Plugboard(PreferencesPlugin):
class TemplateFunctions(PreferencesPlugin): class TemplateFunctions(PreferencesPlugin):
name = 'TemplateFunctions' name = 'TemplateFunctions'
icon = I('template_funcs.png') icon = 'template_funcs.png'
gui_name = _('Template functions') gui_name = _('Template functions')
category = 'Advanced' category = 'Advanced'
gui_category = _('Advanced') gui_category = _('Advanced')
@ -1272,7 +1272,7 @@ class TemplateFunctions(PreferencesPlugin):
class Email(PreferencesPlugin): class Email(PreferencesPlugin):
name = 'Email' name = 'Email'
icon = I('mail.png') icon = 'mail.png'
gui_name = _('Sharing books by email') gui_name = _('Sharing books by email')
category = 'Sharing' category = 'Sharing'
gui_category = _('Sharing') gui_category = _('Sharing')
@ -1285,7 +1285,7 @@ class Email(PreferencesPlugin):
class Server(PreferencesPlugin): class Server(PreferencesPlugin):
name = 'Server' name = 'Server'
icon = I('network-server.png') icon = 'network-server.png'
gui_name = _('Sharing over the net') gui_name = _('Sharing over the net')
category = 'Sharing' category = 'Sharing'
gui_category = _('Sharing') gui_category = _('Sharing')
@ -1299,7 +1299,7 @@ class Server(PreferencesPlugin):
class MetadataSources(PreferencesPlugin): class MetadataSources(PreferencesPlugin):
name = 'Metadata download' name = 'Metadata download'
icon = I('download-metadata.png') icon = 'download-metadata.png'
gui_name = _('Metadata download') gui_name = _('Metadata download')
category = 'Sharing' category = 'Sharing'
gui_category = _('Sharing') gui_category = _('Sharing')
@ -1311,7 +1311,7 @@ class MetadataSources(PreferencesPlugin):
class IgnoredDevices(PreferencesPlugin): class IgnoredDevices(PreferencesPlugin):
name = 'Ignored Devices' name = 'Ignored Devices'
icon = I('reader.png') icon = 'reader.png'
gui_name = _('Ignored devices') gui_name = _('Ignored devices')
category = 'Sharing' category = 'Sharing'
gui_category = _('Sharing') gui_category = _('Sharing')
@ -1324,7 +1324,7 @@ class IgnoredDevices(PreferencesPlugin):
class Plugins(PreferencesPlugin): class Plugins(PreferencesPlugin):
name = 'Plugins' name = 'Plugins'
icon = I('plugins.png') icon = 'plugins.png'
gui_name = _('Plugins') gui_name = _('Plugins')
category = 'Advanced' category = 'Advanced'
gui_category = _('Advanced') gui_category = _('Advanced')
@ -1337,7 +1337,7 @@ class Plugins(PreferencesPlugin):
class Tweaks(PreferencesPlugin): class Tweaks(PreferencesPlugin):
name = 'Tweaks' name = 'Tweaks'
icon = I('tweaks.png') icon = 'tweaks.png'
gui_name = _('Tweaks') gui_name = _('Tweaks')
category = 'Advanced' category = 'Advanced'
gui_category = _('Advanced') gui_category = _('Advanced')
@ -1349,7 +1349,7 @@ class Tweaks(PreferencesPlugin):
class Keyboard(PreferencesPlugin): class Keyboard(PreferencesPlugin):
name = 'Keyboard' name = 'Keyboard'
icon = I('keyboard-prefs.png') icon = 'keyboard-prefs.png'
gui_name = _('Shortcuts') gui_name = _('Shortcuts')
category = 'Advanced' category = 'Advanced'
gui_category = _('Advanced') gui_category = _('Advanced')
@ -1361,7 +1361,7 @@ class Keyboard(PreferencesPlugin):
class Misc(PreferencesPlugin): class Misc(PreferencesPlugin):
name = 'Misc' name = 'Misc'
icon = I('exec.png') icon = 'exec.png'
gui_name = _('Miscellaneous') gui_name = _('Miscellaneous')
category = 'Advanced' category = 'Advanced'
gui_category = _('Advanced') gui_category = _('Advanced')

View File

@ -105,7 +105,7 @@ def gui_configuration_widget(name, parent, get_option_by_name,
output_widget = importlib.import_module( output_widget = importlib.import_module(
'calibre.gui2.convert.'+name) 'calibre.gui2.convert.'+name)
pw = output_widget.PluginWidget pw = output_widget.PluginWidget
pw.ICON = I('back.png') pw.ICON = 'back.png'
pw.HELP = _('Options specific to the output format.') pw.HELP = _('Options specific to the output format.')
return widget_factory(pw) return widget_factory(pw)
except ImportError: except ImportError:
@ -115,7 +115,7 @@ def gui_configuration_widget(name, parent, get_option_by_name,
input_widget = importlib.import_module( input_widget = importlib.import_module(
'calibre.gui2.convert.'+name) 'calibre.gui2.convert.'+name)
pw = input_widget.PluginWidget pw = input_widget.PluginWidget
pw.ICON = I('forward.png') pw.ICON = 'forward.png'
pw.HELP = _('Options specific to the input format.') pw.HELP = _('Options specific to the input format.')
return widget_factory(pw) return widget_factory(pw)
except ImportError: except ImportError:

View File

@ -18,7 +18,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('AZW3 output') TITLE = _('AZW3 output')
HELP = _('Options specific to')+' AZW3 '+_('output') HELP = _('Options specific to')+' AZW3 '+_('output')
COMMIT_NAME = 'azw3_output' COMMIT_NAME = 'azw3_output'
ICON = I('mimetypes/azw3.png') ICON = 'mimetypes/azw3.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['azw3']) Widget.__init__(self, parent, OPTIONS['output']['azw3'])

View File

@ -16,7 +16,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('Comic input') TITLE = _('Comic input')
HELP = _('Options specific to')+' comic '+_('input') HELP = _('Options specific to')+' comic '+_('input')
COMMIT_NAME = 'comic_input' COMMIT_NAME = 'comic_input'
ICON = I('mimetypes/png.png') ICON = 'mimetypes/png.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['input']['comic']) Widget.__init__(self, parent, OPTIONS['input']['comic'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('DOCX input') TITLE = _('DOCX input')
HELP = _('Options specific to')+' DOCX '+_('input') HELP = _('Options specific to')+' DOCX '+_('input')
COMMIT_NAME = 'docx_input' COMMIT_NAME = 'docx_input'
ICON = I('mimetypes/docx.png') ICON = 'mimetypes/docx.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['input']['docx']) Widget.__init__(self, parent, OPTIONS['input']['docx'])

View File

@ -16,7 +16,7 @@ class PluginWidget(Widget):
TITLE = _('DOCX output') TITLE = _('DOCX output')
HELP = _('Options specific to')+' DOCX '+_('output') HELP = _('Options specific to')+' DOCX '+_('output')
COMMIT_NAME = 'docx_output' COMMIT_NAME = 'docx_output'
ICON = I('mimetypes/docx.png') ICON = 'mimetypes/docx.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['docx']) Widget.__init__(self, parent, OPTIONS['output']['docx'])

View File

@ -16,7 +16,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('EPUB output') TITLE = _('EPUB output')
HELP = _('Options specific to')+' EPUB '+_('output') HELP = _('Options specific to')+' EPUB '+_('output')
COMMIT_NAME = 'epub_output' COMMIT_NAME = 'epub_output'
ICON = I('mimetypes/epub.png') ICON = 'mimetypes/epub.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['epub']) Widget.__init__(self, parent, OPTIONS['output']['epub'])

View File

@ -12,7 +12,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('FB2 input') TITLE = _('FB2 input')
HELP = _('Options specific to')+' FB2 '+_('input') HELP = _('Options specific to')+' FB2 '+_('input')
COMMIT_NAME = 'fb2_input' COMMIT_NAME = 'fb2_input'
ICON = I('mimetypes/fb2.png') ICON = 'mimetypes/fb2.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['input']['fb2']) Widget.__init__(self, parent, OPTIONS['input']['fb2'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('FB2 output') TITLE = _('FB2 output')
HELP = _('Options specific to')+' FB2 '+_('output') HELP = _('Options specific to')+' FB2 '+_('output')
COMMIT_NAME = 'fb2_output' COMMIT_NAME = 'fb2_output'
ICON = I('mimetypes/fb2.png') ICON = 'mimetypes/fb2.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['fb2']) Widget.__init__(self, parent, OPTIONS['output']['fb2'])

View File

@ -16,7 +16,7 @@ class HeuristicsWidget(Widget, Ui_Form):
TITLE = _('Heuristic\nprocessing') TITLE = _('Heuristic\nprocessing')
HELP = _('Modify the document text and structure using common patterns.') HELP = _('Modify the document text and structure using common patterns.')
COMMIT_NAME = 'heuristics' COMMIT_NAME = 'heuristics'
ICON = I('heuristics.png') ICON = 'heuristics.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['pipe']['heuristics']) Widget.__init__(self, parent, OPTIONS['pipe']['heuristics'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('HTMLZ output') TITLE = _('HTMLZ output')
HELP = _('Options specific to')+' HTMLZ '+_('output') HELP = _('Options specific to')+' HTMLZ '+_('output')
COMMIT_NAME = 'htmlz_output' COMMIT_NAME = 'htmlz_output'
ICON = I('mimetypes/html.png') ICON = 'mimetypes/html.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['htmlz']) Widget.__init__(self, parent, OPTIONS['output']['htmlz'])

View File

@ -17,7 +17,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('LRF output') TITLE = _('LRF output')
HELP = _('Options specific to')+' LRF '+_('output') HELP = _('Options specific to')+' LRF '+_('output')
COMMIT_NAME = 'lrf_output' COMMIT_NAME = 'lrf_output'
ICON = I('mimetypes/lrf.png') ICON = 'mimetypes/lrf.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['lrf']) Widget.__init__(self, parent, OPTIONS['output']['lrf'])

View File

@ -18,7 +18,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('MOBI output') TITLE = _('MOBI output')
HELP = _('Options specific to')+' MOBI '+_('output') HELP = _('Options specific to')+' MOBI '+_('output')
COMMIT_NAME = 'mobi_output' COMMIT_NAME = 'mobi_output'
ICON = I('mimetypes/mobi.png') ICON = 'mimetypes/mobi.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['mobi']) Widget.__init__(self, parent, OPTIONS['output']['mobi'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('PDB output') TITLE = _('PDB output')
HELP = _('Options specific to')+' PDB '+_('output') HELP = _('Options specific to')+' PDB '+_('output')
COMMIT_NAME = 'pdb_output' COMMIT_NAME = 'pdb_output'
ICON = I('mimetypes/unknown.png') ICON = 'mimetypes/unknown.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['pdb']) Widget.__init__(self, parent, OPTIONS['output']['pdb'])

View File

@ -12,7 +12,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('PDF input') TITLE = _('PDF input')
HELP = _('Options specific to')+' PDF '+_('input') HELP = _('Options specific to')+' PDF '+_('input')
COMMIT_NAME = 'pdf_input' COMMIT_NAME = 'pdf_input'
ICON = I('mimetypes/pdf.png') ICON = 'mimetypes/pdf.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['input']['pdf']) Widget.__init__(self, parent, OPTIONS['input']['pdf'])

View File

@ -19,7 +19,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('PDF output') TITLE = _('PDF output')
HELP = _('Options specific to')+' PDF '+_('output') HELP = _('Options specific to')+' PDF '+_('output')
COMMIT_NAME = 'pdf_output' COMMIT_NAME = 'pdf_output'
ICON = I('mimetypes/pdf.png') ICON = 'mimetypes/pdf.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['pdf']) Widget.__init__(self, parent, OPTIONS['output']['pdf'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('PMLZ output') TITLE = _('PMLZ output')
HELP = _('Options specific to')+' PMLZ '+_('output') HELP = _('Options specific to')+' PMLZ '+_('output')
COMMIT_NAME = 'pmlz_output' COMMIT_NAME = 'pmlz_output'
ICON = I('mimetypes/unknown.png') ICON = 'mimetypes/unknown.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['pml']) Widget.__init__(self, parent, OPTIONS['output']['pml'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('RB output') TITLE = _('RB output')
HELP = _('Options specific to')+' RB '+_('output') HELP = _('Options specific to')+' RB '+_('output')
COMMIT_NAME = 'rb_output' COMMIT_NAME = 'rb_output'
ICON = I('mimetypes/unknown.png') ICON = 'mimetypes/unknown.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['rb']) Widget.__init__(self, parent, OPTIONS['output']['rb'])

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('RTF input') TITLE = _('RTF input')
HELP = _('Options specific to')+' RTF '+_('input') HELP = _('Options specific to')+' RTF '+_('input')
COMMIT_NAME = 'rtf_input' COMMIT_NAME = 'rtf_input'
ICON = I('mimetypes/rtf.png') ICON = 'mimetypes/rtf.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['input']['rtf']) Widget.__init__(self, parent, OPTIONS['input']['rtf'])

View File

@ -21,7 +21,7 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
TITLE = _('Search &\nreplace') TITLE = _('Search &\nreplace')
HELP = _('Modify the document text and structure using user defined patterns.') HELP = _('Modify the document text and structure using user defined patterns.')
COMMIT_NAME = 'search_and_replace' COMMIT_NAME = 'search_and_replace'
ICON = I('search.png') ICON = 'search.png'
STRIP_TEXT_FIELDS = False STRIP_TEXT_FIELDS = False
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):

View File

@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('SNB output') TITLE = _('SNB output')
HELP = _('Options specific to')+' SNB '+_('output') HELP = _('Options specific to')+' SNB '+_('output')
COMMIT_NAME = 'snb_output' COMMIT_NAME = 'snb_output'
ICON = I('mimetypes/snb.png') ICON = 'mimetypes/snb.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['snb']) Widget.__init__(self, parent, OPTIONS['output']['snb'])

View File

@ -16,7 +16,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('TXT input') TITLE = _('TXT input')
HELP = _('Options specific to')+' TXT '+_('input') HELP = _('Options specific to')+' TXT '+_('input')
COMMIT_NAME = 'txt_input' COMMIT_NAME = 'txt_input'
ICON = I('mimetypes/txt.png') ICON = 'mimetypes/txt.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['input']['txt']) Widget.__init__(self, parent, OPTIONS['input']['txt'])

View File

@ -13,7 +13,7 @@ class PluginWidget(Widget, Ui_Form):
TITLE = _('TXT output') TITLE = _('TXT output')
HELP = _('Options specific to')+' TXT '+_('output') HELP = _('Options specific to')+' TXT '+_('output')
COMMIT_NAME = 'txt_output' COMMIT_NAME = 'txt_output'
ICON = I('mimetypes/txt.png') ICON = 'mimetypes/txt.png'
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, OPTIONS['output']['txt']) Widget.__init__(self, parent, OPTIONS['output']['txt'])

View File

@ -53,7 +53,7 @@ class Catalog(QDialog, Ui_Dialog):
pw = catalog_widget.PluginWidget() pw = catalog_widget.PluginWidget()
pw.parent_ref = weakref.ref(self) pw.parent_ref = weakref.ref(self)
pw.initialize(name, db) pw.initialize(name, db)
pw.ICON = I('forward.png') pw.ICON = 'forward.png'
self.widgets.append(pw) self.widgets.append(pw)
[self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types] [self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types]
except ImportError: except ImportError:
@ -86,7 +86,7 @@ class Catalog(QDialog, Ui_Dialog):
catalog_widget = importlib.import_module(name) catalog_widget = importlib.import_module(name)
pw = catalog_widget.PluginWidget() pw = catalog_widget.PluginWidget()
pw.initialize(name) pw.initialize(name)
pw.ICON = I('forward.png') pw.ICON = 'forward.png'
self.widgets.append(pw) self.widgets.append(pw)
[self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types] [self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types]
except ImportError: except ImportError: