mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
more QIcon.ic() usage
This commit is contained in:
parent
35aba136ee
commit
a48fae501f
@ -1106,7 +1106,7 @@ plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
||||
|
||||
class LookAndFeel(PreferencesPlugin):
|
||||
name = 'Look & Feel'
|
||||
icon = I('lookfeel.png')
|
||||
icon = 'lookfeel.png'
|
||||
gui_name = _('Look & feel')
|
||||
category = 'Interface'
|
||||
gui_category = _('Interface')
|
||||
@ -1119,7 +1119,7 @@ class LookAndFeel(PreferencesPlugin):
|
||||
|
||||
class Behavior(PreferencesPlugin):
|
||||
name = 'Behavior'
|
||||
icon = I('config.png')
|
||||
icon = 'config.png'
|
||||
gui_name = _('Behavior')
|
||||
category = 'Interface'
|
||||
gui_category = _('Interface')
|
||||
@ -1131,7 +1131,7 @@ class Behavior(PreferencesPlugin):
|
||||
|
||||
class Columns(PreferencesPlugin):
|
||||
name = 'Custom Columns'
|
||||
icon = I('column.png')
|
||||
icon = 'column.png'
|
||||
gui_name = _('Add your own columns')
|
||||
category = 'Interface'
|
||||
gui_category = _('Interface')
|
||||
@ -1143,7 +1143,7 @@ class Columns(PreferencesPlugin):
|
||||
|
||||
class Toolbar(PreferencesPlugin):
|
||||
name = 'Toolbar'
|
||||
icon = I('wizard.png')
|
||||
icon = 'wizard.png'
|
||||
gui_name = _('Toolbars & menus')
|
||||
category = 'Interface'
|
||||
gui_category = _('Interface')
|
||||
@ -1156,7 +1156,7 @@ class Toolbar(PreferencesPlugin):
|
||||
|
||||
class Search(PreferencesPlugin):
|
||||
name = 'Search'
|
||||
icon = I('search.png')
|
||||
icon = 'search.png'
|
||||
gui_name = _('Searching')
|
||||
category = 'Interface'
|
||||
gui_category = _('Interface')
|
||||
@ -1168,7 +1168,7 @@ class Search(PreferencesPlugin):
|
||||
|
||||
class InputOptions(PreferencesPlugin):
|
||||
name = 'Input Options'
|
||||
icon = I('arrow-down.png')
|
||||
icon = 'arrow-down.png'
|
||||
gui_name = _('Input options')
|
||||
category = 'Conversion'
|
||||
gui_category = _('Conversion')
|
||||
@ -1185,7 +1185,7 @@ class InputOptions(PreferencesPlugin):
|
||||
|
||||
class CommonOptions(PreferencesPlugin):
|
||||
name = 'Common Options'
|
||||
icon = I('convert.png')
|
||||
icon = 'convert.png'
|
||||
gui_name = _('Common options')
|
||||
category = 'Conversion'
|
||||
gui_category = _('Conversion')
|
||||
@ -1197,7 +1197,7 @@ class CommonOptions(PreferencesPlugin):
|
||||
|
||||
class OutputOptions(PreferencesPlugin):
|
||||
name = 'Output Options'
|
||||
icon = I('arrow-up.png')
|
||||
icon = 'arrow-up.png'
|
||||
gui_name = _('Output options')
|
||||
category = 'Conversion'
|
||||
gui_category = _('Conversion')
|
||||
@ -1209,7 +1209,7 @@ class OutputOptions(PreferencesPlugin):
|
||||
|
||||
class Adding(PreferencesPlugin):
|
||||
name = 'Adding'
|
||||
icon = I('add_book.png')
|
||||
icon = 'add_book.png'
|
||||
gui_name = _('Adding books')
|
||||
category = 'Import/Export'
|
||||
gui_category = _('Import/export')
|
||||
@ -1222,7 +1222,7 @@ class Adding(PreferencesPlugin):
|
||||
|
||||
class Saving(PreferencesPlugin):
|
||||
name = 'Saving'
|
||||
icon = I('save.png')
|
||||
icon = 'save.png'
|
||||
gui_name = _('Saving books to disk')
|
||||
category = 'Import/Export'
|
||||
gui_category = _('Import/export')
|
||||
@ -1235,7 +1235,7 @@ class Saving(PreferencesPlugin):
|
||||
|
||||
class Sending(PreferencesPlugin):
|
||||
name = 'Sending'
|
||||
icon = I('sync.png')
|
||||
icon = 'sync.png'
|
||||
gui_name = _('Sending books to devices')
|
||||
category = 'Import/Export'
|
||||
gui_category = _('Import/export')
|
||||
@ -1248,7 +1248,7 @@ class Sending(PreferencesPlugin):
|
||||
|
||||
class Plugboard(PreferencesPlugin):
|
||||
name = 'Plugboard'
|
||||
icon = I('plugboard.png')
|
||||
icon = 'plugboard.png'
|
||||
gui_name = _('Metadata plugboards')
|
||||
category = 'Import/Export'
|
||||
gui_category = _('Import/export')
|
||||
@ -1260,7 +1260,7 @@ class Plugboard(PreferencesPlugin):
|
||||
|
||||
class TemplateFunctions(PreferencesPlugin):
|
||||
name = 'TemplateFunctions'
|
||||
icon = I('template_funcs.png')
|
||||
icon = 'template_funcs.png'
|
||||
gui_name = _('Template functions')
|
||||
category = 'Advanced'
|
||||
gui_category = _('Advanced')
|
||||
@ -1272,7 +1272,7 @@ class TemplateFunctions(PreferencesPlugin):
|
||||
|
||||
class Email(PreferencesPlugin):
|
||||
name = 'Email'
|
||||
icon = I('mail.png')
|
||||
icon = 'mail.png'
|
||||
gui_name = _('Sharing books by email')
|
||||
category = 'Sharing'
|
||||
gui_category = _('Sharing')
|
||||
@ -1285,7 +1285,7 @@ class Email(PreferencesPlugin):
|
||||
|
||||
class Server(PreferencesPlugin):
|
||||
name = 'Server'
|
||||
icon = I('network-server.png')
|
||||
icon = 'network-server.png'
|
||||
gui_name = _('Sharing over the net')
|
||||
category = 'Sharing'
|
||||
gui_category = _('Sharing')
|
||||
@ -1299,7 +1299,7 @@ class Server(PreferencesPlugin):
|
||||
|
||||
class MetadataSources(PreferencesPlugin):
|
||||
name = 'Metadata download'
|
||||
icon = I('download-metadata.png')
|
||||
icon = 'download-metadata.png'
|
||||
gui_name = _('Metadata download')
|
||||
category = 'Sharing'
|
||||
gui_category = _('Sharing')
|
||||
@ -1311,7 +1311,7 @@ class MetadataSources(PreferencesPlugin):
|
||||
|
||||
class IgnoredDevices(PreferencesPlugin):
|
||||
name = 'Ignored Devices'
|
||||
icon = I('reader.png')
|
||||
icon = 'reader.png'
|
||||
gui_name = _('Ignored devices')
|
||||
category = 'Sharing'
|
||||
gui_category = _('Sharing')
|
||||
@ -1324,7 +1324,7 @@ class IgnoredDevices(PreferencesPlugin):
|
||||
|
||||
class Plugins(PreferencesPlugin):
|
||||
name = 'Plugins'
|
||||
icon = I('plugins.png')
|
||||
icon = 'plugins.png'
|
||||
gui_name = _('Plugins')
|
||||
category = 'Advanced'
|
||||
gui_category = _('Advanced')
|
||||
@ -1337,7 +1337,7 @@ class Plugins(PreferencesPlugin):
|
||||
|
||||
class Tweaks(PreferencesPlugin):
|
||||
name = 'Tweaks'
|
||||
icon = I('tweaks.png')
|
||||
icon = 'tweaks.png'
|
||||
gui_name = _('Tweaks')
|
||||
category = 'Advanced'
|
||||
gui_category = _('Advanced')
|
||||
@ -1349,7 +1349,7 @@ class Tweaks(PreferencesPlugin):
|
||||
|
||||
class Keyboard(PreferencesPlugin):
|
||||
name = 'Keyboard'
|
||||
icon = I('keyboard-prefs.png')
|
||||
icon = 'keyboard-prefs.png'
|
||||
gui_name = _('Shortcuts')
|
||||
category = 'Advanced'
|
||||
gui_category = _('Advanced')
|
||||
@ -1361,7 +1361,7 @@ class Keyboard(PreferencesPlugin):
|
||||
|
||||
class Misc(PreferencesPlugin):
|
||||
name = 'Misc'
|
||||
icon = I('exec.png')
|
||||
icon = 'exec.png'
|
||||
gui_name = _('Miscellaneous')
|
||||
category = 'Advanced'
|
||||
gui_category = _('Advanced')
|
||||
|
@ -105,7 +105,7 @@ def gui_configuration_widget(name, parent, get_option_by_name,
|
||||
output_widget = importlib.import_module(
|
||||
'calibre.gui2.convert.'+name)
|
||||
pw = output_widget.PluginWidget
|
||||
pw.ICON = I('back.png')
|
||||
pw.ICON = 'back.png'
|
||||
pw.HELP = _('Options specific to the output format.')
|
||||
return widget_factory(pw)
|
||||
except ImportError:
|
||||
@ -115,7 +115,7 @@ def gui_configuration_widget(name, parent, get_option_by_name,
|
||||
input_widget = importlib.import_module(
|
||||
'calibre.gui2.convert.'+name)
|
||||
pw = input_widget.PluginWidget
|
||||
pw.ICON = I('forward.png')
|
||||
pw.ICON = 'forward.png'
|
||||
pw.HELP = _('Options specific to the input format.')
|
||||
return widget_factory(pw)
|
||||
except ImportError:
|
||||
|
@ -18,7 +18,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('AZW3 output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['azw3'])
|
||||
|
@ -16,7 +16,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('Comic input')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['input']['comic'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('DOCX input')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['input']['docx'])
|
||||
|
@ -16,7 +16,7 @@ class PluginWidget(Widget):
|
||||
TITLE = _('DOCX output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['docx'])
|
||||
|
@ -16,7 +16,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('EPUB output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['epub'])
|
||||
|
@ -12,7 +12,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('FB2 input')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['input']['fb2'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('FB2 output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['fb2'])
|
||||
|
@ -16,7 +16,7 @@ class HeuristicsWidget(Widget, Ui_Form):
|
||||
TITLE = _('Heuristic\nprocessing')
|
||||
HELP = _('Modify the document text and structure using common patterns.')
|
||||
COMMIT_NAME = 'heuristics'
|
||||
ICON = I('heuristics.png')
|
||||
ICON = 'heuristics.png'
|
||||
|
||||
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||
Widget.__init__(self, parent, OPTIONS['pipe']['heuristics'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('HTMLZ output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['htmlz'])
|
||||
|
@ -17,7 +17,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('LRF output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['lrf'])
|
||||
|
@ -18,7 +18,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('MOBI output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['mobi'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('PDB output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['pdb'])
|
||||
|
@ -12,7 +12,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('PDF input')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['input']['pdf'])
|
||||
|
@ -19,7 +19,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('PDF output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['pdf'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('PMLZ output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['pml'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('RB output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['rb'])
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('RTF input')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['input']['rtf'])
|
||||
|
@ -21,7 +21,7 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
|
||||
TITLE = _('Search &\nreplace')
|
||||
HELP = _('Modify the document text and structure using user defined patterns.')
|
||||
COMMIT_NAME = 'search_and_replace'
|
||||
ICON = I('search.png')
|
||||
ICON = 'search.png'
|
||||
STRIP_TEXT_FIELDS = False
|
||||
|
||||
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||
|
@ -14,7 +14,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('SNB output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['snb'])
|
||||
|
@ -16,7 +16,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('TXT input')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['input']['txt'])
|
||||
|
@ -13,7 +13,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
TITLE = _('TXT output')
|
||||
HELP = _('Options specific to')+' 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):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['txt'])
|
||||
|
@ -53,7 +53,7 @@ class Catalog(QDialog, Ui_Dialog):
|
||||
pw = catalog_widget.PluginWidget()
|
||||
pw.parent_ref = weakref.ref(self)
|
||||
pw.initialize(name, db)
|
||||
pw.ICON = I('forward.png')
|
||||
pw.ICON = 'forward.png'
|
||||
self.widgets.append(pw)
|
||||
[self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types]
|
||||
except ImportError:
|
||||
@ -86,7 +86,7 @@ class Catalog(QDialog, Ui_Dialog):
|
||||
catalog_widget = importlib.import_module(name)
|
||||
pw = catalog_widget.PluginWidget()
|
||||
pw.initialize(name)
|
||||
pw.ICON = I('forward.png')
|
||||
pw.ICON = 'forward.png'
|
||||
self.widgets.append(pw)
|
||||
[self.fmts.append([file_type.upper(), pw.sync_enabled,pw]) for file_type in plugin.file_types]
|
||||
except ImportError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user