22 # Start-Of-Header |
22 # Start-Of-Header |
23 name = "MQTT Monitor Plugin" |
23 name = "MQTT Monitor Plugin" |
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
25 autoactivate = True |
25 autoactivate = True |
26 deactivateable = True |
26 deactivateable = True |
27 version = "2.1.0" |
27 version = "3.0.0" |
28 className = "MqttMonitorPlugin" |
28 className = "MqttMonitorPlugin" |
29 packageName = "MqttMonitor" |
29 packageName = "MqttMonitor" |
30 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
30 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
31 longDescription = ( |
31 longDescription = ( |
32 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
32 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
199 |
199 |
200 def __activateWidget(self): |
200 def __activateWidget(self): |
201 """ |
201 """ |
202 Private slot to handle the activation of the MQTT Monitor. |
202 Private slot to handle the activation of the MQTT Monitor. |
203 """ |
203 """ |
204 try: |
204 uiLayoutType = self.__ui.getLayoutType() |
205 uiLayoutType = self.__ui.getLayoutType() |
|
206 except AttributeError: |
|
207 # backward compatibility for eric < 18.08 |
|
208 uiLayoutType = self.__ui.layoutType |
|
209 |
205 |
210 if uiLayoutType == "Toolboxes": |
206 if uiLayoutType == "Toolboxes": |
211 self.__ui.rToolboxDock.show() |
207 self.__ui.rToolboxDock.show() |
212 self.__ui.rToolbox.setCurrentWidget(self.__widget) |
208 self.__ui.rToolbox.setCurrentWidget(self.__widget) |
213 elif uiLayoutType == "Sidebars": |
209 elif uiLayoutType == "Sidebars": |