# Path: cemu/emulator.py
# class EmulatorState(Enum):
#     NOT_RUNNING = 0
#     IDLE = 1
#     RUNNING = 2
#     STEP_RUNNING = 3
#     FINISHED = 4


from PyQt5.QtCore import (
    QEvent,
    pyqtSignal,
)
from PyQt5.QtWidgets import (
    QPushButton,
    QHBoxLayout,
    QDockWidget,
    QWidget,
    QMessageBox,
)
from ..emulator import (
    EmulatorState
)






class CommandWidget(QDockWidget):

    setCommandButtonsForRunningSignal = pyqtSignal()
    setCommandButtonsForStepRunningSignal = pyqtSignal()
    setCommandButtonsForStopSignal = pyqtSignal()

    def __init__(self, parent: QWidget, *args, **kwargs):
        super(CommandWidget, self).__init__("Control Panel", parent)
        self.parent = self.parentWidget()
        self.root = self.parent
        self.log = self.root.log

# Path: cemu/emulator.py
# class EmulatorState(Enum):
#     NOT_RUNNING = 0
#     IDLE = 1
#     RUNNING = 2
#     STEP_RUNNING = 3
#     FINISHED = 4


# Path: cemu/ui/command.py
from PyQt5.QtCore import (
    QEvent,
    pyqtSignal,
)
from PyQt5.QtWidgets import (
    QPushButton,
    QHBoxLayout,
    QDockWidget,
    QWidget,
    QMessageBox,
)
from ..emulator import (
    EmulatorState
)







class CommandWidget(QDockWidget):

    setCommandButtonsForRunningSignal = pyqtSignal()
    setCommandButtonsForStepRunningSignal = pyqtSignal()
    setCommandButtonsForStopSignal = pyqtSignal()

    def __init__(self, parent: QWidget, *args, **kwargs):
        super(CommandWidget, self).__init__("Control Panel", parent)
        self.parent = self.parentWidget()
        self.root = self.parent
        self.log = self.root.log

        self.emulator = self.root.emulator