src/eric7/WebBrowser/TabManager/TabManagerWidget.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
10 # 10 #
11 # Modeled after the tab manager plug-in of Qupzilla 11 # Modeled after the tab manager plug-in of Qupzilla
12 # Copyright (C) 2013 S. Razi Alavizadeh <s.r.alavizadeh@gmail.com> 12 # Copyright (C) 2013 S. Razi Alavizadeh <s.r.alavizadeh@gmail.com>
13 # 13 #
14 14
15 import collections
15 import os 16 import os
16 import collections 17
17 18 from PyQt6.QtCore import QPoint, QRect, Qt, QTimer, pyqtSignal, pyqtSlot
18 from PyQt6.QtCore import pyqtSignal, pyqtSlot, Qt, QPoint, QTimer, QRect
19 from PyQt6.QtGui import QAction 19 from PyQt6.QtGui import QAction
20 from PyQt6.QtWidgets import ( 20 from PyQt6.QtWidgets import (
21 QWidget, 21 QMenu,
22 QVBoxLayout, 22 QStyle,
23 QTreeWidget, 23 QTreeWidget,
24 QTreeWidgetItem, 24 QTreeWidgetItem,
25 QMenu, 25 QVBoxLayout,
26 QStyle, 26 QWidget,
27 ) 27 )
28 28
29 from eric7.EricNetwork import EricTldExtractor, EricNetworkUtilities 29 from eric7 import Preferences, Utilities
30 30 from eric7.EricGui import EricPixmapCache
31 from eric7.EricNetwork import EricNetworkUtilities, EricTldExtractor
31 from eric7.EricWidgets.EricApplication import ericApp 32 from eric7.EricWidgets.EricApplication import ericApp
32 from eric7.EricWidgets.EricClickableLabel import EricClickableLabel 33 from eric7.EricWidgets.EricClickableLabel import EricClickableLabel
33
34 from eric7 import Preferences, Utilities
35 from eric7.EricGui import EricPixmapCache
36 34
37 35
38 class TabManagerWidget(QWidget): 36 class TabManagerWidget(QWidget):
39 """ 37 """
40 Class implementing a window for managing the web browser tabs. 38 Class implementing a window for managing the web browser tabs.
124 as value 122 as value
125 """ 123 """
126 if not browsersDict: 124 if not browsersDict:
127 return 125 return
128 126
127 from ..Bookmarks.AddBookmarkDialog import AddBookmarkDialog
129 from ..Bookmarks.BookmarkNode import BookmarkNode 128 from ..Bookmarks.BookmarkNode import BookmarkNode
130 from ..Bookmarks.AddBookmarkDialog import AddBookmarkDialog
131 129
132 dlg = AddBookmarkDialog() 130 dlg = AddBookmarkDialog()
133 dlg.setFolder(True) 131 dlg.setFolder(True)
134 dlg.setTitle(self.tr("Saved Tabs")) 132 dlg.setTitle(self.tr("Saved Tabs"))
135 dlg.exec() 133 dlg.exec()

eric ide

mercurial