# Path: implementation/primaries/GUI/helpers.py
# def get_base_dir(return_this_dir=False):
#     if getattr(sys, "frozen", False):
#         # If this is running in the context of a frozen (executable) file,
#         # we return the path of the main application executable
#         return os.path.dirname(os.path.abspath(sys.executable))
#     else:
#         # If we are running in script or debug mode, we need
#         # to inspect the currently executing frame. This enable us to always
#         # derive the directory of main.py no matter from where this function
#         # is being called
#         thisdir = os.path.dirname(inspect.getfile(inspect.currentframe()))
#         parent = os.path.abspath(os.path.join(thisdir, os.pardir))
#         if return_this_dir:
#             return thisdir
#         else:
#             return parent
# 
# def parseStyle(stylesheet, theme, theme_folder):
#     results = []
#     for line in stylesheet:
#         cleaned_line = cleanPath(line)
#         themed_path = parseThemePath(cleaned_line, theme_folder)
#         finished_path = parseIconPath(themed_path, theme)
#         results.append(finished_path)
#     return "".join(results)
# 
# Path: implementation/primaries/GUI/themedWindow.py
# class ThemedWindow(object):
#     def __init__(self, theme, themes_folder):
#     def applyTheme(self):
#     def setTheme(self, theme):
# 
# Path: implementation/primaries/GUI/Widgets.py
# class Window(QtGui.QWidget):
# class Scorebook(Window):
# class PlaylistWidget(Window):
# class MyPlaylists(PlaylistWidget):
# class AutoPlaylists(PlaylistWidget):
# class PieceInfo(Window):
# class FeaturedIn(PlaylistWidget):
# class PlaylistBrowser(Window):
# class SearchTree(QtGui.QTreeWidget):
#     def __init__(self, parent, file, title, design_folder):
#     def loadPiece(self, current_item):
#     def __init__(self, parent, design_folder):
#     def onSortChange(self):
#     def onScoresReady(self, pieces):
#     def __init__(self, parent, file, title, design_folder, data_set="mine"):
#     def onPlaylistsReady(self, myPlaylists):
#     def create_widgets(self, data):
#     def loadPlaylists(self, select_method="all"):
#     def load_data(self):
#     def loadPlaylist(self, current_item):
#     def __init__(self, parent, design_folder):
#     def addClicked(self):
#     def delete(self):
#     def __init__(self, parent, design_folder):
#     def sortMethodChanged(self):
#     def onPlaylistsReady(self, playlist_summaries):
#     def __init__(self, parent, design_folder):
#     def loadInfo(self):
#     def __init__(self, parent, design_folder):
#     def loadPlaylists(self):
#     def __init__(self, parent, design_folder):
#     def load(self):
#     def __init__(self, parent, design_folder):
#     def leaveEvent(self, QFocusEvent):
#     def clicked(self, current_item):
#     def clear(self):
#     def group_children(self, root):
#     def remove_children(self, location_type, children, root):
#     def load(self, results):
# 
# Path: implementation/primaries/GUI/pdfViewer.py
# class PDFViewer(object):
#     def __init__(self, width=None, pages=None):
#     def setPDF(self, pdf):
#     def getNumPages(self):
#     def getPageWidth(self, number):
#     def getNumGroups(self):
#     def getPageLabel(self, number):
#     def getPageSize(self, number):
#     def setGroupLength(self, number):
#     def getScene(self):


import sip
import os
from sys import platform
    from popplerqt4 import Poppler
from PyQt4 import QtGui, QtCore, uic
from implementation.primaries.GUI.helpers import get_base_dir, parseStyle
from implementation.primaries.GUI import themedWindow, Widgets
from implementation.primaries.GUI import pdfViewer
if platform == "darwin":




class MultistandWidget(QtGui.QWidget, themedWindow.ThemedWindow):

    def __init__(self, file, theme_folder, theme):
        QtGui.QWidget.__init__(self)

