# Path: src/controllers/utils.py
# def registerContext(func):
#     @functools.wraps(func)
#     def wrapper(*args, **kwargs):
#         self = args[0]
#         if hasattr(self, '__contextName__'):
#             contexts.update({self.__contextName__: self})
#         func(*args, **kwargs)
# 
#     return wrapper
# 
# Path: src/controllers/signalmanager.py
# class SignalManager(QObject):
#     def __init__(self, parent=None):


import os
import sys
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
from PyQt5.QtGui import QCursor
from .utils import registerContext
from .signalmanager import signalManager
        self._lastWindowMode = mode

    @pyqtSlot()
    def showNormal(self):
        if self.lastWindowMode == "Full":
            self.mainWindowShowed.emit()
        elif self.lastWindowMode == "Simple":
            self.simpleWindowShowed.emit()
        else:
            pass

    @pyqtProperty('QString', notify=currentMusicManagerPageNameChanged)
    def currentMusicManagerPageName(self):
        return self._currentMusicManagerPageName

    @currentMusicManagerPageName.setter
    def currentMusicManagerPageName(self, value):
        self._currentMusicManagerPageName = value
        self.currentMusicManagerPageNameChanged.emit(value)

    def actionSimpleFullToggle(self):
        if self._windowMode == 'Full':
            self.simpleWindowShowed.emit()
        elif self._windowMode == 'Simple':
            self.mainWindowShowed.emit()

    def actionMiniFullToggle(self):
        if self._windowMode == 'Full':
            self.miniWindowShowed.emit()
        elif self._windowMode == 'Mini':

# Path: src/controllers/utils.py
# def registerContext(func):
#     @functools.wraps(func)
#     def wrapper(*args, **kwargs):
#         self = args[0]
#         if hasattr(self, '__contextName__'):
#             contexts.update({self.__contextName__: self})
#         func(*args, **kwargs)
# 
#     return wrapper
# 
# Path: src/controllers/signalmanager.py
# class SignalManager(QObject):
#     def __init__(self, parent=None):


# Path: src/controllers/windowmanageworker.py
import os
import sys
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
from PyQt5.QtGui import QCursor
from .utils import registerContext
from .signalmanager import signalManager

        self._lastWindowMode = mode

    @pyqtSlot()
    def showNormal(self):
        if self.lastWindowMode == "Full":
            self.mainWindowShowed.emit()
        elif self.lastWindowMode == "Simple":
            self.simpleWindowShowed.emit()
        else:
            pass

    @pyqtProperty('QString', notify=currentMusicManagerPageNameChanged)
    def currentMusicManagerPageName(self):
        return self._currentMusicManagerPageName

    @currentMusicManagerPageName.setter
    def currentMusicManagerPageName(self, value):
        self._currentMusicManagerPageName = value
        self.currentMusicManagerPageNameChanged.emit(value)

    def actionSimpleFullToggle(self):
        if self._windowMode == 'Full':
            self.simpleWindowShowed.emit()
        elif self._windowMode == 'Simple':
            self.mainWindowShowed.emit()

    def actionMiniFullToggle(self):
        if self._windowMode == 'Full':
            self.miniWindowShowed.emit()
        elif self._windowMode == 'Mini':

            self.mainWindowShowed.emit()