# Path: commotion_client/GUI/extension_toolbar.py
# class ExtensionToolBar(object):
# class MenuItem(QtGui.QToolButton):
#     def __init__(self, viewport):
#     def add_item(self, tool_button):
#     def __init__(self, parent=None, viewport=None):
#     def set_menu(self, value):


import logging
import sys
from PyQt4 import QtCore
from PyQt4 import QtGui
from commotion_client.GUI import extension_toolbar
from ui import Ui_config_manager
    error_report = QtCore.pyqtSignal(str)
    clean_up = QtCore.pyqtSignal()
    on_stop = QtCore.pyqtSignal()

    def __init__(self, parent=None):
        super().__init__()
        self.log = logging.getLogger("commotion_client."+__name__)
        self.translate = QtCore.QCoreApplication.translate
        self.setupUi(self)
        self.start_report_collection.connect(self.send_signal)
        self._dirty = False
        
    @property
    def is_dirty(self):
        """The current state of the viewport object """
        return self._dirty
        
    def clean_up(self):
        self.on_stop.emit()

    def send_signal(self):
        self.data_report.emit("myModule", {"value01":"value", "value02":"value", "value03":"value"})

    def send_error(self):
        """HI"""
        self.error_report.emit("THIS IS AN ERROR MESSAGE!!!")
        pass




# Path: commotion_client/GUI/extension_toolbar.py
# class ExtensionToolBar(object):
# class MenuItem(QtGui.QToolButton):
#     def __init__(self, viewport):
#     def add_item(self, tool_button):
#     def __init__(self, parent=None, viewport=None):
#     def set_menu(self, value):


# Path: commotion_client/extensions/config_editor/main.py
import logging
import sys
from PyQt4 import QtCore
from PyQt4 import QtGui
from commotion_client.GUI import extension_toolbar
from ui import Ui_config_manager

    error_report = QtCore.pyqtSignal(str)
    clean_up = QtCore.pyqtSignal()
    on_stop = QtCore.pyqtSignal()

    def __init__(self, parent=None):
        super().__init__()
        self.log = logging.getLogger("commotion_client."+__name__)
        self.translate = QtCore.QCoreApplication.translate
        self.setupUi(self)
        self.start_report_collection.connect(self.send_signal)
        self._dirty = False
        
    @property
    def is_dirty(self):
        """The current state of the viewport object """
        return self._dirty
        
    def clean_up(self):
        self.on_stop.emit()

    def send_signal(self):
        self.data_report.emit("myModule", {"value01":"value", "value02":"value", "value03":"value"})

    def send_error(self):
        """HI"""
        self.error_report.emit("THIS IS AN ERROR MESSAGE!!!")
        pass




class ToolBar(extension_toolbar.ExtensionToolBar):