9 |
9 |
10 from PyQt4.QtCore import SIGNAL, SLOT, QEvent, QSize, Qt, QByteArray, \ |
10 from PyQt4.QtCore import SIGNAL, SLOT, QEvent, QSize, Qt, QByteArray, \ |
11 QDataStream, QIODevice |
11 QDataStream, QIODevice |
12 from PyQt4.QtGui import QTabBar, QWidget, QStackedWidget, QBoxLayout, QToolButton |
12 from PyQt4.QtGui import QTabBar, QWidget, QStackedWidget, QBoxLayout, QToolButton |
13 |
13 |
14 from E4Gui.E4Application import e4App |
14 from E4Gui.E4Application import e5App |
15 |
15 |
16 import UI.PixmapCache |
16 import UI.PixmapCache |
17 |
17 |
18 class E4SideBar(QWidget): |
18 class E4SideBar(QWidget): |
19 """ |
19 """ |
76 orientation = E4SideBar.North |
76 orientation = E4SideBar.North |
77 self.setOrientation(orientation) |
77 self.setOrientation(orientation) |
78 |
78 |
79 self.connect(self.__tabBar, SIGNAL("currentChanged(int)"), |
79 self.connect(self.__tabBar, SIGNAL("currentChanged(int)"), |
80 self.__stackedWidget, SLOT("setCurrentIndex(int)")) |
80 self.__stackedWidget, SLOT("setCurrentIndex(int)")) |
81 self.connect(e4App(), SIGNAL("focusChanged(QWidget*, QWidget*)"), |
81 self.connect(e5App(), SIGNAL("focusChanged(QWidget*, QWidget*)"), |
82 self.__appFocusChanged) |
82 self.__appFocusChanged) |
83 self.connect(self.__autoHideButton, SIGNAL("toggled(bool)"), |
83 self.connect(self.__autoHideButton, SIGNAL("toggled(bool)"), |
84 self.__autoHideToggled) |
84 self.__autoHideToggled) |
85 |
85 |
86 def setSplitter(self, splitter): |
86 def setSplitter(self, splitter): |