60 self.__vm = viewmanager |
60 self.__vm = viewmanager |
61 |
61 |
62 self.__layout = QVBoxLayout() |
62 self.__layout = QVBoxLayout() |
63 self.__layout.setObjectName("MainLayout") |
63 self.__layout.setObjectName("MainLayout") |
64 self.__layout.setContentsMargins(0, 3, 0, 0) |
64 self.__layout.setContentsMargins(0, 3, 0, 0) |
65 self.__topLayout = QHBoxLayout() |
65 |
66 self.__topLayout.setObjectName("topLayout") |
66 # Create the info label part |
67 |
|
68 # Create the top area |
|
69 self.__infoLabel = QLabel(self) |
67 self.__infoLabel = QLabel(self) |
70 self.__infoLabel.setSizePolicy( |
68 self.__infoLabel.setSizePolicy( |
71 QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred |
69 QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred |
72 ) |
70 ) |
73 self.__topLayout.addWidget(self.__infoLabel) |
71 self.__layout.addWidget(self.__infoLabel) |
|
72 |
|
73 # Create the top area |
|
74 self.__topLayout = QHBoxLayout() |
|
75 self.__topLayout.setObjectName("topLayout") |
|
76 |
|
77 self.__topLayout.addStretch() |
74 |
78 |
75 self.__commitToggleButton = QToolButton(self) |
79 self.__commitToggleButton = QToolButton(self) |
76 self.__commitToggleButton.setIcon(EricPixmapCache.getIcon("check")) |
80 self.__commitToggleButton.setIcon(EricPixmapCache.getIcon("check")) |
77 self.__commitToggleButton.setToolTip( |
81 self.__commitToggleButton.setToolTip( |
78 self.tr("Press to toggle the commit markers") |
82 self.tr("Press to toggle the commit markers") |
105 self.__actionsButton = QToolButton(self) |
109 self.__actionsButton = QToolButton(self) |
106 self.__actionsButton.setIcon(EricPixmapCache.getIcon("actionsToolButton")) |
110 self.__actionsButton.setIcon(EricPixmapCache.getIcon("actionsToolButton")) |
107 self.__actionsButton.setToolTip(self.tr("Select action from menu")) |
111 self.__actionsButton.setToolTip(self.tr("Select action from menu")) |
108 self.__actionsButton.setPopupMode(QToolButton.ToolButtonPopupMode.InstantPopup) |
112 self.__actionsButton.setPopupMode(QToolButton.ToolButtonPopupMode.InstantPopup) |
109 self.__topLayout.addWidget(self.__actionsButton) |
113 self.__topLayout.addWidget(self.__actionsButton) |
|
114 |
|
115 self.__topLayout.addStretch() |
110 |
116 |
111 self.__layout.addLayout(self.__topLayout) |
117 self.__layout.addLayout(self.__topLayout) |
112 ################################################################### |
118 ################################################################### |
113 |
119 |
114 # Create the middle part |
120 # Create the middle part |