# 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
from PyQt4 import QtCore
from PyQt4 import QtGui
from commotion_client.assets import commotion_assets_rc
from commotion_client.GUI import extension_toolbar
        self.viewport = viewport
        #Create toolbar object
        self.toolbar = QtGui.QToolBar(self)
        #Create & add settings item
        self.settings = self.init_settings()
        self.toolbar.addWidget(self.settings)
        #Create & add user item
#        self.user = self.init_user()
#        self.toolbar.addWidget(self.user)
        #Create extension toolbar section if needed
#        if extension_toolbar:
#            self.extension_toolbar = extension_toolbar(self, viewport)
#            self.init_extension_toolbar()

    def init_settings(self):
        """short description
        
        long description
        
        Args:
        name (type): Description.
        
        Returns:
        Description.
        
        Raises:
        exception: Description.
        
        """
        settings_menu = extension_toolbar.MenuItem(self, self.viewport)

# 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/GUI/toolbar.py
import logging
from PyQt4 import QtCore
from PyQt4 import QtGui
from commotion_client.assets import commotion_assets_rc
from commotion_client.GUI import extension_toolbar

        self.viewport = viewport
        #Create toolbar object
        self.toolbar = QtGui.QToolBar(self)
        #Create & add settings item
        self.settings = self.init_settings()
        self.toolbar.addWidget(self.settings)
        #Create & add user item
#        self.user = self.init_user()
#        self.toolbar.addWidget(self.user)
        #Create extension toolbar section if needed
#        if extension_toolbar:
#            self.extension_toolbar = extension_toolbar(self, viewport)
#            self.init_extension_toolbar()

    def init_settings(self):
        """short description
        
        long description
        
        Args:
        name (type): Description.
        
        Returns:
        Description.
        
        Raises:
        exception: Description.
        
        """
        settings_menu = extension_toolbar.MenuItem(self, self.viewport)

        settings_menu.setIcon(extension_toolbar.icon.settings)