4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a toolbar manager class. |
7 Module implementing a toolbar manager class. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import QObject, QByteArray, QDataStream, QIODevice |
12 from PyQt4.QtCore import QObject, QByteArray, QDataStream, QIODevice |
11 from PyQt4.QtGui import QToolBar |
13 from PyQt4.QtGui import QToolBar |
12 |
14 |
13 import Utilities |
15 import Utilities |
26 Constructor |
28 Constructor |
27 |
29 |
28 @param ui reference to the user interface object (UI.UserInterface) |
30 @param ui reference to the user interface object (UI.UserInterface) |
29 @param parent reference to the parent object (QObject) |
31 @param parent reference to the parent object (QObject) |
30 """ |
32 """ |
31 super().__init__(parent) |
33 super(E5ToolBarManager, self).__init__(parent) |
32 |
34 |
33 self.__mainWindow = None |
35 self.__mainWindow = None |
34 self.__ui = ui |
36 self.__ui = ui |
35 |
37 |
36 self.__toolBars = {} # maps toolbar IDs to actions |
38 self.__toolBars = {} # maps toolbar IDs to actions |