11 |
11 |
12 from PyQt6.QtCore import QCoreApplication, QDate, Qt |
12 from PyQt6.QtCore import QCoreApplication, QDate, Qt |
13 |
13 |
14 from .BookmarksImporter import BookmarksImporter |
14 from .BookmarksImporter import BookmarksImporter |
15 |
15 |
16 import UI.PixmapCache |
16 from eric7.EricGui import EricPixmapCache |
17 |
17 |
18 |
18 |
19 def getImporterInfo(sourceId): |
19 def getImporterInfo(sourceId): |
20 """ |
20 """ |
21 Module function to get information for the given HTML source id. |
21 Module function to get information for the given HTML source id. |
29 """ |
29 """ |
30 if sourceId != "html": |
30 if sourceId != "html": |
31 raise ValueError("Unsupported browser ID given ({0}).".format(sourceId)) |
31 raise ValueError("Unsupported browser ID given ({0}).".format(sourceId)) |
32 |
32 |
33 return ( |
33 return ( |
34 UI.PixmapCache.getPixmap("html"), |
34 EricPixmapCache.getPixmap("html"), |
35 "HTML Netscape Bookmarks", |
35 "HTML Netscape Bookmarks", |
36 QCoreApplication.translate("HtmlImporter", "HTML Netscape Bookmarks") |
36 QCoreApplication.translate("HtmlImporter", "HTML Netscape Bookmarks") |
37 + " (*.htm *.html)", |
37 + " (*.htm *.html)", |
38 QCoreApplication.translate( |
38 QCoreApplication.translate( |
39 "HtmlImporter", |
39 "HtmlImporter", |