36 self.xSpinBox.setMaximum(geom.width()) |
36 self.xSpinBox.setMaximum(geom.width()) |
37 self.ySpinBox.setMinimum(geom.y()) |
37 self.ySpinBox.setMinimum(geom.y()) |
38 self.ySpinBox.setMaximum(geom.height()) |
38 self.ySpinBox.setMaximum(geom.height()) |
39 |
39 |
40 self.warningIcon.setPixmap( |
40 self.warningIcon.setPixmap( |
41 NotificationFrame.getIcon(NotificationTypes.Warning)) |
41 NotificationFrame.getIcon(NotificationTypes.WARNING)) |
42 self.criticalIcon.setPixmap( |
42 self.criticalIcon.setPixmap( |
43 NotificationFrame.getIcon(NotificationTypes.Critical)) |
43 NotificationFrame.getIcon(NotificationTypes.CRITICAL)) |
44 |
44 |
45 self.__notification = None |
45 self.__notification = None |
46 self.__firstTime = True |
46 self.__firstTime = True |
47 |
47 |
48 # set initial values |
48 # set initial values |
98 if checked: |
98 if checked: |
99 from UI.NotificationWidget import NotificationWidget |
99 from UI.NotificationWidget import NotificationWidget |
100 self.__notification = NotificationWidget( |
100 self.__notification = NotificationWidget( |
101 parent=self, setPosition=True) |
101 parent=self, setPosition=True) |
102 self.__notification.showNotification( |
102 self.__notification.showNotification( |
103 NotificationFrame.getIcon(NotificationTypes.Other), |
103 NotificationFrame.getIcon(NotificationTypes.OTHER), |
104 self.tr("Visual Selection"), |
104 self.tr("Visual Selection"), |
105 self.tr("Drag the notification window to" |
105 self.tr("Drag the notification window to" |
106 " the desired place and release the button."), |
106 " the desired place and release the button."), |
107 timeout=0 |
107 timeout=0 |
108 ) |
108 ) |