E5Gui/E5ToolBarDialog.py

changeset 1112
8a7d1b9d18db
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
equal deleted inserted replaced
1109:9552b5e16a07 1112:8a7d1b9d18db
5 5
6 """ 6 """
7 Module implementing a toolbar configuration dialog. 7 Module implementing a toolbar configuration dialog.
8 """ 8 """
9 9
10 from PyQt4.QtGui import * 10 from PyQt4.QtCore import pyqtSlot, Qt
11 from PyQt4.QtCore import * 11 from PyQt4.QtGui import QDialog, QDialogButtonBox, QTreeWidgetItem, QColor, \
12 QInputDialog, QLineEdit, QListWidgetItem, QAbstractButton
12 13
13 from E5Gui import E5MessageBox 14 from E5Gui import E5MessageBox
14 15
15 from .Ui_E5ToolBarDialog import Ui_E5ToolBarDialog 16 from .Ui_E5ToolBarDialog import Ui_E5ToolBarDialog
16 17
56 self.__manager = toolBarManager 57 self.__manager = toolBarManager
57 self.__toolbarItems = {} # maps toolbar item IDs to toolbar items 58 self.__toolbarItems = {} # maps toolbar item IDs to toolbar items
58 self.__currentToolBarItem = None 59 self.__currentToolBarItem = None
59 self.__removedToolBarIDs = [] # remember custom toolbars to be deleted 60 self.__removedToolBarIDs = [] # remember custom toolbars to be deleted
60 61
61 self.__widgetActionToToolBarItemID = {} # maps widget action IDs to toolbar item IDs 62 self.__widgetActionToToolBarItemID = {}
62 self.__toolBarItemToWidgetActionID = {} # maps toolbar item IDs to widget action IDs 63 # maps widget action IDs to toolbar item IDs
64 self.__toolBarItemToWidgetActionID = {}
65 # maps toolbar item IDs to widget action IDs
63 66
64 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) 67 self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png"))
65 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png")) 68 self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png"))
66 self.leftButton.setIcon(UI.PixmapCache.getIcon("1leftarrow.png")) 69 self.leftButton.setIcon(UI.PixmapCache.getIcon("1leftarrow.png"))
67 self.rightButton.setIcon(UI.PixmapCache.getIcon("1rightarrow.png")) 70 self.rightButton.setIcon(UI.PixmapCache.getIcon("1rightarrow.png"))

eric ide

mercurial