10 |
10 |
11 from PyQt6.QtCore import Qt |
11 from PyQt6.QtCore import Qt |
12 from PyQt6.QtGui import QColor |
12 from PyQt6.QtGui import QColor |
13 from PyQt6.QtWidgets import QWidget, QInputDialog, QMenu, QHBoxLayout, QLabel |
13 from PyQt6.QtWidgets import QWidget, QInputDialog, QMenu, QHBoxLayout, QLabel |
14 |
14 |
15 from E5Gui.E5Led import E5ClickableLed, E5LedType |
15 from E5Gui.EricLed import EricClickableLed, EricLedType |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 |
18 |
19 |
19 |
20 class StatusMonitorLed(E5ClickableLed): |
20 class StatusMonitorLed(EricClickableLed): |
21 """ |
21 """ |
22 Class implementing a LED to indicate the status of the VCS status monitor |
22 Class implementing a LED to indicate the status of the VCS status monitor |
23 thread. |
23 thread. |
24 """ |
24 """ |
25 def __init__(self, project, parent): |
25 def __init__(self, project, parent): |
28 |
28 |
29 @param project reference to the project object (Project.Project) |
29 @param project reference to the project object (Project.Project) |
30 @param parent reference to the parent object (QWidget) |
30 @param parent reference to the parent object (QWidget) |
31 """ |
31 """ |
32 super().__init__( |
32 super().__init__( |
33 parent, shape=E5LedType.RECTANGULAR, rectRatio=1.0) |
33 parent, shape=EricLedType.RECTANGULAR, rectRatio=1.0) |
34 |
34 |
35 self.__vcsClean = True |
35 self.__vcsClean = True |
36 self.project = project |
36 self.project = project |
37 |
37 |
38 self.vcsMonitorLedColors = { |
38 self.vcsMonitorLedColors = { |