프로젝트

일반

사용자정보

개정판 f37cc1db

IDf37cc1dbf5a4b53792f42bfc36052f971cd8906f
상위 4d05041e
하위 3206f66d

백흠경이(가) 약 5년 전에 추가함

issue #1062: 입력 데이타 유효성 검사 로직 업데이트

Change-Id: I58bf775cfd7fcc7f3926194d147763910d586e1d

차이점 보기:

HYTOS/HYTOS/GeometryData_MixedDialog.py
69 69

  
70 70
        # setup angle combobox
71 71
        model = QtGui.QStandardItemModel()
72
        items = [("Hosrizontal", '0'), ("Vertical Up", '90'), ("Vertical Down", '-90')]
72
        items = [("Horizontal", '0'), ("Vertical Up", '90'), ("Vertical Down", '-90')]
73 73
        for label, value in items:
74 74
            label_item = QtGui.QStandardItem(label)
75 75
            value_item = QtGui.QStandardItem(value)
76 76
            model.appendRow([label_item, value_item])
77
        model.setHorizontalHeaderLabels(['Label', 'Value'])
77 78

  
78
        view = QTreeView(self)
79
        view.header().hide()
80
        view.setRootIsDecorated(False)
79
        view = QTableView(self)
80
        view.verticalHeader().hide()
81 81

  
82 82
        self.ui.comboBoxAngle.setModel(model)
83 83
        self.ui.comboBoxAngle.setView(view)
84 84
        # up to here
85 85

  
86 86
        self.ui.comboBoxAngle.currentIndexChanged.connect(self.on_current_index_changed)
87
        self.on_current_index_changed(0)
87 88
        self.ui.pushButton_Angle_Help.clicked.connect(self.show_help_dialog)
88 89
        self.ui.pushButton_d1_d2_Help.clicked.connect(self.show_help_dialog)
89 90
        self.ui.pushButton_rpd_Help.clicked.connect(self.show_help_dialog)
......
216 217
        self.exec_()
217 218

  
218 219
        return self.isAccepted, self.ui.comboBox_Element.currentText(), self.ui.comboBox_Nominal_Pipe_Size.currentText(), \
219
               self.ui.comboBox_Schedule_No.currentText(), self.ui.lineEdit_Inside_Pipe_Size.text(), self.ui.lineEdit_Roughness.text(), \
220
               self.ui.lineEdit_Length.text(), self.ui.lineEdit_Angle.text(), self.ui.lineEdit_rpd.text(), self.ui.lineEdit_d1_d2.text(), self.ui.lineEdit_k.text()
220
               self.ui.comboBox_Schedule_No.currentText(), self.ui.lineEdit_Inside_Pipe_Size.text(), \
221
               self.ui.lineEdit_Roughness.text(), self.ui.lineEdit_Length.text(), self.ui.lineEdit_Angle.text(), \
222
               self.ui.lineEdit_rpd.text(), self.ui.lineEdit_d1_d2.text(), self.ui.lineEdit_k.text()
221 223

  
222 224
    def load_data(self, data):
223 225
        try:
HYTOS/HYTOS/GeometryData_Mixed_UI.py
24 24
        self.gridLayout.setObjectName("gridLayout")
25 25
        self.gridLayout_2 = QtWidgets.QGridLayout()
26 26
        self.gridLayout_2.setObjectName("gridLayout_2")
27
        self.label_3 = QtWidgets.QLabel(Dialog)
28
        self.label_3.setMinimumSize(QtCore.QSize(129, 0))
29
        self.label_3.setMaximumSize(QtCore.QSize(129, 16777215))
30
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
31
        self.label_3.setObjectName("label_3")
32
        self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
33
        self.label_2 = QtWidgets.QLabel(Dialog)
34
        self.label_2.setMinimumSize(QtCore.QSize(129, 0))
35
        self.label_2.setMaximumSize(QtCore.QSize(129, 16777215))
36
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
37
        self.label_2.setObjectName("label_2")
38
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
39
        self.label_Nominal_Pipe_Size_Unit = QtWidgets.QLabel(Dialog)
40
        self.label_Nominal_Pipe_Size_Unit.setMinimumSize(QtCore.QSize(60, 0))
41
        self.label_Nominal_Pipe_Size_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
42
        self.label_Nominal_Pipe_Size_Unit.setObjectName("label_Nominal_Pipe_Size_Unit")
43
        self.gridLayout_2.addWidget(self.label_Nominal_Pipe_Size_Unit, 1, 2, 1, 1)
44
        self.comboBox_Element = QtWidgets.QComboBox(Dialog)
45
        self.comboBox_Element.setEditable(False)
46
        self.comboBox_Element.setObjectName("comboBox_Element")
47
        self.gridLayout_2.addWidget(self.comboBox_Element, 0, 1, 1, 1)
48
        self.comboBox_Schedule_No = QtWidgets.QComboBox(Dialog)
49
        self.comboBox_Schedule_No.setMinimumSize(QtCore.QSize(0, 0))
50
        self.comboBox_Schedule_No.setMaximumSize(QtCore.QSize(16777215, 16777215))
51
        self.comboBox_Schedule_No.setObjectName("comboBox_Schedule_No")
52
        self.gridLayout_2.addWidget(self.comboBox_Schedule_No, 2, 1, 1, 1)
53
        self.label_8 = QtWidgets.QLabel(Dialog)
54
        self.label_8.setMinimumSize(QtCore.QSize(129, 0))
55
        self.label_8.setMaximumSize(QtCore.QSize(129, 16777215))
56
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
57
        self.label_8.setObjectName("label_8")
58
        self.gridLayout_2.addWidget(self.label_8, 7, 0, 1, 1)
59
        self.comboBox_Nominal_Pipe_Size = QtWidgets.QComboBox(Dialog)
60
        self.comboBox_Nominal_Pipe_Size.setMinimumSize(QtCore.QSize(0, 0))
61
        self.comboBox_Nominal_Pipe_Size.setMaximumSize(QtCore.QSize(16777215, 16777215))
62
        self.comboBox_Nominal_Pipe_Size.setObjectName("comboBox_Nominal_Pipe_Size")
63
        self.gridLayout_2.addWidget(self.comboBox_Nominal_Pipe_Size, 1, 1, 1, 1)
64
        self.pushButton_rpd_Help = QtWidgets.QPushButton(Dialog)
65
        self.pushButton_rpd_Help.setMinimumSize(QtCore.QSize(60, 24))
66
        self.pushButton_rpd_Help.setMaximumSize(QtCore.QSize(60, 24))
67
        self.pushButton_rpd_Help.setText("")
68
        icon1 = QtGui.QIcon()
