11 import json |
11 import json |
12 |
12 |
13 from PyQt6.QtCore import Qt, QObject, QTranslator, QCoreApplication |
13 from PyQt6.QtCore import Qt, QObject, QTranslator, QCoreApplication |
14 from PyQt6.QtGui import QKeySequence |
14 from PyQt6.QtGui import QKeySequence |
15 |
15 |
16 from EricWidgets.EricApplication import ericApp |
16 from eric7 import Preferences |
17 from EricGui.EricAction import EricAction |
17 from eric7.EricGui.EricAction import EricAction |
18 |
18 from eric7.EricWidgets.EricApplication import ericApp |
19 import UI.PixmapCache |
19 |
20 import Preferences |
20 try: |
|
21 from eric7.EricGui import EricPixmapCache |
|
22 except ImportError: |
|
23 from UI import PixmapCache as EricPixmapCache |
21 |
24 |
22 from MqttMonitor.MqttProtocols import MqttProtocols |
25 from MqttMonitor.MqttProtocols import MqttProtocols |
23 |
26 |
24 # Start-Of-Header |
27 # Start-Of-Header |
25 name = "MQTT Monitor Plugin" |
28 name = "MQTT Monitor Plugin" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
29 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
27 autoactivate = True |
30 autoactivate = True |
28 deactivateable = True |
31 deactivateable = True |
29 version = "10.2.2" |
32 version = "10.3.0" |
30 className = "MqttMonitorPlugin" |
33 className = "MqttMonitorPlugin" |
31 packageName = "MqttMonitor" |
34 packageName = "MqttMonitor" |
32 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
35 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" |
33 longDescription = ( |
36 longDescription = ( |
34 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
37 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" |
189 else "mqtt22-{0}".format(iconSuffix) |
192 else "mqtt22-{0}".format(iconSuffix) |
190 ) |
193 ) |
191 self.__ui.addSideWidget( |
194 self.__ui.addSideWidget( |
192 self.__ui.RightSide, |
195 self.__ui.RightSide, |
193 self.__widget, |
196 self.__widget, |
194 UI.PixmapCache.getIcon(os.path.join("MqttMonitor", "icons", iconName)), |
197 EricPixmapCache.getIcon(os.path.join("MqttMonitor", "icons", iconName)), |
195 self.tr("MQTT Monitor"), |
198 self.tr("MQTT Monitor"), |
196 ) |
199 ) |
197 |
200 |
198 self.__activateAct = EricAction( |
201 self.__activateAct = EricAction( |
199 self.tr("MQTT Monitor"), |
202 self.tr("MQTT Monitor"), |