# Path: implementation/primaries/GUI/helpers.py
# def get_base_dir(return_this_dir=False):
#     if getattr(sys, "frozen", False):
#         # If this is running in the context of a frozen (executable) file,
#         # we return the path of the main application executable
#         return os.path.dirname(os.path.abspath(sys.executable))
#     else:
#         # If we are running in script or debug mode, we need
#         # to inspect the currently executing frame. This enable us to always
#         # derive the directory of main.py no matter from where this function
#         # is being called
#         thisdir = os.path.dirname(inspect.getfile(inspect.currentframe()))
#         parent = os.path.abspath(os.path.join(thisdir, os.pardir))
#         if return_this_dir:
#             return thisdir
#         else:
#             return parent
# 
# def parseStyle(stylesheet, theme, theme_folder):
#     results = []
#     for line in stylesheet:
#         cleaned_line = cleanPath(line)
#         themed_path = parseThemePath(cleaned_line, theme_folder)
#         finished_path = parseIconPath(themed_path, theme)
#         results.append(finished_path)
#     return "".join(results)
# 
# Path: implementation/primaries/GUI/themedWindow.py
# class ThemedWindow(object):
#     def __init__(self, theme, themes_folder):
#     def applyTheme(self):
#     def setTheme(self, theme):
# 
# Path: implementation/primaries/GUI/Widgets.py
# class Window(QtGui.QWidget):
# class Scorebook(Window):
# class PlaylistWidget(Window):
# class MyPlaylists(PlaylistWidget):
# class AutoPlaylists(PlaylistWidget):
# class PieceInfo(Window):
# class FeaturedIn(PlaylistWidget):
# class PlaylistBrowser(Window):
# class SearchTree(QtGui.QTreeWidget):
#     def __init__(self, parent, file, title, design_folder):
#     def loadPiece(self, current_item):
#     def __init__(self, parent, design_folder):
#     def onSortChange(self):
#     def onScoresReady(self, pieces):
#     def __init__(self, parent, file, title, design_folder, data_set="mine"):
#     def onPlaylistsReady(self, myPlaylists):
#     def create_widgets(self, data):
#     def loadPlaylists(self, select_method="all"):
#     def load_data(self):
#     def loadPlaylist(self, current_item):
#     def __init__(self, parent, design_folder):
#     def addClicked(self):
#     def delete(self):
#     def __init__(self, parent, design_folder):
#     def sortMethodChanged(self):
#     def onPlaylistsReady(self, playlist_summaries):
#     def __init__(self, parent, design_folder):
#     def loadInfo(self):
#     def __init__(self, parent, design_folder):
#     def loadPlaylists(self):
#     def __init__(self, parent, design_folder):
#     def load(self):
#     def __init__(self, parent, design_folder):
#     def leaveEvent(self, QFocusEvent):
#     def clicked(self, current_item):
#     def clear(self):
#     def group_children(self, root):
#     def remove_children(self, location_type, children, root):
#     def load(self, results):
# 
# Path: implementation/primaries/GUI/pdfViewer.py
# class PDFViewer(object):
#     def __init__(self, width=None, pages=None):
#     def setPDF(self, pdf):
#     def getNumPages(self):
#     def getPageWidth(self, number):
#     def getNumGroups(self):
#     def getPageLabel(self, number):
#     def getPageSize(self, number):
#     def setGroupLength(self, number):
#     def getScene(self):


# Path: implementation/primaries/GUI/MultistandWidget.py
import sip
import os
from sys import platform
    from popplerqt4 import Poppler
from PyQt4 import QtGui, QtCore, uic
from implementation.primaries.GUI.helpers import get_base_dir, parseStyle
from implementation.primaries.GUI import themedWindow, Widgets
from implementation.primaries.GUI import pdfViewer

if platform == "darwin":




class MultistandWidget(QtGui.QWidget, themedWindow.ThemedWindow):

    def __init__(self, file, theme_folder, theme):
        QtGui.QWidget.__init__(self)

        themedWindow.ThemedWindow.__init__(self, theme, theme_folder)