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

# Form implementation generated from reading ui file '/Users/zcw/Documents/Sniffer/main.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_snifferUI(object):
    def setupUi(self, snifferUI):
        snifferUI.setObjectName("snifferUI")
        snifferUI.setEnabled(True)
        snifferUI.resize(1047, 813)
        snifferUI.setMaximumSize(QtCore.QSize(1047, 814))
        self.label = QtWidgets.QLabel(snifferUI)
        self.label.setGeometry(QtCore.QRect(30, 20, 60, 16))
        self.label.setObjectName("label")
        self.btn_begin = QtWidgets.QPushButton(snifferUI)
        self.btn_begin.setGeometry(QtCore.QRect(10, 60, 113, 32))
        self.btn_begin.setObjectName("btn_begin")
        self.btn_stop = QtWidgets.QPushButton(snifferUI)
        self.btn_stop.setGeometry(QtCore.QRect(140, 60, 113, 32))
        self.btn_stop.setObjectName("btn_stop")
        self.btn_filter = QtWidgets.QPushButton(snifferUI)
        self.btn_filter.setGeometry(QtCore.QRect(280, 60, 113, 32))
        self.btn_filter.setObjectName("btn_filter")
        self.btn_search = QtWidgets.QPushButton(snifferUI)
        self.btn_search.setGeometry(QtCore.QRect(410, 60, 113, 32))
        self.btn_search.setObjectName("btn_search")
        self.btn_viewlog = QtWidgets.QPushButton(snifferUI)
        self.btn_viewlog.setGeometry(QtCore.QRect(540, 60, 113, 32))
        self.btn_viewlog.setObjectName("btn_viewlog")
        self.btn_recover = QtWidgets.QPushButton(snifferUI)
        self.btn_recover.setGeometry(QtCore.QRect(660, 60, 113, 32))
        self.btn_recover.setObjectName("btn_recover")
        self.btn_save = QtWidgets.QPushButton(snifferUI)
        self.btn_save.setGeometry(QtCore.QRect(780, 60, 113, 32))
        self.btn_save.setObjectName("btn_save")
        self.btn_exit = QtWidgets.QPushButton(snifferUI)
        self.btn_exit.setGeometry(QtCore.QRect(540, 20, 113, 32))
        self.btn_exit.setObjectName("btn_exit")
        self.choose_eth = QtWidgets.QComboBox(snifferUI)
        self.choose_eth.setGeometry(QtCore.QRect(100, 20, 401, 21))
        self.choose_eth.setObjectName("choose_eth")
        self.package_info = QtWidgets.QTableWidget(snifferUI)
        self.package_info.setEnabled(True)
        self.package_info.setGeometry(QtCore.QRect(0, 100, 1051, 391))
        self.package_info.setFocusPolicy(QtCore.Qt.ClickFocus)
        self.package_info.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.package_info.setStatusTip("")
        self.package_info.setAutoFillBackground(False)
        self.package_info.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.package_info.setDragDropOverwriteMode(False)
        self.package_info.setAlternatingRowColors(True)
        self.package_info.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
        self.package_info.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.package_info.setShowGrid(False)
        self.package_info.setGridStyle(QtCore.Qt.DashLine)
        self.package_info.setWordWrap(False)
        self.package_info.setCornerButtonEnabled(False)
        self.package_info.setRowCount(0)
        self.package_info.setColumnCount(8)
        self.package_info.setObjectName("package_info")
        item = QtWidgets.QTableWidgetItem()
        item.setText("时间")
        item.setTextAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignVCenter)
        self.package_info.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignVCenter)
        self.package_info.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignVCenter)
        self.package_info.setHorizontalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignVCenter)
        self.package_info.setHorizontalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignVCenter)
        self.package_info.setHorizontalHeaderItem(4, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignVCenter)
        self.package_info.setHorizontalHeaderItem(5, item)
        self.package_info.horizontalHeader().setVisible(True)
        self.package_info.horizontalHeader().setDefaultSectionSize(100)
        self.package_info.horizontalHeader().setSortIndicatorShown(False)
        self.package_info.verticalHeader().setVisible(True)
        self.package_info.verticalHeader().setDefaultSectionSize(18)
        self.package_info.verticalHeader().setHighlightSections(False)
        self.package_info.verticalHeader().setSortIndicatorShown(False)
        self.textBrowser_2 = QtWidgets.QTextBrowser(snifferUI)
        self.textBrowser_2.setGeometry(QtCore.QRect(0, 700, 1041, 101))
        self.textBrowser_2.setObjectName("textBrowser_2")
        self.textEdit = QtWidgets.QTextEdit(snifferUI)
        self.textEdit.setGeometry(QtCore.QRect(10, 500, 601, 201))
        self.textEdit.setObjectName("textEdit")
        self.textEdit_2 = QtWidgets.QTextEdit(snifferUI)
        self.textEdit_2.setGeometry(QtCore.QRect(610, 500, 431, 201))
        font = QtGui.QFont()
        font.setFamily("Arial")
        self.textEdit_2.setFont(font)
        self.textEdit_2.setObjectName("textEdit_2")
        self.btn_clear_history = QtWidgets.QPushButton(snifferUI)
        self.btn_clear_history.setGeometry(QtCore.QRect(900, 60, 113, 32))
        self.btn_clear_history.setObjectName("btn_clear_history")
        self.actionMenubar = QtWidgets.QAction(snifferUI)
        self.actionMenubar.setObjectName("actionMenubar")

        self.retranslateUi(snifferUI)
        self.btn_exit.clicked.connect(snifferUI.close)
        QtCore.QMetaObject.connectSlotsByName(snifferUI)

    def retranslateUi(self, snifferUI):
        _translate = QtCore.QCoreApplication.translate
        snifferUI.setWindowTitle(_translate("snifferUI", "Sniffer"))
        self.label.setText(_translate("snifferUI", "选择网卡："))
        self.btn_begin.setText(_translate("snifferUI", "开始抓包"))
        self.btn_stop.setText(_translate("snifferUI", "停止抓包"))
        self.btn_filter.setText(_translate("snifferUI", "过滤包"))
        self.btn_search.setText(_translate("snifferUI", "搜索"))
        self.btn_viewlog.setText(_translate("snifferUI", "查看全部"))
        self.btn_recover.setText(_translate("snifferUI", "文件重组"))
        self.btn_save.setText(_translate("snifferUI", "保存"))
        self.btn_exit.setText(_translate("snifferUI", "退出"))
        self.package_info.setSortingEnabled(False)
        item = self.package_info.horizontalHeaderItem(1)
        item.setText(_translate("snifferUI", "源地址"))
        item = self.package_info.horizontalHeaderItem(2)
        item.setText(_translate("snifferUI", "目的地址"))
        item = self.package_info.horizontalHeaderItem(3)
        item.setText(_translate("snifferUI", "协议类型"))
        item = self.package_info.horizontalHeaderItem(4)
        item.setText(_translate("snifferUI", "长度"))
        item = self.package_info.horizontalHeaderItem(5)
        item.setText(_translate("snifferUI", "信息"))
        self.btn_clear_history.setText(_translate("snifferUI", "清屏"))
        self.actionMenubar.setText(_translate("snifferUI", "menubar"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    snifferUI = QtWidgets.QDialog()
    ui = Ui_snifferUI()
    ui.setupUi(snifferUI)
    snifferUI.show()
    sys.exit(app.exec_())

