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

# Form implementation generated from reading ui file 'frmmain.ui'
#
# Created: Mon May 04 10:14:07 2015
#      by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui
from trunk.myconfig import Version_ini

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_frmMain(object):
    def setupUi(self, frmMain):
        frmMain.setObjectName(_fromUtf8("frmMain"))#设置窗体名称
        frmMain.resize(792, 571)#重置窗体大小
        frmMain.setSizeGripEnabled(True)#设置右下角的改变窗体按钮是否可见
        self.verticalLayout = QtGui.QVBoxLayout(frmMain)#定义一个垂直布局控件对象
        self.verticalLayout.setSpacing(0)#空间？
        self.verticalLayout.setMargin(0)#？？？边界？？
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))#设置对象名称？》？？
        self.widget_title = QtGui.QWidget(frmMain)#设置一个子窗口部件，他的顶级窗口是frmMain
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)#获得窗口部件的默认布局行为，即是左右宽度可变，垂直宽度可变或者固定
        sizePolicy.setHorizontalStretch(0)#？？？？？
        sizePolicy.setVerticalStretch(0)#？？？
        sizePolicy.setHeightForWidth(self.widget_title.sizePolicy().hasHeightForWidth())
        self.widget_title.setSizePolicy(sizePolicy)#测试项目文本框
        self.widget_title.setMinimumSize(QtCore.QSize(100, 33))#测试项目文本框最小
        self.widget_title.setObjectName(_fromUtf8("widget_title"))#设置测试项目列表框的名称
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget_title)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.lab_Ico = QtGui.QLabel(self.widget_title)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lab_Ico.sizePolicy().hasHeightForWidth())
        self.lab_Ico.setSizePolicy(sizePolicy)
        self.lab_Ico.setMinimumSize(QtCore.QSize(30, 0))
        self.lab_Ico.setText(_fromUtf8(""))
        self.lab_Ico.setAlignment(QtCore.Qt.AlignCenter)
        self.lab_Ico.setObjectName(_fromUtf8("lab_Ico"))
        self.horizontalLayout_2.addWidget(self.lab_Ico)
        self.lab_Title = QtGui.QLabel(self.widget_title)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lab_Title.sizePolicy().hasHeightForWidth())
        self.lab_Title.setSizePolicy(sizePolicy)
        self.lab_Title.setStyleSheet(_fromUtf8("font: 10pt \"微软雅黑\";"))
        self.lab_Title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.lab_Title.setObjectName(_fromUtf8("lab_Title"))
        self.horizontalLayout_2.addWidget(self.lab_Title)
        self.widget_menu = QtGui.QWidget(self.widget_title)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget_menu.sizePolicy().hasHeightForWidth())
        self.widget_menu.setSizePolicy(sizePolicy)
        self.widget_menu.setObjectName(_fromUtf8("widget_menu"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget_menu)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.btnSkin = QtGui.QPushButton(self.widget_menu)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnSkin.sizePolicy().hasHeightForWidth())
        self.btnSkin.setSizePolicy(sizePolicy)
        self.btnSkin.setMinimumSize(QtCore.QSize(31, 0))
        self.btnSkin.setFocusPolicy(QtCore.Qt.NoFocus)
        self.btnSkin.setText(_fromUtf8(""))
        self.btnSkin.setFlat(True)
        self.btnSkin.setObjectName(_fromUtf8("btnSkin"))
        self.horizontalLayout.addWidget(self.btnSkin)
        self.btnMenu = QtGui.QPushButton(self.widget_menu)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnMenu.sizePolicy().hasHeightForWidth())
        self.btnMenu.setSizePolicy(sizePolicy)
        self.btnMenu.setMinimumSize(QtCore.QSize(31, 0))
        self.btnMenu.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.btnMenu.setFocusPolicy(QtCore.Qt.NoFocus)
        self.btnMenu.setText(_fromUtf8(""))
        self.btnMenu.setFlat(True)
        self.btnMenu.setObjectName(_fromUtf8("btnMenu"))
        self.horizontalLayout.addWidget(self.btnMenu)
        self.btnMenu_Min = QtGui.QPushButton(self.widget_menu)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnMenu_Min.sizePolicy().hasHeightForWidth())
        self.btnMenu_Min.setSizePolicy(sizePolicy)
        self.btnMenu_Min.setMinimumSize(QtCore.QSize(31, 0))
        self.btnMenu_Min.setFocusPolicy(QtCore.Qt.NoFocus)
        self.btnMenu_Min.setText(_fromUtf8(""))
        self.btnMenu_Min.setFlat(True)
        self.btnMenu_Min.setObjectName(_fromUtf8("btnMenu_Min"))
        self.horizontalLayout.addWidget(self.btnMenu_Min)
        self.btnMenu_Max = QtGui.QPushButton(self.widget_menu)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnMenu_Max.sizePolicy().hasHeightForWidth())
        self.btnMenu_Max.setSizePolicy(sizePolicy)
        self.btnMenu_Max.setMinimumSize(QtCore.QSize(31, 0))
        self.btnMenu_Max.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.btnMenu_Max.setFocusPolicy(QtCore.Qt.NoFocus)
        self.btnMenu_Max.setText(_fromUtf8(""))
        self.btnMenu_Max.setFlat(True)
        self.btnMenu_Max.setObjectName(_fromUtf8("btnMenu_Max"))
        self.horizontalLayout.addWidget(self.btnMenu_Max)
        self.btnMenu_Close = QtGui.QPushButton(self.widget_menu)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnMenu_Close.sizePolicy().hasHeightForWidth())
        self.btnMenu_Close.setSizePolicy(sizePolicy)
        self.btnMenu_Close.setMinimumSize(QtCore.QSize(40, 0))
        self.btnMenu_Close.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.btnMenu_Close.setFocusPolicy(QtCore.Qt.NoFocus)
        self.btnMenu_Close.setText(_fromUtf8(""))
        self.btnMenu_Close.setFlat(True)
        self.btnMenu_Close.setObjectName(_fromUtf8("btnMenu_Close"))
        self.horizontalLayout.addWidget(self.btnMenu_Close)
        self.horizontalLayout_2.addWidget(self.widget_menu)
        self.verticalLayout.addWidget(self.widget_title)
        self.widget_main = QtGui.QWidget(frmMain)
        self.widget_main.setStyleSheet(_fromUtf8("font: 10pt \"微软雅黑\";"))
        self.widget_main.setObjectName(_fromUtf8("widget_main"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget_main)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setMargin(10)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalWidget = QtGui.QWidget(self.widget_main)
        self.horizontalWidget.setObjectName(_fromUtf8("horizontalWidget"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.horizontalWidget)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.splitter = QtGui.QSplitter(self.horizontalWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.textEdit = QtGui.QTextEdit(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
        self.textEdit.setSizePolicy(sizePolicy)
        self.textEdit.setMinimumSize(QtCore.QSize(200, 300))
        self.textEdit.setStyleSheet(_fromUtf8("font: 10pt \"新宋体\";"))
        self.textEdit.setReadOnly(True)
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.verticalWidget = QtGui.QWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.verticalWidget.sizePolicy().hasHeightForWidth())
        self.verticalWidget.setSizePolicy(sizePolicy)
        self.verticalWidget.setMinimumSize(QtCore.QSize(420, 0))
        self.verticalWidget.setMaximumSize(QtCore.QSize(420, 16777215))
        self.verticalWidget.setObjectName(_fromUtf8("verticalWidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalWidget)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.splitter_2 = QtGui.QSplitter(self.verticalWidget)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.tableWidget = QtGui.QTableWidget(self.splitter_2)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.horizontalWidget_2 = QtGui.QWidget(self.splitter_2)
        self.horizontalWidget_2.setMinimumSize(QtCore.QSize(0, 180))
        self.horizontalWidget_2.setMaximumSize(QtCore.QSize(16777215, 180))
        self.horizontalWidget_2.setObjectName(_fromUtf8("horizontalWidget_2"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.horizontalWidget_2)
        self.horizontalLayout_7.setMargin(0)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.verticalWidget1 = QtGui.QWidget(self.horizontalWidget_2)
        self.verticalWidget1.setObjectName(_fromUtf8("verticalWidget1"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.verticalWidget1)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.textEdit_2 = QtGui.QTextEdit(self.verticalWidget1)
        self.textEdit_2.setReadOnly(True)
        self.textEdit_2.setObjectName(_fromUtf8("textEdit_2"))
        self.verticalLayout_4.addWidget(self.textEdit_2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.lineEdit = QtGui.QLineEdit(self.verticalWidget1)
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.gridLayout.addWidget(self.lineEdit, 0, 1, 1, 1)
        self.label = QtGui.QLabel(self.verticalWidget1)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout)
        self.horizontalLayout_7.addWidget(self.verticalWidget1)
        self.verticalWidget2 = QtGui.QWidget(self.horizontalWidget_2)
        self.verticalWidget2.setMinimumSize(QtCore.QSize(100, 0))
        self.verticalWidget2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.verticalWidget2.setObjectName(_fromUtf8("verticalWidget2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalWidget2)
        self.verticalLayout_5.setMargin(0)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.lcdNumber = QtGui.QLCDNumber(self.verticalWidget2)
        self.lcdNumber.setSegmentStyle(QtGui.QLCDNumber.Flat)
        self.lcdNumber.setObjectName(_fromUtf8("lcdNumber"))
        self.verticalLayout_5.addWidget(self.lcdNumber)
        self.pushButton_2 = QtGui.QPushButton(self.verticalWidget2)
        self.pushButton_2.setMinimumSize(QtCore.QSize(0, 60))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.verticalLayout_5.addWidget(self.pushButton_2)
        self.horizontalLayout_7.addWidget(self.verticalWidget2)
        self.verticalLayout_3.addWidget(self.splitter_2)
        self.horizontalLayout_3.addWidget(self.splitter)
        self.verticalLayout_2.addWidget(self.horizontalWidget)
        self.verticalLayout.addWidget(self.widget_main)

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

    def retranslateUi(self, frmMain):
        version = Version_ini()
        this_version = version.get_version()
        frmMain.setWindowTitle(_translate("frmMain", "frmMain", None))
        self.lab_Title.setText(_translate("frmMain", "博达通信--"+this_version, None))
        self.btnSkin.setToolTip(_translate("frmMain", "皮肤", None))
        self.btnMenu.setToolTip(_translate("frmMain", "菜单", None))
        self.btnMenu_Min.setToolTip(_translate("frmMain", "最小化", None))
        self.btnMenu_Max.setToolTip(_translate("frmMain", "最大化", None))
        self.btnMenu_Close.setToolTip(_translate("frmMain", "关闭", None))
        self.label.setText(_translate("frmMain", "MAC:", None))
        self.pushButton_2.setText(_translate("frmMain", "开始", None))

    # def set_begin_with(self, frmMain):
    #     self.label.setText(_translate("frmMain", "SN:", None))
import dev_rc
