24 # Start-Of-Header |
24 # Start-Of-Header |
25 name = "MQTT Monitor Plugin" |
25 name = "MQTT Monitor Plugin" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
27 autoactivate = True |
27 autoactivate = True |
28 deactivateable = True |
28 deactivateable = True |
29 version = "1.1.0" |
29 version = "1.1.1" |
30 className = "MqttMonitorPlugin" |
30 className = "MqttMonitorPlugin" |
31 packageName = "MqttMonitor" |
31 packageName = "MqttMonitor" |
32 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
32 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
33 longDescription = ( |
33 longDescription = ( |
34 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
34 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
176 |
176 |
177 usesDarkPalette = ericApp().usesDarkPalette() |
177 usesDarkPalette = ericApp().usesDarkPalette() |
178 iconSuffix = "dark" if usesDarkPalette else "light" |
178 iconSuffix = "dark" if usesDarkPalette else "light" |
179 |
179 |
180 self.__widget = MqttMonitorWidget(self, usesDarkPalette) |
180 self.__widget = MqttMonitorWidget(self, usesDarkPalette) |
|
181 if self.__ui.getLayoutType() == "Sidebars": |
|
182 iconName = "sbMqttMonitor96" |
|
183 else: |
|
184 iconName = "mqtt22-{0}".format(iconSuffix) |
181 self.__ui.addSideWidget( |
185 self.__ui.addSideWidget( |
182 self.__ui.RightSide, self.__widget, |
186 self.__ui.RightSide, self.__widget, |
183 UI.PixmapCache.getIcon( |
187 UI.PixmapCache.getIcon( |
184 os.path.join("MqttMonitor", "icons", |
188 os.path.join("MqttMonitor", "icons", iconName)), |
185 "mqtt22-{0}".format(iconSuffix))), |
|
186 self.tr("MQTT Monitor")) |
189 self.tr("MQTT Monitor")) |
187 |
190 |
188 self.__activateAct = EricAction( |
191 self.__activateAct = EricAction( |
189 self.tr('MQTT Monitor'), |
192 self.tr('MQTT Monitor'), |
190 self.tr('M&QTT Monitor'), |
193 self.tr('M&QTT Monitor'), |