# Path: ipetgui/IpetMainWindow.py
# class IpetMainWindow(QMainWindow):
#     """
#     classdocs
#     """
# 
#     menus = {}
#     toolbars = {}
#     _statusbar = None
#     def __init__(self, parent=None):
#         """
#         Constructor
#         """
#         super(IpetMainWindow, self).__init__(parent)
#         
#         self.setGeometry(100, 100, 1200, 800)
#         IpetMainWindow.setStatusBar(self.statusBar())
#         
#     @staticmethod
#     def getStatusBar():
#         return IpetMainWindow._statusbar
#     
#     @staticmethod
#     def setStatusBar(statusbar):
#         IpetMainWindow._statusbar = statusbar
#         
#     def populateMenu(self, ipetapplicationtab):
#         for menuname, actions in ipetapplicationtab.getMenuActions():
#             menu = self.menus.setdefault(menuname, self.menuBar().addMenu(menuname))
#             for action in actions:
#                 menu.addAction(action)
# 
#     def populateToolBar(self, ipetapplicationtab):
#         for toolbarname, actions in ipetapplicationtab.getToolBarActions():
#             toolbar = self.toolbars.setdefault(toolbarname, self.addToolBar(toolbarname))
#             for action in actions:
#                 toolbar.addAction(action)


from PyQt4.Qt import QWidget, QAction, QIcon, SIGNAL
from .IpetMainWindow import IpetMainWindow
import os.path as osp
        return None

    def getToolBarActions(self):
        """
        returns a list of action lists

        format is [[action1,action2,...], [actionk, ...]]

        just a list of actions is fine, using nested lists will tell the caller where to put separators
        """
        return None

    def createAction(self, text, slot = None, shortcut = None, icon = None,
        tip = None, checkable = False, signal = "triggered()"):
        action = QAction(text, self)
        if icon is not None:
            action.setIcon(QIcon(osp.sep.join((self.imagepath, "%s.png" % icon))))
        if shortcut is not None:
            action.setShortcut(shortcut)
        if tip is not None:
            action.setToolTip(tip)
            action.setStatusTip(tip)
        if slot is not None:
            self.connect(action, SIGNAL(signal), slot)
        if checkable:
            action.setCheckable(True)

        return action

    def updateStatus(self, message):

# Path: ipetgui/IpetMainWindow.py
# class IpetMainWindow(QMainWindow):
#     """
#     classdocs
#     """
# 
#     menus = {}
#     toolbars = {}
#     _statusbar = None
#     def __init__(self, parent=None):
#         """
#         Constructor
#         """
#         super(IpetMainWindow, self).__init__(parent)
#         
#         self.setGeometry(100, 100, 1200, 800)
#         IpetMainWindow.setStatusBar(self.statusBar())
#         
#     @staticmethod
#     def getStatusBar():
#         return IpetMainWindow._statusbar
#     
#     @staticmethod
#     def setStatusBar(statusbar):
#         IpetMainWindow._statusbar = statusbar
#         
#     def populateMenu(self, ipetapplicationtab):
#         for menuname, actions in ipetapplicationtab.getMenuActions():
#             menu = self.menus.setdefault(menuname, self.menuBar().addMenu(menuname))
#             for action in actions:
#                 menu.addAction(action)
# 
#     def populateToolBar(self, ipetapplicationtab):
#         for toolbarname, actions in ipetapplicationtab.getToolBarActions():
#             toolbar = self.toolbars.setdefault(toolbarname, self.addToolBar(toolbarname))
#             for action in actions:
#                 toolbar.addAction(action)


# Path: ipetgui/IPETApplicationTab.py
from PyQt4.Qt import QWidget, QAction, QIcon, SIGNAL
from .IpetMainWindow import IpetMainWindow
import os.path as osp

        return None

    def getToolBarActions(self):
        """
        returns a list of action lists

        format is [[action1,action2,...], [actionk, ...]]

        just a list of actions is fine, using nested lists will tell the caller where to put separators
        """
        return None

    def createAction(self, text, slot = None, shortcut = None, icon = None,
        tip = None, checkable = False, signal = "triggered()"):
        action = QAction(text, self)
        if icon is not None:
            action.setIcon(QIcon(osp.sep.join((self.imagepath, "%s.png" % icon))))
        if shortcut is not None:
            action.setShortcut(shortcut)
        if tip is not None:
            action.setToolTip(tip)
            action.setStatusTip(tip)
        if slot is not None:
            self.connect(action, SIGNAL(signal), slot)
        if checkable:
            action.setCheckable(True)

        return action

    def updateStatus(self, message):

        IpetMainWindow.getStatusBar().showMessage(message, 5000)