69
        icon1.addPixmap(QtGui.QPixmap(":/images/Question.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
70
        self.pushButton_rpd_Help.setIcon(icon1)
71
        self.pushButton_rpd_Help.setObjectName("pushButton_rpd_Help")
72
        self.gridLayout_2.addWidget(self.pushButton_rpd_Help, 7, 2, 1, 1)
73
        self.lineEdit_rpd = QtWidgets.QLineEdit(Dialog)
74
        self.lineEdit_rpd.setMinimumSize(QtCore.QSize(0, 0))
75
        self.lineEdit_rpd.setMaximumSize(QtCore.QSize(16777215, 16777215))
76
        self.lineEdit_rpd.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
77
        self.lineEdit_rpd.setObjectName("lineEdit_rpd")
78
        self.gridLayout_2.addWidget(self.lineEdit_rpd, 7, 1, 1, 1)
79
        self.pushButton_Roughness = QtWidgets.QPushButton(Dialog)
80
        self.pushButton_Roughness.setMinimumSize(QtCore.QSize(75, 0))
81
        self.pushButton_Roughness.setMaximumSize(QtCore.QSize(16777215, 16777215))
82
        self.pushButton_Roughness.setObjectName("pushButton_Roughness")
83
        self.gridLayout_2.addWidget(self.pushButton_Roughness, 4, 0, 1, 1)
84 27
        self.label_6 = QtWidgets.QLabel(Dialog)
85 28
        self.label_6.setMinimumSize(QtCore.QSize(129, 0))
86 29
        self.label_6.setMaximumSize(QtCore.QSize(129, 16777215))
87 30
        self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
88 31
        self.label_6.setObjectName("label_6")
89 32
        self.gridLayout_2.addWidget(self.label_6, 5, 0, 1, 1)
33
        self.pushButton_d1_d2_Help = QtWidgets.QPushButton(Dialog)
34
        self.pushButton_d1_d2_Help.setMinimumSize(QtCore.QSize(60, 24))
35
        self.pushButton_d1_d2_Help.setMaximumSize(QtCore.QSize(60, 24))
36
        self.pushButton_d1_d2_Help.setText("")
37
        icon1 = QtGui.QIcon()
38
        icon1.addPixmap(QtGui.QPixmap(":/images/Question.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
39
        self.pushButton_d1_d2_Help.setIcon(icon1)
40
        self.pushButton_d1_d2_Help.setObjectName("pushButton_d1_d2_Help")
41
        self.gridLayout_2.addWidget(self.pushButton_d1_d2_Help, 8, 2, 1, 1)
42
        self.lineEdit_Length = QtWidgets.QLineEdit(Dialog)
43
        self.lineEdit_Length.setMinimumSize(QtCore.QSize(0, 0))
44
        self.lineEdit_Length.setMaximumSize(QtCore.QSize(16777215, 16777215))
45
        self.lineEdit_Length.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
46
        self.lineEdit_Length.setObjectName("lineEdit_Length")
47
        self.gridLayout_2.addWidget(self.lineEdit_Length, 5, 1, 1, 1)
48
        self.comboBox_Element = QtWidgets.QComboBox(Dialog)
49
        self.comboBox_Element.setEditable(False)
50
        self.comboBox_Element.setObjectName("comboBox_Element")
51
        self.gridLayout_2.addWidget(self.comboBox_Element, 0, 1, 1, 1)
90 52
        self.lineEdit_Roughness = QtWidgets.QLineEdit(Dialog)
91 53
        self.lineEdit_Roughness.setMinimumSize(QtCore.QSize(0, 0))
92 54
        self.lineEdit_Roughness.setMaximumSize(QtCore.QSize(16777215, 16777215))
......
94 56
        self.lineEdit_Roughness.setReadOnly(True)
95 57
        self.lineEdit_Roughness.setObjectName("lineEdit_Roughness")
96 58
        self.gridLayout_2.addWidget(self.lineEdit_Roughness, 4, 1, 1, 1)
97
        self.lineEdit_Length = QtWidgets.QLineEdit(Dialog)
98
        self.lineEdit_Length.setMinimumSize(QtCore.QSize(0, 0))
99
        self.lineEdit_Length.setMaximumSize(QtCore.QSize(16777215, 16777215))
100
        self.lineEdit_Length.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
101
        self.lineEdit_Length.setObjectName("lineEdit_Length")
102
        self.gridLayout_2.addWidget(self.lineEdit_Length, 5, 1, 1, 1)
103
        self.label_Roughness_Unit = QtWidgets.QLabel(Dialog)
104
        self.label_Roughness_Unit.setMinimumSize(QtCore.QSize(60, 0))
105
        self.label_Roughness_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
106
        self.label_Roughness_Unit.setObjectName("label_Roughness_Unit")
107
        self.gridLayout_2.addWidget(self.label_Roughness_Unit, 4, 2, 1, 1)
59
        self.label_Nominal_Pipe_Size_Unit = QtWidgets.QLabel(Dialog)
60
        self.label_Nominal_Pipe_Size_Unit.setMinimumSize(QtCore.QSize(60, 0))
61
        self.label_Nominal_Pipe_Size_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
62
        self.label_Nominal_Pipe_Size_Unit.setObjectName("label_Nominal_Pipe_Size_Unit")
63
        self.gridLayout_2.addWidget(self.label_Nominal_Pipe_Size_Unit, 1, 2, 1, 1)
108 64
        self.label_Lengh_Unit = QtWidgets.QLabel(Dialog)
109 65
        self.label_Lengh_Unit.setMinimumSize(QtCore.QSize(60, 0))
110 66
        self.label_Lengh_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
111 67
        self.label_Lengh_Unit.setObjectName("label_Lengh_Unit")
112 68
        self.gridLayout_2.addWidget(self.label_Lengh_Unit, 5, 2, 1, 1)
113
        self.comboBoxAngle = QtWidgets.QComboBox(Dialog)
114
        self.comboBoxAngle.setObjectName("comboBoxAngle")
115
        self.gridLayout_2.addWidget(self.comboBoxAngle, 6, 0, 1, 1)
116
        self.lineEdit_Angle = QtWidgets.QLineEdit(Dialog)
117
        self.lineEdit_Angle.setMinimumSize(QtCore.QSize(0, 0))
118
        self.lineEdit_Angle.setMaximumSize(QtCore.QSize(16777215, 16777215))
119
        self.lineEdit_Angle.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
120
        self.lineEdit_Angle.setObjectName("lineEdit_Angle")
121
        self.gridLayout_2.addWidget(self.lineEdit_Angle, 6, 1, 1, 1)
69
        self.pushButton_rpd_Help = QtWidgets.QPushButton(Dialog)
70
        self.pushButton_rpd_Help.setMinimumSize(QtCore.QSize(60, 24))
71
        self.pushButton_rpd_Help.setMaximumSize(QtCore.QSize(60, 24))
72
        self.pushButton_rpd_Help.setText("")
73
        self.pushButton_rpd_Help.setIcon(icon1)
74
        self.pushButton_rpd_Help.setObjectName("pushButton_rpd_Help")
75
        self.gridLayout_2.addWidget(self.pushButton_rpd_Help, 7, 2, 1, 1)
76
        self.lineEdit_k = QtWidgets.QLineEdit(Dialog)
77
        self.lineEdit_k.setMinimumSize(QtCore.QSize(0, 0))
78
        self.lineEdit_k.setMaximumSize(QtCore.QSize(16777215, 16777215))
79
        self.lineEdit_k.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
80
        self.lineEdit_k.setObjectName("lineEdit_k")
81
        self.gridLayout_2.addWidget(self.lineEdit_k, 9, 1, 1, 1)
82
        self.label_10 = QtWidgets.QLabel(Dialog)
83
        self.label_10.setMinimumSize(QtCore.QSize(129, 0))
84
        self.label_10.setMaximumSize(QtCore.QSize(129, 16777215))
85
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
86
        self.label_10.setObjectName("label_10")
87
        self.gridLayout_2.addWidget(self.label_10, 9, 0, 1, 1)
88
        self.label_2 = QtWidgets.QLabel(Dialog)
89
        self.label_2.setMinimumSize(QtCore.QSize(129, 0))
90
        self.label_2.setMaximumSize(QtCore.QSize(129, 16777215))
91
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
92
        self.label_2.setObjectName("label_2")
93
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
94
        self.pushButton_Roughness = QtWidgets.QPushButton(Dialog)
95
        self.pushButton_Roughness.setMinimumSize(QtCore.QSize(75, 0))
96
        self.pushButton_Roughness.setMaximumSize(QtCore.QSize(16777215, 16777215))
97
        self.pushButton_Roughness.setObjectName("pushButton_Roughness")
98
        self.gridLayout_2.addWidget(self.pushButton_Roughness, 4, 0, 1, 1)
122 99
        self.pushButton_Angle_Help = QtWidgets.QPushButton(Dialog)
123 100
        self.pushButton_Angle_Help.setMinimumSize(QtCore.QSize(60, 24))
124 101
        self.pushButton_Angle_Help.setMaximumSize(QtCore.QSize(60, 24))
......
126 103
        self.pushButton_Angle_Help.setIcon(icon1)
127 104
        self.pushButton_Angle_Help.setObjectName("pushButton_Angle_Help")
128 105
        self.gridLayout_2.addWidget(self.pushButton_Angle_Help, 6, 2, 1, 1)
129
        self.pushButton_d1_d2_Help = QtWidgets.QPushButton(Dialog)
130
        self.pushButton_d1_d2_Help.setMinimumSize(QtCore.QSize(60, 24))
131
        self.pushButton_d1_d2_Help.setMaximumSize(QtCore.QSize(60, 24))
132
        self.pushButton_d1_d2_Help.setText("")
133
        self.pushButton_d1_d2_Help.setIcon(icon1)
134
        self.pushButton_d1_d2_Help.setObjectName("pushButton_d1_d2_Help")
135
        self.gridLayout_2.addWidget(self.pushButton_d1_d2_Help, 8, 2, 1, 1)
136
        self.label_9 = QtWidgets.QLabel(Dialog)
137
        self.label_9.setMinimumSize(QtCore.QSize(129, 0))
138
        self.label_9.setMaximumSize(QtCore.QSize(129, 16777215))
139
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
140
        self.label_9.setObjectName("label_9")
141
        self.gridLayout_2.addWidget(self.label_9, 8, 0, 1, 1)
142
        self.lineEdit_d1_d2 = QtWidgets.QLineEdit(Dialog)
143
        self.lineEdit_d1_d2.setMinimumSize(QtCore.QSize(0, 0))
144
        self.lineEdit_d1_d2.setMaximumSize(QtCore.QSize(16777215, 16777215))
145
        self.lineEdit_d1_d2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
146
        self.lineEdit_d1_d2.setObjectName("lineEdit_d1_d2")
147
        self.gridLayout_2.addWidget(self.lineEdit_d1_d2, 8, 1, 1, 1)
148
        self.label_Inside_Pipe_Size_Unit = QtWidgets.QLabel(Dialog)
149
        self.label_Inside_Pipe_Size_Unit.setMinimumSize(QtCore.QSize(60, 0))
150
        self.label_Inside_Pipe_Size_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
151
        self.label_Inside_Pipe_Size_Unit.setObjectName("label_Inside_Pipe_Size_Unit")
152
        self.gridLayout_2.addWidget(self.label_Inside_Pipe_Size_Unit, 3, 2, 1, 1)
153 106
        self.label_4 = QtWidgets.QLabel(Dialog)
154 107
        self.label_4.setMinimumSize(QtCore.QSize(129, 0))
155 108
        self.label_4.setMaximumSize(QtCore.QSize(129, 16777215))
156 109
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
157 110
        self.label_4.setObjectName("label_4")
158 111
        self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1)
159
        self.label = QtWidgets.QLabel(Dialog)
160
        self.label.setMinimumSize(QtCore.QSize(129, 0))
161
        self.label.setMaximumSize(QtCore.QSize(129, 16777215))
162
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
163
        self.label.setObjectName("label")
164
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
112
        self.label_Roughness_Unit = QtWidgets.QLabel(Dialog)
113
        self.label_Roughness_Unit.setMinimumSize(QtCore.QSize(60, 0))
114
        self.label_Roughness_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
115
        self.label_Roughness_Unit.setObjectName("label_Roughness_Unit")
116
        self.gridLayout_2.addWidget(self.label_Roughness_Unit, 4, 2, 1, 1)
165 117
        self.lineEdit_Inside_Pipe_Size = QtWidgets.QLineEdit(Dialog)
166 118
        self.lineEdit_Inside_Pipe_Size.setMinimumSize(QtCore.QSize(0, 0))
167 119
        self.lineEdit_Inside_Pipe_Size.setMaximumSize(QtCore.QSize(16777215, 16777215))
......
169 121
        self.lineEdit_Inside_Pipe_Size.setReadOnly(True)
170 122
        self.lineEdit_Inside_Pipe_Size.setObjectName("lineEdit_Inside_Pipe_Size")
171 123
        self.gridLayout_2.addWidget(self.lineEdit_Inside_Pipe_Size, 3, 1, 1, 1)
172
        self.label_10 = QtWidgets.QLabel(Dialog)
173
        self.label_10.setMinimumSize(QtCore.QSize(129, 0))
174
        self.label_10.setMaximumSize(QtCore.QSize(129, 16777215))
175
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
176
        self.label_10.setObjectName("label_10")
177
        self.gridLayout_2.addWidget(self.label_10, 9, 0, 1, 1)
178
        self.lineEdit_k = QtWidgets.QLineEdit(Dialog)
179
        self.lineEdit_k.setMinimumSize(QtCore.QSize(0, 0))
180
        self.lineEdit_k.setMaximumSize(QtCore.QSize(16777215, 16777215))
181
        self.lineEdit_k.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
182
        self.lineEdit_k.setObjectName("lineEdit_k")
183
        self.gridLayout_2.addWidget(self.lineEdit_k, 9, 1, 1, 1)
184 124
        self.pushButton_K_Help = QtWidgets.QPushButton(Dialog)
185 125
        self.pushButton_K_Help.setMinimumSize(QtCore.QSize(60, 24))
186 126
        self.pushButton_K_Help.setMaximumSize(QtCore.QSize(60, 24))
......
188 128
        self.pushButton_K_Help.setIcon(icon1)
189 129
        self.pushButton_K_Help.setObjectName("pushButton_K_Help")
190 130
        self.gridLayout_2.addWidget(self.pushButton_K_Help, 9, 2, 1, 1)
131
        self.lineEdit_rpd = QtWidgets.QLineEdit(Dialog)
132
        self.lineEdit_rpd.setMinimumSize(QtCore.QSize(0, 0))
133
        self.lineEdit_rpd.setMaximumSize(QtCore.QSize(16777215, 16777215))
134
        self.lineEdit_rpd.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
135
        self.lineEdit_rpd.setObjectName("lineEdit_rpd")
136
        self.gridLayout_2.addWidget(self.lineEdit_rpd, 7, 1, 1, 1)
137
        self.label = QtWidgets.QLabel(Dialog)
138
        self.label.setMinimumSize(QtCore.QSize(129, 0))
139
        self.label.setMaximumSize(QtCore.QSize(129, 16777215))
140
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
141
        self.label.setObjectName("label")
142
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
143
        self.comboBox_Schedule_No = QtWidgets.QComboBox(Dialog)
144
        self.comboBox_Schedule_No.setMinimumSize(QtCore.QSize(0, 0))
145
        self.comboBox_Schedule_No.setMaximumSize(QtCore.QSize(16777215, 16777215))
146
        self.comboBox_Schedule_No.setObjectName("comboBox_Schedule_No")
147
        self.gridLayout_2.addWidget(self.comboBox_Schedule_No, 2, 1, 1, 1)
148
        self.label_9 = QtWidgets.QLabel(Dialog)
149
        self.label_9.setMinimumSize(QtCore.QSize(129, 0))
150
        self.label_9.setMaximumSize(QtCore.QSize(129, 16777215))
151
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
152
        self.label_9.setObjectName("label_9")
153
        self.gridLayout_2.addWidget(self.label_9, 8, 0, 1, 1)
154
        self.label_Inside_Pipe_Size_Unit = QtWidgets.QLabel(Dialog)
155
        self.label_Inside_Pipe_Size_Unit.setMinimumSize(QtCore.QSize(60, 0))
156
        self.label_Inside_Pipe_Size_Unit.setMaximumSize(QtCore.QSize(60, 16777215))
157
        self.label_Inside_Pipe_Size_Unit.setObjectName("label_Inside_Pipe_Size_Unit")
158
        self.gridLayout_2.addWidget(self.label_Inside_Pipe_Size_Unit, 3, 2, 1, 1)
159
        self.label_8 = QtWidgets.QLabel(Dialog)
160
        self.label_8.setMinimumSize(QtCore.QSize(129, 0))
161
        self.label_8.setMaximumSize(QtCore.QSize(129, 16777215))
162
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
163
        self.label_8.setObjectName("label_8")
164
        self.gridLayout_2.addWidget(self.label_8, 7, 0, 1, 1)
165
        self.label_3 = QtWidgets.QLabel(Dialog)
166
        self.label_3.setMinimumSize(QtCore.QSize(129, 0))
167
        self.label_3.setMaximumSize(QtCore.QSize(129, 16777215))
168
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
169
        self.label_3.setObjectName("label_3")
170
        self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
171
        self.lineEdit_d1_d2 = QtWidgets.QLineEdit(Dialog)
172
        self.lineEdit_d1_d2.setMinimumSize(QtCore.QSize(0, 0))
173
        self.lineEdit_d1_d2.setMaximumSize(QtCore.QSize(16777215, 16777215))
174
        self.lineEdit_d1_d2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
175
        self.lineEdit_d1_d2.setObjectName("lineEdit_d1_d2")
176
        self.gridLayout_2.addWidget(self.lineEdit_d1_d2, 8, 1, 1, 1)
177
        self.comboBox_Nominal_Pipe_Size = QtWidgets.QComboBox(Dialog)
178
        self.comboBox_Nominal_Pipe_Size.setMinimumSize(QtCore.QSize(0, 0))
179
        self.comboBox_Nominal_Pipe_Size.setMaximumSize(QtCore.QSize(16777215, 16777215))
180
        self.comboBox_Nominal_Pipe_Size.setObjectName("comboBox_Nominal_Pipe_Size")
181
        self.gridLayout_2.addWidget(self.comboBox_Nominal_Pipe_Size, 1, 1, 1, 1)
182
        self.comboBoxAngle = QtWidgets.QComboBox(Dialog)
183
        self.comboBoxAngle.setObjectName("comboBoxAngle")
184
        self.gridLayout_2.addWidget(self.comboBoxAngle, 6, 0, 1, 1)
185
        self.lineEdit_Angle = QtWidgets.QLineEdit(Dialog)
186
        self.lineEdit_Angle.setMinimumSize(QtCore.QSize(0, 0))
187
        self.lineEdit_Angle.setMaximumSize(QtCore.QSize(16777215, 16777215))
188
        self.lineEdit_Angle.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
189
        self.lineEdit_Angle.setObjectName("lineEdit_Angle")
190
        self.gridLayout_2.addWidget(self.lineEdit_Angle, 6, 1, 1, 1)
191 191
        self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1)
192 192
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
193 193
        self.buttonBox.setLayoutDirection(QtCore.Qt.LeftToRight)
......
219 219
    def retranslateUi(self, Dialog):
220 220
        _translate = QtCore.QCoreApplication.translate
221 221
        Dialog.setWindowTitle(_translate("Dialog", "Geometry Data"))
222
        self.label_3.setText(_translate("Dialog", "Schedule No. :"))
223
        self.label_2.setText(_translate("Dialog", "Nominal Diameter :"))
222
        self.label_6.setText(_translate("Dialog", "Length :"))
224 223
        self.label_Nominal_Pipe_Size_Unit.setText(_translate("Dialog", "-"))
225
        self.label_8.setText(_translate("Dialog", "r/D :"))
224
        self.label_Lengh_Unit.setText(_translate("Dialog", "-"))
225
        self.label_10.setText(_translate("Dialog", "K :"))
226
        self.label_2.setText(_translate("Dialog", "Nominal Diameter :"))
226 227
        self.pushButton_Roughness.setText(_translate("Dialog", "Roughness"))
227
        self.label_6.setText(_translate("Dialog", "Length :"))
228
        self.label_4.setText(_translate("Dialog", "Inside Diameter :"))
228 229
        self.label_Roughness_Unit.setText(_translate("Dialog", "-"))
229
        self.label_Lengh_Unit.setText(_translate("Dialog", "-"))
230
        self.label.setText(_translate("Dialog", "Element :"))
230 231
        self.label_9.setText(_translate("Dialog", "D1/D2 :"))
231 232
        self.label_Inside_Pipe_Size_Unit.setText(_translate("Dialog", "-"))
232
        self.label_4.setText(_translate("Dialog", "Inside Diameter :"))
233
        self.label.setText(_translate("Dialog", "Element :"))
234
        self.label_10.setText(_translate("Dialog", "K :"))
233
        self.label_8.setText(_translate("Dialog", "r/D :"))
234
        self.label_3.setText(_translate("Dialog", "Schedule No. :"))
235 235
import Resource_rc
HYTOS/HYTOS/MainWindow_UI.py
141 141
        self.dockWidgetContents_4.setObjectName("dockWidgetContents_4")
142 142
        self.gridLayout_7 = QtWidgets.QGridLayout(self.dockWidgetContents_4)
143 143
        self.gridLayout_7.setObjectName("gridLayout_7")
144
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
145
        self.verticalLayout_3.setObjectName("verticalLayout_3")
146
        self.tableWidgetDeviation = QtWidgets.QTableWidget(self.dockWidgetContents_4)
147
        self.tableWidgetDeviation.setMinimumSize(QtCore.QSize(0, 150))
144
        self.splitter = QtWidgets.QSplitter(self.dockWidgetContents_4)
145
        self.splitter.setOrientation(QtCore.Qt.Vertical)
146
        self.splitter.setObjectName("splitter")
147
        self.tableWidgetDeviation = QtWidgets.QTableWidget(self.splitter)
148
        self.tableWidgetDeviation.setMinimumSize(QtCore.QSize(0, 0))
148 149
        self.tableWidgetDeviation.setMaximumSize(QtCore.QSize(16777215, 150))
149 150
        self.tableWidgetDeviation.setObjectName("tableWidgetDeviation")
150 151
        self.tableWidgetDeviation.setColumnCount(0)
151 152
        self.tableWidgetDeviation.setRowCount(0)
152
        self.verticalLayout_3.addWidget(self.tableWidgetDeviation)
153
        self.tableWidgetOutput = QtWidgets.QTableWidget(self.dockWidgetContents_4)
153
        self.tableWidgetOutput = QtWidgets.QTableWidget(self.splitter)
154 154
        self.tableWidgetOutput.setObjectName("tableWidgetOutput")
155 155
        self.tableWidgetOutput.setColumnCount(0)
156 156
        self.tableWidgetOutput.setRowCount(0)
157
        self.verticalLayout_3.addWidget(self.tableWidgetOutput)
158
        self.gridLayout_7.addLayout(self.verticalLayout_3, 0, 0, 1, 1)
157
        self.gridLayout_7.addWidget(self.splitter, 0, 0, 1, 1)
159 158
        self.dockWidget.setWidget(self.dockWidgetContents_4)
160 159
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget)
161 160
        self.menubar = QtWidgets.QMenuBar(MainWindow)
HYTOS/HYTOS/Shapes/EngineeringConnectorItem.py
199 199
        parent = self.parentItem()
200 200
        if type(parent) is SymbolSvgItem:
201 201
            if parent.category == 'Equipment - [ Pressurized ]':
202
                if self.connectedItem and (self.data.pressure is None or self.data.elevation is None):
202
                if self.connectedItem and \
203
                        (self.data is None or (self.data.pressure is None or self.data.elevation is None)):
203 204
                    res.extend([self, 'pressure or elevation is invalid'])
204 205
            elif parent.category == 'Equipment - [ Pressure Drop ]' or parent.type == 'Flowmeter':
205
                if self.connectedItem and (self.data.pressure_drop is None or self.data.elevation is None):
206
                if self.connectedItem and \
207
                        (self.data is None or (self.data.pressure_drop is None or self.data.elevation is None)):
206 208
                    res.extend([self, 'pressure drop or elevation is invalid'])
207 209
            elif parent.category == 'Equipment - [ Rotating ]':
208 210
                if self.connectedItem and parent.name in ['L_KOMP', 'R_KOMP', 'R_Pump', 'L_Pump', 'V_Pump']:
209
                    if self.data.elevation is None:
211
                    if self.data is None or self.data.elevation is None:
210 212
                        res.extend([self, 'need to check elevation'])
211
                elif self.connectedItem and (self.data.pressure_drop is None or self.data.elevation is None):
213
                elif self.connectedItem and \
214
                        (self.data is None or (self.data.pressure_drop is None or self.data.elevation is None)):
212 215
                    res.extend([self, 'need to check pressure drop and elevation'])
213 216
            elif self.connectedItem and parent.name in ['CV_H', 'CV_V']:
214
                if self.data.elevation is None:
217
                if self.data is None or self.data.elevation is None:
215 218
                    res.extend([self, 'need to check elevation'])
216 219
            elif parent.name == 'Line Splitter':    # set default value for line splitter
217 220
                if self.connectedItem:
......
222 225
        elif type(parent) is QEngineeringStreamlineItem:
223 226
            pass
224 227

  
228
        # update connector's color
229
        if self.connectedItem and type(self.parentItem()) is SymbolSvgItem:
230
            self.setBrush(Qt.red) if res else self.setBrush(Qt.yellow)
231
        else:
232
            self.setBrush(Qt.blue)
233
        # up to here
234

  
225 235
        return res
226 236

  
227 237
    '''
......
244 254

  
245 255
    def buildItem(self):
246 256
        """build connector item"""
247
        color = Qt.blue
248
        self.setBrush(color)
249
        if self.parent is not None:
250
            self.setZValue(self.parent.zValue() + 1)
257
        from EngineeringStreamlineItem import QEngineeringStreamlineItem
258

  
259
        self.setBrush(Qt.blue)
260
        if self.parentItem() is not None:
261
            self.setZValue(self.parentItem().zValue() + 1)
251 262

  
252 263
    '''
253 264
        @brief      return center of connector
......
278 289

  
279 290
    def connect(self, item, at=QEngineeringAbstractItem.CONNECTED_AT_PT):
280 291
        """connect to given item where given position"""
292
        from SymbolSvgItem import SymbolSvgItem
281 293

  
282 294
        if item:
283 295
            self.connectedItem = item
......
285 297
        else:
286 298
            self.connectedItem = None
287 299

  
300
        self.validate()
288 301
        self.update()
289 302

  
290 303
    def hoverEnterEvent(self, event):
......
320 333
            c = QColor()
321 334
            c.setNamedColor(QEngineeringConnectorItem.HIGHLIGHT)
322 335
            self.setPen(Qt.red)
323
            self.setBrush(c)
336
            #self.setBrush(c)
324 337
            if hasattr(self, '_label'):
325 338
                font = self._label.font()
326 339
                font.setBold(True)
......
330 343
            self.setRect(self._loc[0] - round(self.SMALL_SIZE * 0.5), self._loc[1] - round(self.SMALL_SIZE * 0.5),
331 344
                         self.SMALL_SIZE, self.SMALL_SIZE)
332 345
            self.setPen(Qt.black)
333
            self.setBrush(Qt.yellow) if self.connectedItem else self.setBrush(Qt.blue)
346
            #self.setBrush(Qt.yellow) if self.connectedItem else self.setBrush(Qt.blue)
334 347
            if hasattr(self, '_label'):
335 348
                font = self._label.font()
336 349
                font.setBold(False)
......
481 494

  
482 495
        QGraphicsEllipseItem.keyPressEvent(self, event)
483 496

  
484
    '''
485
        @brief  override paint(draw connection points)
486
        @author humkyung
487
        @date   2018.04.21
488
    '''
489

  
490 497
    def paint(self, painter, options=None, widget=None):
498
        """override paint"""
491 499
        from SymbolSvgItem import SymbolSvgItem
492 500

  
493
        if self.connectedItem:
494
            self.setBrush(Qt.red) if self.validate() else self.setBrush(Qt.yellow)
495
        else:
496
            self.setBrush(Qt.blue)
497

  
498 501
        QGraphicsEllipseItem.paint(self, painter, options, widget)
499 502
        if type(self.parentItem()) is SymbolSvgItem:
500 503
            painter.setFont(self._font)
HYTOS/HYTOS/Shapes/EngineeringStreamlineItem.py
182 182
            connector.setAcceptTouchEvents(True)
183 183
            connector.transfer.onPosChanged.connect(self.on_connector_pos_changed)
184 184

  
185
            connector.setZValue(self.zValue() + 1)
185
            #connector.setZValue(self.zValue() + 1)
186 186
            self.connectors.append(connector)
187 187
            if len(connected) > index:
188 188
                connected_item_uid = connected[index]
......
999 999
            connectorItems = [componentInfos[0]['ConnectedItem_UID'], componentInfos[-1]['ConnectedItem_UID']]
1000 1000

  
1001 1001
            item.setVisible(False)
1002
            item.build_connectors(connectorItems, pointsUids)
1003 1002
            item.build_path()
1003
            item.build_connectors(connectorItems, pointsUids)
1004 1004
            item.set_fittings()
1005 1005
            item.set_mixed_geometry()
1006 1006
            item.set_pressure_variation()
HYTOS/HYTOS/Shapes/SymbolSvgItem.py
971 971
        dialog = QAirFinCooler()
972 972
        if dialog.show_dialog(self):
973 973
            self.build_label()
974
            self.update()
974
            self.validate()
975 975

  
976 976
    def show_Filter(self):
977 977
        from Filter import QFilter
......
979 979
        dialog = QFilter()
980 980
        if dialog.show_dialog(self):
981 981
            self.build_label()
982
            self.update()
982
            self.validate()
983 983

  
984 984
    def show_Coil(self):
985 985
        from Coil import QCoil
......
987 987
        dialog = QCoil()
988 988
        if dialog.show_dialog(self):
989 989
            self.build_label()
990
            self.update()
990
            self.validate()
991 991

  
992 992
    def show_DP_Equipment(self):
993 993
        from DP_Equipment import QDP_Equipment
......
995 995
        dialog = QDP_Equipment()
996 996
        if dialog.show_dialog(self):
997 997
            self.build_label()
998
            self.update()
998
            self.validate()
999 999

  
1000 1000
    def show_Reactor(self):
1001 1001
        from Reactor import QReactor
......
1003 1003
        dialog = QReactor()
1004 1004
        if dialog.show_dialog(self):
1005 1005
            self.build_label()
1006
            self.update()
1006
            self.validate()
1007 1007

  
1008 1008
    def show_Strainer_T(self):
1009 1009
        from Strainer_T import QStrainer_T
......
1011 1011
        dialog = QStrainer_T()
1012 1012
        if dialog.show_dialog(self):
1013 1013
            self.build_label()
1014
            self.update()
1014
            self.validate()
1015 1015

  
1016 1016
    def show_Strainer_Y(self):
1017 1017
        from Strainer_Y import QStrainer_Y
......
1019 1019
        dialog = QStrainer_Y()
1020 1020
        if dialog.show_dialog(self):
1021 1021
            self.build_label()
1022
            self.update()
1022
            self.validate()
1023 1023

  
1024 1024
    def show_BatteryLimit(self):
1025 1025
        from BatteryLimit import QBatteryLimit
......
1027 1027
        dialog = QBatteryLimit()
1028 1028
        if dialog.show_dialog(self):
1029 1029
            self.build_label()
1030
            self.update()
1030
            self.validate()
1031 1031

  
1032 1032
    def show_Tray(self):
1033 1033
        from Tray import QTray
......
1035 1035
        dialog = QTray()
1036 1036
        if dialog.show_dialog(self):
1037 1037
            self.build_label()
1038
            self.update()
1038
            self.validate()
1039 1039

  
1040 1040
    def show_SinglePacked(self):
1041 1041
        from SinglePacked import QSinglePacked
......
1043 1043
        dialog = QSinglePacked()
1044 1044
        if dialog.show_dialog(self):
1045 1045
            self.build_label()
1046
            self.update()
1046
            self.validate()
1047 1047

  
1048 1048
    def show_DualPacked(self):
1049 1049
        from DualPacked import QDualPacked
......
1051 1051
        dialog = QDualPacked()
1052 1052
        if dialog.show_dialog(self):
1053 1053
            self.build_label()
1054
            self.update()
1054
            self.validate()
1055 1055

  
1056 1056
    def show_Drum_Horizontal(self):
1057 1057
        from Drum_Horizontal import QDrum_Horizontal
......
1059 1059
        dialog = QDrum_Horizontal()
1060 1060
        if dialog.show_dialog(self):
1061 1061
            self.build_label()
1062
            self.update()
1062
            self.validate()
1063 1063

  
1064 1064
    def show_Drum_Vertical(self):
1065 1065
        from Drum_Vertical import QDrum_Vertical
......
1067 1067
        dialog = QDrum_Vertical()
1068 1068
        if dialog.show_dialog(self):
1069 1069
            self.build_label()
1070
            self.update()
1070
            self.validate()
1071 1071

  
1072 1072
    def show_PlateHeatExchanger(self):
1073 1073
        from PlateHeatExchanger import QPlateHeatExchanger
......
1075 1075
        dialog = QPlateHeatExchanger()
1076 1076
        if dialog.show_dialog(self):
1077 1077
            self.build_label()
1078
            self.update()
1078
            self.validate()
1079 1079

  
1080 1080
    def show_Equipment(self):
1081 1081
        from Equipment import QEquipment
......
1083 1083
        dialog = QEquipment()
1084 1084
        if dialog.show_dialog(self):
1085 1085
            self.build_label()
1086
            self.update()
1086
            self.validate()
1087 1087

  
1088 1088
    def show_Ball(self):
1089 1089
        from Ball import QBall
......
1091 1091
        dialog = QBall()
1092 1092
        if dialog.show_dialog(self):
1093 1093
            self.build_label()
1094
            self.update()
1094
            self.validate()
1095 1095

  
1096 1096
    def show_ShlTubHeatExchanger(self):
1097 1097
        from ShlTubHeatExchanger import QShlTubHeatExchanger
......
1099 1099
        dialog = QShlTubHeatExchanger()
1100 1100
        if dialog.show_dialog(self):
1101 1101
            self.build_label()
1102
            self.update()
1102
            self.validate()
1103 1103

  
1104 1104
    def show_ConeRoof(self):
1105 1105
        from ConeRoof import QConeRoof
......
1107 1107
        dialog = QConeRoof()
1108 1108
        if dialog.show_dialog(self):
1109 1109
            self.build_label()
1110
            self.update()
1110
            self.validate()
1111 1111

  
1112 1112
    def show_DomeRoof(self):
1113 1113
        from DomeRoof import QDomeRoof
......
1115 1115
        dialog = QDomeRoof()
1116 1116
        if dialog.show_dialog(self):
1117 1117
            self.build_label()
1118
            self.update()
1118
            self.validate()
1119 1119

  
1120 1120
    def show_Compressor(self):
1121 1121
        from Compressor import QCompressor
......
1123 1123
        dialog = QCompressor()
1124 1124
        if dialog.show_dialog(self):
1125 1125
            self.build_label()
1126
            self.update()
1126
            self.validate()
1127 1127

  
1128 1128
    def show_Kompressor(self):
1129 1129
        from Kompressor import QKompressor
......
1131 1131
        dialog = QKompressor()
1132 1132
        if dialog.show_dialog(self):
1133 1133
            self.build_label()
1134
            self.update()
1134
            self.validate()
1135 1135

  
1136 1136
    def show_Pump(self):
1137 1137
        from Pump import QPump
......
1139 1139
        dialog = QPump()
1140 1140
        if dialog.show_dialog(self):
1141 1141
            self.build_label()
1142
            self.update()
1142
            self.validate()
1143 1143

  
1144 1144
    def show_ValveControl(self):
1145 1145
        from Valve_Control import QValve_Control
......
1147 1147
        dialog = QValve_Control()
1148 1148
        if dialog.show_dialog(self):
1149 1149
            self.build_label()
1150
            self.update()
1150
            self.validate()
1151 1151

  
1152 1152
    def show_ValveManual(self):
1153 1153
        from Valve_Manual import QValve_Manual
......
1155 1155
        dialog = QValve_Manual()
1156 1156
        if dialog.show_dialog(self):
1157 1157
            self.build_label()
1158
            self.update()
1158
            self.validate()
1159 1159

  
1160 1160
    def show_LineSplitter(self):
1161 1161
        from LineSplitter import QLineSplitter
......
1163 1163
        dialog = QLineSplitter()
1164 1164
        if dialog.show_dialog(self):
1165 1165
            self.build_label()
1166
            self.update()
1166
            self.validate()
1167 1167

  
1168 1168
    def show_Flowmeter(self):
1169 1169
        from Flowmeter import QFlowmeter
......
1171 1171
        dialog = QFlowmeter()
1172 1172
        if dialog.show_dialog(self):
1173 1173
            self.build_label()
1174
            self.update()
1174
            self.validate()
1175 1175

  
1176 1176
    def show_Reducer(self):
1177 1177
        from Reducer import QReducer
......
1179 1179
        dialog = QReducer()
1180 1180
        if dialog.show_dialog(self):
1181 1181
            self.build_label()
1182
            self.update()
1182
            self.validate()
1183 1183

  
1184 1184
    @staticmethod
1185 1185
    def fromDatabase(componentInfos):
......
1429 1429
        app_doc_data = AppDocData.instance()
1430 1430
        connector = QEngineeringConnectorItem(uid, parent=self, index=index)
1431 1431
        connector.data = app_doc_data.get_nozzle_data(uid)
1432
        connector.setParentItem(self)
1433 1432
        self.connectors.append(connector)
1434 1433

  
1435 1434
    '''
HYTOS/HYTOS/UI/GeometryData_Mixed.ui
25 25
  <layout class="QGridLayout" name="gridLayout">
26 26
   <item row="0" column="0">
27 27
    <layout class="QGridLayout" name="gridLayout_2">
28
     <item row="2" column="0">
29
      <widget class="QLabel" name="label_3">
28
     <item row="5" column="0">
29
      <widget class="QLabel" name="label_6">
30 30
       <property name="minimumSize">
31 31
        <size>
32 32
         <width>129</width>
......
40 40
        </size>
41 41
       </property>
42 42
       <property name="text">
43
        <string>Schedule No. :</string>
43
        <string>Length :</string>
44 44
       </property>
45 45
       <property name="alignment">
46 46
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
47 47
       </property>
48 48
      </widget>
49 49
     </item>
50
     <item row="1" column="0">
51
      <widget class="QLabel" name="label_2">
50
     <item row="8" column="2">
51
      <widget class="QPushButton" name="pushButton_d1_d2_Help">
52 52
       <property name="minimumSize">
53 53
        <size>
54
         <width>129</width>
55
         <height>0</height>
54
         <width>60</width>
55
         <height>24</height>
56 56
        </size>
57 57
       </property>
58 58
       <property name="maximumSize">
59 59
        <size>
60
         <width>129</width>
61
         <height>16777215</height>
60
         <width>60</width>
61
         <height>24</height>
62 62
        </size>
63 63
       </property>
64 64
       <property name="text">
65
        <string>Nominal Diameter :</string>
65
        <string/>
66 66
       </property>
67
       <property name="alignment">
68
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
67
       <property name="icon">
68
        <iconset resource="../res/Resource.qrc">
69
         <normaloff>:/images/Question.png</normaloff>:/images/Question.png</iconset>
69 70
       </property>
70 71
      </widget>
71 72
     </item>
72
     <item row="1" column="2">
73
      <widget class="QLabel" name="label_Nominal_Pipe_Size_Unit">
73
     <item row="5" column="1">
74
      <widget class="QLineEdit" name="lineEdit_Length">
74 75
       <property name="minimumSize">
75 76
        <size>
76
         <width>60</width>
77
         <width>0</width>
77 78
         <height>0</height>
78 79
        </size>
79 80
       </property>
80 81
       <property name="maximumSize">
81 82
        <size>
82
         <width>60</width>
83
         <width>16777215</width>
83 84
         <height>16777215</height>
84 85
        </size>
85 86
       </property>
86
       <property name="text">
87
        <string>-</string>
87
       <property name="alignment">
88
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
88 89
       </property>
89 90
      </widget>
90 91
     </item>
......
95 96
       </property>
96 97
      </widget>
97 98
     </item>
98
     <item row="2" column="1">
99
      <widget class="QComboBox" name="comboBox_Schedule_No">
99
     <item row="4" column="1">
100
      <widget class="QLineEdit" name="lineEdit_Roughness">
100 101
       <property name="minimumSize">
101 102
        <size>
102 103
         <width>0</width>
......
109 110
         <height>16777215</height>
110 111
        </size>
111 112
       </property>
113
       <property name="alignment">
114
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
115
       </property>
116
       <property name="readOnly">
117
        <bool>true</bool>
118
       </property>
112 119
      </widget>
113 120
     </item>
114
     <item row="7" column="0">
115
      <widget class="QLabel" name="label_8">
121
     <item row="1" column="2">
122
      <widget class="QLabel" name="label_Nominal_Pipe_Size_Unit">
116 123
       <property name="minimumSize">
117 124
        <size>
118
         <width>129</width>
125
         <width>60</width>
119 126
         <height>0</height>
120 127
        </size>
121 128
       </property>
122 129
       <property name="maximumSize">
123 130
        <size>
124
         <width>129</width>
131
         <width>60</width>
125 132
         <height>16777215</height>
126 133
        </size>
127 134
       </property>
128 135
       <property name="text">
129
        <string>r/D :</string>
130
       </property>
131
       <property name="alignment">
132
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
136
        <string>-</string>
133 137
       </property>
134 138
      </widget>
135 139
     </item>
136
     <item row="1" column="1">
137
      <widget class="QComboBox" name="comboBox_Nominal_Pipe_Size">
140
     <item row="5" column="2">
141
      <widget class="QLabel" name="label_Lengh_Unit">
138 142
       <property name="minimumSize">
139 143
        <size>
140
         <width>0</width>
144
         <width>60</width>
141 145
         <height>0</height>
142 146
        </size>
143 147
       </property>
144 148
       <property name="maximumSize">
145 149
        <size>
146
         <width>16777215</width>
150
         <width>60</width>
147 151
         <height>16777215</height>
148 152
        </size>
149 153
       </property>
154
       <property name="text">
155
        <string>-</string>
156
       </property>
150 157
      </widget>
151 158
     </item>
152 159
     <item row="7" column="2">
......
172 179
       </property>
173 180
      </widget>
174 181
     </item>
175
     <item row="7" column="1">
176
      <widget class="QLineEdit" name="lineEdit_rpd">
182
     <item row="9" column="1">
183
      <widget class="QLineEdit" name="lineEdit_k">
177 184
       <property name="minimumSize">
178 185
        <size>
179 186
         <width>0</width>
......
191 198
       </property>
192 199
      </widget>
193 200
     </item>
194
     <item row="4" column="0">
195
      <widget class="QPushButton" name="pushButton_Roughness">
201
     <item row="9" column="0">
202
      <widget class="QLabel" name="label_10">
196 203
       <property name="minimumSize">
197 204
        <size>
198
         <width>75</width>
205
         <width>129</width>
199 206
         <height>0</height>
200 207
        </size>
201 208
       </property>
202 209
       <property name="maximumSize">
203 210
        <size>
204
         <width>16777215</width>
211
         <width>129</width>
205 212
         <height>16777215</height>
206 213
        </size>
207 214
       </property>
208 215
       <property name="text">
209
        <string>Roughness</string>
216
        <string>K :</string>
217
       </property>
218
       <property name="alignment">
219
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
210 220
       </property>
211 221
      </widget>
212 222
     </item>
213
     <item row="5" column="0">
214
      <widget class="QLabel" name="label_6">
223
     <item row="1" column="0">
224
      <widget class="QLabel" name="label_2">
215 225
       <property name="minimumSize">
216 226
        <size>
217 227
         <width>129</width>
......
225 235
        </size>
226 236
       </property>
227 237
       <property name="text">
228
        <string>Length :</string>
238
        <string>Nominal Diameter :</string>
229 239
       </property>
230 240
       <property name="alignment">
231 241
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
232 242
       </property>
233 243
      </widget>
234 244
     </item>
235
     <item row="4" column="1">
236
      <widget class="QLineEdit" name="lineEdit_Roughness">
245
     <item row="4" column="0">
246
      <widget class="QPushButton" name="pushButton_Roughness">
237 247
       <property name="minimumSize">
238 248
        <size>
239
         <width>0</width>
249
         <width>75</width>
240 250
         <height>0</height>
241 251
        </size>
242 252
       </property>
......
246 256
         <height>16777215</height>
247 257
        </size>
248 258
       </property>
249
       <property name="alignment">
250
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
251
       </property>
252
       <property name="readOnly">
253
        <bool>true</bool>
259
       <property name="text">
260
        <string>Roughness</string>
254 261
       </property>
255 262
      </widget>
256 263
     </item>
257
     <item row="5" column="1">
258
      <widget class="QLineEdit" name="lineEdit_Length">
264
     <item row="6" column="2">
265
      <widget class="QPushButton" name="pushButton_Angle_Help">
259 266
       <property name="minimumSize">
260 267
        <size>
261
         <width>0</width>
262
         <height>0</height>
268
         <width>60</width>
269
         <height>24</height>
263 270
        </size>
264 271
       </property>
265 272
       <property name="maximumSize">
266 273
        <size>
267
         <width>16777215</width>
268
         <height>16777215</height>
274
         <width>60</width>
275
         <height>24</height>
269 276
        </size>
270 277
       </property>
271
       <property name="alignment">
272
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
278
       <property name="text">
279
        <string/>
280
       </property>
281
       <property name="icon">
282
        <iconset resource="../res/Resource.qrc">
283
         <normaloff>:/images/Question.png</normaloff>:/images/Question.png</iconset>
273 284
       </property>
274 285
      </widget>
275 286
     </item>
276
     <item row="4" column="2">
277
      <widget class="QLabel" name="label_Roughness_Unit">
287
     <item row="3" column="0">
288
      <widget class="QLabel" name="label_4">
278 289
       <property name="minimumSize">
279 290
        <size>
280
         <width>60</width>
291
         <width>129</width>
281 292
         <height>0</height>
282 293
        </size>
283 294
       </property>
284 295
       <property name="maximumSize">
285 296
        <size>
286
         <width>60</width>
297
         <width>129</width>
287 298
         <height>16777215</height>
288 299
        </size>
289 300
       </property>
290 301
       <property name="text">
291
        <string>-</string>
302
        <string>Inside Diameter :</string>
303
       </property>
304
       <property name="alignment">
305
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
292 306
       </property>
293 307
      </widget>
294 308
     </item>
295
     <item row="5" column="2">
296
      <widget class="QLabel" name="label_Lengh_Unit">
309
     <item row="4" column="2">
310
      <widget class="QLabel" name="label_Roughness_Unit">
297 311
       <property name="minimumSize">
298 312
        <size>
299 313
         <width>60</width>
......
311 325
       </property>
312 326
      </widget>
313 327
     </item>
314
     <item row="6" column="0">
315
      <widget class="QComboBox" name="comboBoxAngle"/>
316
     </item>
317
     <item row="6" column="1">
318
      <widget class="QLineEdit" name="lineEdit_Angle">
328
     <item row="3" column="1">
329
      <widget class="QLineEdit" name="lineEdit_Inside_Pipe_Size">
319 330
       <property name="minimumSize">
320 331
        <size>
321 332
         <width>0</width>
......
331 342
       <property name="alignment">
332 343
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
333 344
       </property>
345
       <property name="readOnly">
346
        <bool>true</bool>
347
       </property>
334 348
      </widget>
335 349
     </item>
336
     <item row="6" column="2">
337
      <widget class="QPushButton" name="pushButton_Angle_Help">
350
     <item row="9" column="2">
351
      <widget class="QPushButton" name="pushButton_K_Help">
338 352
       <property name="minimumSize">
339 353
        <size>
340 354
         <width>60</width>
......
356 370
       </property>
357 371
      </widget>
358 372
     </item>
359
     <item row="8" column="2">
360
      <widget class="QPushButton" name="pushButton_d1_d2_Help">
373
     <item row="7" column="1">
374
      <widget class="QLineEdit" name="lineEdit_rpd">
361 375
       <property name="minimumSize">
362 376
        <size>
363
         <width>60</width>
364
         <height>24</height>
377
         <width>0</width>
378
         <height>0</height>
365 379
        </size>
366 380
       </property>
367 381
       <property name="maximumSize">
368 382
        <size>
369
         <width>60</width>
370
         <height>24</height>
383
         <width>16777215</width>
384
         <height>16777215</height>
371 385
        </size>
372 386
       </property>
373
       <property name="text">
374
        <string/>
375
       </property>
376
       <property name="icon">
377
        <iconset resource="../res/Resource.qrc">
378
         <normaloff>:/images/Question.png</normaloff>:/images/Question.png</iconset>
387
       <property name="alignment">
388
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
379 389
       </property>
380 390
      </widget>
381 391
     </item>
382
     <item row="8" column="0">
383
      <widget class="QLabel" name="label_9">
392
     <item row="0" column="0">
393
      <widget class="QLabel" name="label">
384 394
       <property name="minimumSize">
385 395
        <size>
386 396
         <width>129</width>
......
394 404
        </size>
395 405
       </property>
396 406
       <property name="text">
397
        <string>D1/D2 :</string>
407
        <string>Element :</string>
398 408
       </property>
399 409
       <property name="alignment">
400 410
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
401 411
       </property>
402 412
      </widget>
403 413
     </item>
404
     <item row="8" column="1">
405
      <widget class="QLineEdit" name="lineEdit_d1_d2">
414
     <item row="2" column="1">
415
      <widget class="QComboBox" name="comboBox_Schedule_No">
406 416
       <property name="minimumSize">
407 417
        <size>
408 418
         <width>0</width>
......
415 425
         <height>16777215</height>
416 426
        </size>
417 427
       </property>
428
      </widget>
429
     </item>
430
     <item row="8" column="0">
431
      <widget class="QLabel" name="label_9">
432
       <property name="minimumSize">
433
        <size>
434
         <width>129</width>
435
         <height>0</height>
436
        </size>
437
       </property>
438
       <property name="maximumSize">
439
        <size>
440
         <width>129</width>
441
         <height>16777215</height>
442
        </size>
443
       </property>
444
       <property name="text">
445
        <string>D1/D2 :</string>
446
       </property>
418 447
       <property name="alignment">
419 448
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
420 449
       </property>
......
439 468
       </property>
440 469
      </widget>
441 470
     </item>
442
     <item row="3" column="0">
443
      <widget class="QLabel" name="label_4">
471
     <item row="7" column="0">
472
      <widget class="QLabel" name="label_8">
444 473
       <property name="minimumSize">
445 474
        <size>
446 475
         <width>129</width>
......
454 483
        </size>
455 484
       </property>
456 485
       <property name="text">
457
        <string>Inside Diameter :</string>
486
        <string>r/D :</string>
458 487
       </property>
459 488
       <property name="alignment">
460 489
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
461 490
       </property>
462 491
      </widget>
463 492
     </item>
464
     <item row="0" column="0">
465
      <widget class="QLabel" name="label">
493
     <item row="2" column="0">
494
      <widget class="QLabel" name="label_3">
466 495
       <property name="minimumSize">
467 496
        <size>
468 497
         <width>129</width>
......
476 505
        </size>
477 506
       </property>
478 507
       <property name="text">
479
        <string>Element :</string>
508
        <string>Schedule No. :</string>
480 509
       </property>
481 510
       <property name="alignment">
482 511
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
483 512
       </property>
484 513
      </widget>
485 514
     </item>
486
     <item row="3" column="1">
487
      <widget class="QLineEdit" name="lineEdit_Inside_Pipe_Size">
515
     <item row="8" column="1">
516
      <widget class="QLineEdit" name="lineEdit_d1_d2">
488 517
       <property name="minimumSize">
489 518
        <size>
490 519
         <width>0</width>
......
500 529
       <property name="alignment">
501 530
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
502 531
       </property>
503
       <property name="readOnly">
504
        <bool>true</bool>
505
       </property>
506 532
      </widget>
507 533
     </item>
508
     <item row="9" column="0">
509
      <widget class="QLabel" name="label_10">
534
     <item row="1" column="1">
535
      <widget class="QComboBox" name="comboBox_Nominal_Pipe_Size">
510 536
       <property name="minimumSize">
511 537
        <size>
512
         <width>129</width>
538
         <width>0</width>
513 539
         <height>0</height>
514 540
        </size>
515 541
       </property>
516 542
       <property name="maximumSize">
517 543
        <size>
518
         <width>129</width>
544
         <width>16777215</width>
519 545
         <height>16777215</height>
520 546
        </size>
521 547
       </property>
522
       <property name="text">
523
        <string>K :</string>
524
       </property>
525
       <property name="alignment">
526
        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
527
       </property>
528 548
      </widget>
529 549
     </item>
530
     <item row="9" column="1">
531
      <widget class="QLineEdit" name="lineEdit_k">
550
     <item row="6" column="0">
551
      <widget class="QComboBox" name="comboBoxAngle"/>
552
     </item>
553
     <item row="6" column="1">
554
      <widget class="QLineEdit" name="lineEdit_Angle">
532 555
       <property name="minimumSize">
533 556
        <size>
534 557
         <width>0</width>
......
546 569
       </property>
547 570
      </widget>
548 571
     </item>
549
     <item row="9" column="2">
550
      <widget class="QPushButton" name="pushButton_K_Help">
551
       <property name="minimumSize">
552
        <size>
553
         <width>60</width>
554
         <height>24</height>
555
        </size>
556
       </property>
557
       <property name="maximumSize">
558
        <size>
559
         <width>60</width>
560
         <height>24</height>
561
        </size>
562
       </property>
563
       <property name="text">
564
        <string/>
565
       </property>
566
       <property name="icon">
567
        <iconset resource="../res/Resource.qrc">
568
         <normaloff>:/images/Question.png</normaloff>:/images/Question.png</iconset>
569
       </property>
570
      </widget>
571
     </item>
572 572
    </layout>
573 573
   </item>
574 574
   <item row="2" column="0">
HYTOS/HYTOS/UI/MainWindow.ui
256 256
   <widget class="QWidget" name="dockWidgetContents_4">
257 257
    <layout class="QGridLayout" name="gridLayout_7">
258 258
     <item row="0" column="0">
259
      <layout class="QVBoxLayout" name="verticalLayout_3">
260
       <item>
261
        <widget class="QTableWidget" name="tableWidgetDeviation">
262
         <property name="minimumSize">
263
          <size>
264
           <width>0</width>
265
           <height>150</height>
266
          </size>
267
         </property>
268
         <property name="maximumSize">
269
          <size>
270
           <width>16777215</width>
271
           <height>150</height>
272
          </size>
273
         </property>
274
        </widget>
275
       </item>
276
       <item>
277
        <widget class="QTableWidget" name="tableWidgetOutput"/>
278
       </item>
279
      </layout>
259
      <widget class="QSplitter" name="splitter">
260
       <property name="orientation">
261
        <enum>Qt::Vertical</enum>
262
       </property>
263
       <widget class="QTableWidget" name="tableWidgetDeviation">
264
        <property name="minimumSize">
265
         <size>
266
          <width>0</width>
267
          <height>0</height>
268
         </size>
269
        </property>
270
        <property name="maximumSize">
271
         <size>
272
          <width>16777215</width>
273
          <height>150</height>
274
         </size>
275
        </property>
276
       </widget>
277
       <widget class="QTableWidget" name="tableWidgetOutput"/>
278
      </widget>
280 279
     </item>
281 280
    </layout>
282 281
   </widget>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)