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

# Form implementation generated from reading ui file 'test.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# 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
from .TreeView import X3DTreeWidget

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1024, 800)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.groupBox_3 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.OpenButton = QtWidgets.QPushButton(self.groupBox_3)
        self.OpenButton.setEnabled(True)
        self.OpenButton.setCheckable(True)
        self.OpenButton.setObjectName("OpenButton")
        self.horizontalLayout.addWidget(self.OpenButton)
        self.VertexButton = QtWidgets.QPushButton(self.groupBox_3)
        self.VertexButton.setCheckable(True)
        self.VertexButton.setObjectName("VertexButton")
        self.horizontalLayout.addWidget(self.VertexButton)
        self.WireButton = QtWidgets.QPushButton(self.groupBox_3)
        self.WireButton.setCheckable(True)
        self.WireButton.setObjectName("WireButton")
        self.horizontalLayout.addWidget(self.WireButton)
        self.FaceButton = QtWidgets.QPushButton(self.groupBox_3)
        self.FaceButton.setCheckable(True)
        self.FaceButton.setChecked(True)
        self.FaceButton.setObjectName("FaceButton")
        self.horizontalLayout.addWidget(self.FaceButton)
        self.gridLayout_5.addWidget(self.groupBox_3, 0, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.gridLayout_6 = QtWidgets.QGridLayout()
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.gridLayout_7.addLayout(self.gridLayout_6, 0, 0, 1, 1)
        self.gridLayout_5.addWidget(self.groupBox_2, 1, 0, 1, 1)
        self.gridLayout_5.setRowStretch(0, 1)
        self.gridLayout_5.setRowStretch(1, 5)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_2)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.tab_2)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.X3DTreeWidget = X3DTreeWidget(self.groupBox)
        # self.X3DTreeWidget = QtWidgets.QTreeWidget(self.groupBox)
        self.X3DTreeWidget.setObjectName("X3DTreeWidget")
        self.X3DTreeWidget.setHeaderLabel("X3D Tree")
        self.gridLayout_4.addWidget(self.X3DTreeWidget, 0, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.gridLayout.addWidget(self.tabWidget, 0, 1, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1024, 24))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuView = QtWidgets.QMenu(self.menubar)
        self.menuView.setObjectName("menuView")
        self.menuExport = QtWidgets.QMenu(self.menubar)
        self.menuExport.setObjectName("menuExport")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionToX3D = QtWidgets.QAction(MainWindow)
        self.actionToX3D.setObjectName("actionToX3D")
        self.actionToWRL = QtWidgets.QAction(MainWindow)
        self.actionToWRL.setObjectName("actionToWRL")
        self.actionVertex = QtWidgets.QAction(MainWindow)
        self.actionVertex.setCheckable(True)
        self.actionVertex.setObjectName("actionVertex")
        self.actionWire = QtWidgets.QAction(MainWindow)
        self.actionWire.setCheckable(True)
        self.actionWire.setObjectName("actionWire")
        self.actionFace = QtWidgets.QAction(MainWindow)
        self.actionFace.setCheckable(True)
        self.actionFace.setChecked(True)
        self.actionFace.setObjectName("actionFace")
        self.actionFileOpen = QtWidgets.QAction(MainWindow)
        self.actionFileOpen.setObjectName("actionFileOpen")
        self.actionClose = QtWidgets.QAction(MainWindow)
        self.actionClose.setObjectName("actionClose")
        self.actionClear = QtWidgets.QAction(MainWindow)
        self.actionClear.setObjectName("actionClear")
        self.menuFile.addAction(self.actionFileOpen)
        self.menuFile.addAction(self.actionClear)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionClose)
        self.menuView.addAction(self.actionVertex)
        self.menuView.addAction(self.actionWire)
        self.menuView.addAction(self.actionFace)
        self.menuExport.addAction(self.actionToX3D)
        self.menuExport.addAction(self.actionToWRL)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuView.menuAction())
        self.menubar.addAction(self.menuExport.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

        self.X3DTreeWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.X3DTreeWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.groupBox_3.setTitle(_translate("MainWindow", "Button"))
        self.OpenButton.setText(_translate("MainWindow", "FileOpen"))
        self.VertexButton.setText(_translate("MainWindow", "Vertex"))
        self.WireButton.setText(_translate("MainWindow", "Wire"))
        self.FaceButton.setText(_translate("MainWindow", "Face"))
        self.groupBox_2.setTitle(_translate("MainWindow", "OpenGL"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "OpenGL View"))
        self.groupBox.setTitle(_translate("MainWindow", "TreeView"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tree View"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuView.setTitle(_translate("MainWindow", "View"))
        self.menuExport.setTitle(_translate("MainWindow", "Export"))
        self.actionToX3D.setText(_translate("MainWindow", "toX3D"))
        self.actionToWRL.setText(_translate("MainWindow", "toWRL"))
        self.actionVertex.setText(_translate("MainWindow", "Vertex"))
        self.actionWire.setText(_translate("MainWindow", "Wire"))
        self.actionFace.setText(_translate("MainWindow", "Face"))
        self.actionFileOpen.setText(_translate("MainWindow", "FileOpen"))
        self.actionClose.setText(_translate("MainWindow", "Close"))
        self.actionClear.setText(_translate("MainWindow", "Clear"))

    def mousePressEvent(self, event):
        self.x_last = event.x()
        self.y_last = event.y()

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_())
