summaryrefslogtreecommitdiff
path: root/cad/src/commands/PartProperties/PartPropDialog.py
blob: 5da9443b72cb6046a5ee5d613355d324896cedd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# -*- coding: utf-8 -*-

# Copyright 2004-2007 Nanorex, Inc.  See LICENSE file for details. 
# Form implementation generated from reading ui file 'PartPropDialog.ui'
#
# Created: Wed Sep 20 08:20:23 2006
#      by: PyQt4 UI code generator 4.0.1
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_PartPropDialog(object):
    def setupUi(self, PartPropDialog):
        PartPropDialog.setObjectName("PartPropDialog")
        PartPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,396,402).size()).expandedTo(PartPropDialog.minimumSizeHint()))

        self.gridlayout = QtGui.QGridLayout(PartPropDialog)
        self.gridlayout.setMargin(11)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setMargin(4)
        self.hboxlayout.setSpacing(72)
        self.hboxlayout.setObjectName("hboxlayout")

        self.okPushButton = QtGui.QPushButton(PartPropDialog)
        self.okPushButton.setMinimumSize(QtCore.QSize(0,0))
        self.okPushButton.setAutoDefault(True)
        self.okPushButton.setDefault(True)
        self.okPushButton.setObjectName("okPushButton")
        self.hboxlayout.addWidget(self.okPushButton)

        self.cancelPushButton = QtGui.QPushButton(PartPropDialog)
        self.cancelPushButton.setMinimumSize(QtCore.QSize(0,0))
        self.cancelPushButton.setAutoDefault(True)
        self.cancelPushButton.setDefault(False)
        self.cancelPushButton.setObjectName("cancelPushButton")
        self.hboxlayout.addWidget(self.cancelPushButton)
        self.gridlayout.addLayout(self.hboxlayout,1,0,1,1)

        self.tabWidget3 = QtGui.QTabWidget(PartPropDialog)
        self.tabWidget3.setObjectName("tabWidget3")

        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")

        self.gridlayout1 = QtGui.QGridLayout(self.tab)
        self.gridlayout1.setMargin(0)
        self.gridlayout1.setSpacing(6)
        self.gridlayout1.setObjectName("gridlayout1")

        self.vboxlayout = QtGui.QVBoxLayout()
        self.vboxlayout.setMargin(0)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")

        self.nameLabel = QtGui.QLabel(self.tab)
        self.nameLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.nameLabel.setObjectName("nameLabel")
        self.hboxlayout1.addWidget(self.nameLabel)

        self.nameLineEdit = QtGui.QLineEdit(self.tab)
        self.nameLineEdit.setAlignment(QtCore.Qt.AlignLeading)
        self.nameLineEdit.setReadOnly(True)
        self.nameLineEdit.setObjectName("nameLineEdit")
        self.hboxlayout1.addWidget(self.nameLineEdit)
        self.vboxlayout.addLayout(self.hboxlayout1)

        self.mmpformatLabel = QtGui.QLabel(self.tab)
        self.mmpformatLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.mmpformatLabel.setObjectName("mmpformatLabel")
        self.vboxlayout.addWidget(self.mmpformatLabel)

        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setMargin(0)
        self.hboxlayout2.setSpacing(6)
        self.hboxlayout2.setObjectName("hboxlayout2")

        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setMargin(0)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.statsLabel = QtGui.QLabel(self.tab)
        self.statsLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.statsLabel.setObjectName("statsLabel")
        self.vboxlayout1.addWidget(self.statsLabel)

        spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout1.addItem(spacerItem)
        self.hboxlayout2.addLayout(self.vboxlayout1)

        self.statsView = QtGui.QListWidget(self.tab)
        self.statsView.setObjectName("statsView")
        self.hboxlayout2.addWidget(self.statsView)
        self.vboxlayout.addLayout(self.hboxlayout2)
        self.gridlayout1.addLayout(self.vboxlayout,0,0,1,1)
        self.tabWidget3.addTab(self.tab, "")
        self.gridlayout.addWidget(self.tabWidget3,0,0,1,1)

        self.retranslateUi(PartPropDialog)
        QtCore.QObject.connect(self.okPushButton,QtCore.SIGNAL("clicked()"),PartPropDialog.accept)
        QtCore.QObject.connect(self.cancelPushButton,QtCore.SIGNAL("clicked()"),PartPropDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(PartPropDialog)
        PartPropDialog.setTabOrder(self.nameLineEdit,self.statsView)
        PartPropDialog.setTabOrder(self.statsView,self.okPushButton)
        PartPropDialog.setTabOrder(self.okPushButton,self.cancelPushButton)
        PartPropDialog.setTabOrder(self.cancelPushButton,self.tabWidget3)

    def retranslateUi(self, PartPropDialog):
        PartPropDialog.setWindowTitle(QtGui.QApplication.translate("PartPropDialog", "Part Properties", None, QtGui.QApplication.UnicodeUTF8))
        self.okPushButton.setText(QtGui.QApplication.translate("PartPropDialog", "&OK", None, QtGui.QApplication.UnicodeUTF8))
        self.okPushButton.setShortcut(QtGui.QApplication.translate("PartPropDialog", "Alt+O", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelPushButton.setText(QtGui.QApplication.translate("PartPropDialog", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelPushButton.setShortcut(QtGui.QApplication.translate("PartPropDialog", "Alt+C", None, QtGui.QApplication.UnicodeUTF8))
        self.nameLabel.setText(QtGui.QApplication.translate("PartPropDialog", "Name:", None, QtGui.QApplication.UnicodeUTF8))
        self.mmpformatLabel.setText(QtGui.QApplication.translate("PartPropDialog", "MMP File Format:", None, QtGui.QApplication.UnicodeUTF8))
        self.statsLabel.setText(QtGui.QApplication.translate("PartPropDialog", "Statistics:", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget3.setTabText(self.tabWidget3.indexOf(self.tab), QtGui.QApplication.translate("PartPropDialog", "General", None, QtGui.QApplication.UnicodeUTF8))