# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'C:\Users\Reinh\OneDrive\Dokumente\python\MzChess\MzChess\buildFen.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(562, 414)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.placementBoard = PlacementBoard(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.placementBoard.sizePolicy().hasHeightForWidth())
        self.placementBoard.setSizePolicy(sizePolicy)
        self.placementBoard.setMinimumSize(QtCore.QSize(325, 355))
        self.placementBoard.setMaximumSize(QtCore.QSize(325, 355))
        self.placementBoard.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.placementBoard.setObjectName("placementBoard")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.placementBoard)
        self.gridLayout_2.setContentsMargins(5, 5, 5, 5)
        self.gridLayout_2.setSpacing(0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.horizontalLayout.addWidget(self.placementBoard)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.selectionBox = SelectionBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.selectionBox.sizePolicy().hasHeightForWidth())
        self.selectionBox.setSizePolicy(sizePolicy)
        self.selectionBox.setMinimumSize(QtCore.QSize(90, 325))
        self.selectionBox.setMaximumSize(QtCore.QSize(90, 325))
        self.selectionBox.setObjectName("selectionBox")
        self.verticalLayout_7.addWidget(self.selectionBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem)
        self.horizontalLayout.addLayout(self.verticalLayout_7)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setSpacing(1)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.nextMoveGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.nextMoveGroupBox.setObjectName("nextMoveGroupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.nextMoveGroupBox)
        self.verticalLayout_2.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_2.setSpacing(1)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.wRadioButton = QtWidgets.QRadioButton(self.nextMoveGroupBox)
        self.wRadioButton.setChecked(True)
        self.wRadioButton.setObjectName("wRadioButton")
        self.verticalLayout_2.addWidget(self.wRadioButton)
        self.bRadioButton = QtWidgets.QRadioButton(self.nextMoveGroupBox)
        self.bRadioButton.setAutoFillBackground(False)
        self.bRadioButton.setStyleSheet("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);")
        self.bRadioButton.setObjectName("bRadioButton")
        self.verticalLayout_2.addWidget(self.bRadioButton)
        self.verticalLayout_6.addWidget(self.nextMoveGroupBox)
        self.castlingGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.castlingGroupBox.sizePolicy().hasHeightForWidth())
        self.castlingGroupBox.setSizePolicy(sizePolicy)
        self.castlingGroupBox.setMinimumSize(QtCore.QSize(120, 0))
        self.castlingGroupBox.setMaximumSize(QtCore.QSize(120, 16777215))
        self.castlingGroupBox.setFlat(False)
        self.castlingGroupBox.setCheckable(False)
        self.castlingGroupBox.setObjectName("castlingGroupBox")
        self.castlingLayout = QtWidgets.QVBoxLayout(self.castlingGroupBox)
        self.castlingLayout.setContentsMargins(5, 5, 5, 5)
        self.castlingLayout.setSpacing(1)
        self.castlingLayout.setObjectName("castlingLayout")
        self.verticalLayout_6.addWidget(self.castlingGroupBox)
        self.enPassentGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.enPassentGroupBox.setObjectName("enPassentGroupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.enPassentGroupBox)
        self.verticalLayout_3.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_3.setSpacing(5)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.enPassantListWidget = QtWidgets.QListWidget(self.enPassentGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.enPassantListWidget.sizePolicy().hasHeightForWidth())
        self.enPassantListWidget.setSizePolicy(sizePolicy)
        self.enPassantListWidget.setMinimumSize(QtCore.QSize(0, 25))
        self.enPassantListWidget.setMaximumSize(QtCore.QSize(16777215, 25))
        self.enPassantListWidget.setObjectName("enPassantListWidget")
        self.verticalLayout_3.addWidget(self.enPassantListWidget)
        self.verticalLayout_6.addWidget(self.enPassentGroupBox)
        self.moveGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.moveGroupBox.sizePolicy().hasHeightForWidth())
        self.moveGroupBox.setSizePolicy(sizePolicy)
        self.moveGroupBox.setObjectName("moveGroupBox")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.moveGroupBox)
        self.verticalLayout_4.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_4.setSpacing(1)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.moveSpinBox = QtWidgets.QSpinBox(self.moveGroupBox)
        self.moveSpinBox.setMinimum(1)
        self.moveSpinBox.setMaximum(16777215)
        self.moveSpinBox.setProperty("value", 1)
        self.moveSpinBox.setObjectName("moveSpinBox")
        self.verticalLayout_4.addWidget(self.moveSpinBox)
        self.verticalLayout_6.addWidget(self.moveGroupBox)
        self.clockGroupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.clockGroupBox.setObjectName("clockGroupBox")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.clockGroupBox)
        self.verticalLayout_5.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_5.setSpacing(5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.clockSpinBox = QtWidgets.QSpinBox(self.clockGroupBox)
        self.clockSpinBox.setMaximum(16777215)
        self.clockSpinBox.setProperty("value", 0)
        self.clockSpinBox.setObjectName("clockSpinBox")
        self.verticalLayout_5.addWidget(self.clockSpinBox)
        self.verticalLayout_6.addWidget(self.clockGroupBox)
        self.horizontalLayout.addLayout(self.verticalLayout_6)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 562, 21))
        self.menubar.setObjectName("menubar")
        self.menuFEN = QtWidgets.QMenu(self.menubar)
        self.menuFEN.setObjectName("menuFEN")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        self.menuEdit = QtWidgets.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        MainWindow.setMenuBar(self.menubar)
        self.actionCopy = QtWidgets.QAction(MainWindow)
        self.actionCopy.setObjectName("actionCopy")
        self.actionPaste = QtWidgets.QAction(MainWindow)
        self.actionPaste.setObjectName("actionPaste")
        self.actionReset_Board = QtWidgets.QAction(MainWindow)
        self.actionReset_Board.setObjectName("actionReset_Board")
        self.actionBlack_King = QtWidgets.QAction(MainWindow)
        self.actionBlack_King.setCheckable(True)
        self.actionBlack_King.setObjectName("actionBlack_King")
        self.actionNone = QtWidgets.QAction(MainWindow)
        self.actionNone.setCheckable(True)
        self.actionNone.setObjectName("actionNone")
        self.actionWhite_King = QtWidgets.QAction(MainWindow)
        self.actionWhite_King.setCheckable(True)
        self.actionWhite_King.setObjectName("actionWhite_King")
        self.actionWhite_Queen = QtWidgets.QAction(MainWindow)
        self.actionWhite_Queen.setCheckable(True)
        self.actionWhite_Queen.setObjectName("actionWhite_Queen")
        self.actionBlack_Queen = QtWidgets.QAction(MainWindow)
        self.actionBlack_Queen.setCheckable(True)
        self.actionBlack_Queen.setObjectName("actionBlack_Queen")
        self.actionWhite_Rook = QtWidgets.QAction(MainWindow)
        self.actionWhite_Rook.setObjectName("actionWhite_Rook")
        self.actionBlack_Rook = QtWidgets.QAction(MainWindow)
        self.actionBlack_Rook.setObjectName("actionBlack_Rook")
        self.actionWhite_Bishop = QtWidgets.QAction(MainWindow)
        self.actionWhite_Bishop.setObjectName("actionWhite_Bishop")
        self.actionBlack_Bishop = QtWidgets.QAction(MainWindow)
        self.actionBlack_Bishop.setObjectName("actionBlack_Bishop")
        self.actionWhite_Knight = QtWidgets.QAction(MainWindow)
        self.actionWhite_Knight.setObjectName("actionWhite_Knight")
        self.actionBlack_Knight = QtWidgets.QAction(MainWindow)
        self.actionBlack_Knight.setObjectName("actionBlack_Knight")
        self.actionWhite_Pawn = QtWidgets.QAction(MainWindow)
        self.actionWhite_Pawn.setObjectName("actionWhite_Pawn")
        self.actionBlack_Pawn = QtWidgets.QAction(MainWindow)
        self.actionBlack_Pawn.setObjectName("actionBlack_Pawn")
        self.actionClear_Board = QtWidgets.QAction(MainWindow)
        self.actionClear_Board.setObjectName("actionClear_Board")
        self.actionHelp = QtWidgets.QAction(MainWindow)
        self.actionHelp.setObjectName("actionHelp")
        self.actionAbout = QtWidgets.QAction(MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionFlip_Board = QtWidgets.QAction(MainWindow)
        self.actionFlip_Board.setCheckable(True)
        self.actionFlip_Board.setObjectName("actionFlip_Board")
        self.menuFEN.addAction(self.actionCopy)
        self.menuFEN.addAction(self.actionPaste)
        self.menuHelp.addAction(self.actionHelp)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionAbout)
        self.menuEdit.addAction(self.actionReset_Board)
        self.menuEdit.addAction(self.actionClear_Board)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionFlip_Board)
        self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuFEN.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "FEN-Builder"))
        self.placementBoard.setTitle(_translate("MainWindow", "Board"))
        self.selectionBox.setTitle(_translate("MainWindow", "Pieces"))
        self.nextMoveGroupBox.setTitle(_translate("MainWindow", "Next to Move"))
        self.wRadioButton.setText(_translate("MainWindow", "white"))
        self.bRadioButton.setText(_translate("MainWindow", "black"))
        self.castlingGroupBox.setToolTip(_translate("MainWindow", "castling options"))
        self.castlingGroupBox.setTitle(_translate("MainWindow", "Castling"))
        self.enPassentGroupBox.setToolTip(_translate("MainWindow", "options to make an en passant capture"))
        self.enPassentGroupBox.setTitle(_translate("MainWindow", "En Passant"))
        self.moveGroupBox.setToolTip(_translate("MainWindow", "full moves from start of game"))
        self.moveGroupBox.setTitle(_translate("MainWindow", "Move"))
        self.clockGroupBox.setToolTip(_translate("MainWindow", "halfmoves since the last capture or pawn advance"))
        self.clockGroupBox.setTitle(_translate("MainWindow", "Clock"))
        self.menuFEN.setTitle(_translate("MainWindow", "FEN"))
        self.menuHelp.setTitle(_translate("MainWindow", "Help"))
        self.menuEdit.setTitle(_translate("MainWindow", "Board"))
        self.actionCopy.setText(_translate("MainWindow", "Copy"))
        self.actionCopy.setShortcut(_translate("MainWindow", "Ctrl+C"))
        self.actionPaste.setText(_translate("MainWindow", "Paste"))
        self.actionPaste.setShortcut(_translate("MainWindow", "Ctrl+V"))
        self.actionReset_Board.setText(_translate("MainWindow", "Reset"))
        self.actionBlack_King.setText(_translate("MainWindow", "Black King"))
        self.actionBlack_King.setShortcut(_translate("MainWindow", "K"))
        self.actionNone.setText(_translate("MainWindow", "None"))
        self.actionNone.setShortcut(_translate("MainWindow", "X"))
        self.actionWhite_King.setText(_translate("MainWindow", "White King"))
        self.actionWhite_King.setShortcut(_translate("MainWindow", "Shift+K"))
        self.actionWhite_Queen.setText(_translate("MainWindow", "White Queen"))
        self.actionWhite_Queen.setShortcut(_translate("MainWindow", "Shift+Q"))
        self.actionBlack_Queen.setText(_translate("MainWindow", "Black Queen"))
        self.actionBlack_Queen.setShortcut(_translate("MainWindow", "Q"))
        self.actionWhite_Rook.setText(_translate("MainWindow", "White Rook"))
        self.actionWhite_Rook.setShortcut(_translate("MainWindow", "Shift+R"))
        self.actionBlack_Rook.setText(_translate("MainWindow", "Black Rook"))
        self.actionBlack_Rook.setShortcut(_translate("MainWindow", "R"))
        self.actionWhite_Bishop.setText(_translate("MainWindow", "White Bishop"))
        self.actionWhite_Bishop.setShortcut(_translate("MainWindow", "Shift+B"))
        self.actionBlack_Bishop.setText(_translate("MainWindow", "Black Bishop"))
        self.actionBlack_Bishop.setShortcut(_translate("MainWindow", "B"))
        self.actionWhite_Knight.setText(_translate("MainWindow", "White Knight"))
        self.actionWhite_Knight.setShortcut(_translate("MainWindow", "Shift+N"))
        self.actionBlack_Knight.setText(_translate("MainWindow", "Black Knight"))
        self.actionBlack_Knight.setShortcut(_translate("MainWindow", "N"))
        self.actionWhite_Pawn.setText(_translate("MainWindow", "White Pawn"))
        self.actionWhite_Pawn.setShortcut(_translate("MainWindow", "Shift+P"))
        self.actionBlack_Pawn.setText(_translate("MainWindow", "Black Pawn"))
        self.actionBlack_Pawn.setShortcut(_translate("MainWindow", "P"))
        self.actionClear_Board.setText(_translate("MainWindow", "Clear"))
        self.actionHelp.setText(_translate("MainWindow", "Help ..."))
        self.actionAbout.setText(_translate("MainWindow", "About ..."))
        self.actionFlip_Board.setText(_translate("MainWindow", "Flipped"))
        self.actionFlip_Board.setShortcut(_translate("MainWindow", "Ctrl+F"))
from qbuildfen import PlacementBoard, SelectionBox


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())
