프로젝트

일반

사용자정보

개정판 7c580b99

ID7c580b99d023dfb1393cd03c911c931b085f2eb4
상위 39128c17
하위 1b00446f, fa26da6c

김연진이(가) 약 5년 전에 추가함

issue #1260 : Stream Input Data 복사

Change-Id: I8e6b0534d2ccf770e88b69933bdbf531e5c0b5eb

차이점 보기:

HYTOS/HYTOS/CopyStreamData.py
1
# -*- coding: utf-8 -*-
2

  
3
# Form implementation generated from reading ui file 'ProjectDialog.ui'
4
#
5
# Created by: PyQt5 UI code generator 5.6
6
#
7
# WARNING! All changes made in this file will be lost!
8

  
9
import sys
10
import os
11
from PyQt5 import QtCore, QtGui, QtWidgets
12
from PyQt5.QtWidgets import *
13
import os
14
from AppDocData import AppDocData, QColor, Qt
15
import CopyStreamData_UI
16
import math
17

  
18

  
19
def set_table_widget_item_properties(name, alignment, color=None):
20
    if name is None:
21
        name = ''
22

  
23
    item = QTableWidgetItem(str(name))
24
    item.setTextAlignment(alignment)
25
    if color:
26
        item.setBackground(color)
27

  
28
    return item
29

  
30

  
31
def is_not_blank(s):
32
    return bool(s and s.strip())
33

  
34

  
35
class QCopyStreamData(QDialog):
36
    def __init__(self):
37
        QDialog.__init__(self)
38

  
39
        self.ui = CopyStreamData_UI.Ui_Dialog()
40
        self.ui.setupUi(self)
41

  
42
        self.isAccepted = False
43
        self.item = None
44
        self.initialize()
45
        self.ui.tableWidget_StreamNo.currentItemChanged.connect(self.load_stream_data)
46

  
47
    def show_dialog(self, item):
48
        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint)
49

  
50
        self.item = item
51
        self.load_stream_no()
52

  
53
        self.exec_()
54

  
55
        return self.isAccepted, self.get_selected_item()
56

  
57
    def get_selected_item(self):
58
        return self.ui.tableWidget_StreamNo.item(self.ui.tableWidget_StreamNo.currentRow(), 0).text()
59

  
60
    def add_stream_data(self, name, value, unit):
61
        row = self.ui.tableWidget_StreamData.rowCount()
62
        self.ui.tableWidget_StreamData.setRowCount(row + 1)
63
        self.ui.tableWidget_StreamData.setItem(row, 0, set_table_widget_item_properties(name,
64
                                                                                        Qt.AlignLeft | Qt.AlignVCenter))
65
        self.ui.tableWidget_StreamData.setItem(row, 1, set_table_widget_item_properties(value,
66
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
67
        self.ui.tableWidget_StreamData.setItem(row, 2, set_table_widget_item_properties(unit,
68
                                                                                        Qt.AlignLeft | Qt.AlignVCenter))
69

  
70
        self.ui.tableWidget_StreamData.resizeRowsToContents()
71
        self.ui.tableWidget_StreamData.resizeColumnsToContents()
72

  
73
    def add_stream_no(self, stream_no, components_uid):
74
        row = self.ui.tableWidget_StreamNo.rowCount()
75
        self.ui.tableWidget_StreamNo.setRowCount(row + 1)
76
        self.ui.tableWidget_StreamNo.setItem(row, 0, set_table_widget_item_properties(stream_no,
77
                                                                                      Qt.AlignHCenter | Qt.AlignVCenter))
78
        self.ui.tableWidget_StreamNo.setItem(row, 1, set_table_widget_item_properties(components_uid,
79
                                                                                      Qt.AlignHCenter | Qt.AlignVCenter))
80

  
81
        self.ui.tableWidget_StreamNo.resizeRowsToContents()
82
        self.ui.tableWidget_StreamNo.resizeColumnsToContents()
83

  
84
    def findValue(self, key):
85
        value = None
86

  
87
        key = key.replace("{", "").replace("}", "")
88
        for attr in AppDocData.instance().activeDrawing.attrs:
89
            if attr[0] == 'Units':
90
                if key in attr[1]:
91
                    value = attr[1][key]
92
                    break
93

  
94
        return value
95

  
96
    def convertToUnits(self, unitsExpression):
97
        import re
98

  
99
        if unitsExpression is None or AppDocData.instance().activeDrawing is None:
100
            return ''
101

  
102
        found = re.findall('{.*?}', unitsExpression)
103
        for f in found:
104
            key = f
105
            val = self.findValue(key)
106
            if val:
107
                unitsExpression = unitsExpression.replace(key, val)
108

  
109
        return unitsExpression
110

  
111
    def init_stream_data(self):
112
        try:
113
            app_doc_data = AppDocData.instance()
114

  
115
            column_infos = app_doc_data.getHMBDisplayNameAndUnitsExpression()
116
            count = len(column_infos)
117
            self.ui.tableWidget_StreamData.setRowCount(count)
118
            if len(column_infos) > 0:
119
                self.ui.tableWidget_StreamData.setColumnCount(3)
120
            else:
121
                self.ui.tableWidget_StreamData.setColumnCount(0)
122

  
123
            self.ui.tableWidget_StreamData.hideRow(0)  # UID
124
            self.ui.tableWidget_StreamData.hideRow(1)  # Components_UID
125
            # self.ui.tableWidget_StreamData.hideRow(2)  # Stream_No
126
            # self.ui.tableWidget_StreamData.hideRow(3)  # Phase_Type
127
            # self.ui.tableWidget_StreamData.hideRow(4)  # Flowrate_Mass
128
            # self.ui.tableWidget_StreamData.hideRow(5)  # Flowrate_Volume
129
            # self.ui.tableWidget_StreamData.hideRow(6)  # Density
130
            # self.ui.tableWidget_StreamData.hideRow(7)  # Viscosity
131
            # self.ui.tableWidget_StreamData.hideRow(8)  # Temperature
132
            # self.ui.tableWidget_StreamData.hideRow(9)  # Molecular_Weight
133
            # self.ui.tableWidget_StreamData.hideRow(10)  # Specific_Heat_Ratio
134
            # self.ui.tableWidget_StreamData.hideRow(11)  # Compress_Factor
135
            # self.ui.tableWidget_StreamData.hideRow(12)  # Nominal_Pipe_Size
136
            # self.ui.tableWidget_StreamData.hideRow(13)  # Inside_Pipe_Size
137
            # self.ui.tableWidget_StreamData.hideRow(14)  # Schedule_No
138
            # self.ui.tableWidget_StreamData.hideRow(15)  # Straight_Length
139
            # self.ui.tableWidget_StreamData.hideRow(16)  # Equivalent_Length
140
            self.ui.tableWidget_StreamData.hideRow(17)  # Equivalent_Length_Input
141
            self.ui.tableWidget_StreamData.hideRow(18)  # Fitting_Length
142
            self.ui.tableWidget_StreamData.hideRow(19)  # Fitting_K
143
            self.ui.tableWidget_StreamData.hideRow(20)  # Equivalent_Length_Cal
144
            # self.ui.tableWidget_StreamData.hideRow(21)  # Roughness
145
            # self.ui.tableWidget_StreamData.hideRow(22)  # Limitation_Velocity
146
            # self.ui.tableWidget_StreamData.hideRow(23)  # Limitation_Pressure_Drop
147
            self.ui.tableWidget_StreamData.hideRow(24)  # Separator
148
            self.ui.tableWidget_StreamData.hideRow(25)  # Velocity
149
            self.ui.tableWidget_StreamData.hideRow(26)  # Reynolds
150
            self.ui.tableWidget_StreamData.hideRow(27)  # Friction_Factor
151
            self.ui.tableWidget_StreamData.hideRow(28)  # Pressure_Drop
152
            self.ui.tableWidget_StreamData.hideRow(29)  # Pressure_Drop_Friction
153
            self.ui.tableWidget_StreamData.hideRow(30)  # Pressure_Drop_Static
154
            self.ui.tableWidget_StreamData.hideRow(31)  # Pressure_Pipe_End_Point
155
            self.ui.tableWidget_StreamData.hideRow(32)  # Power
156

  
157
            self.ui.tableWidget_StreamData.setEditTriggers(QAbstractItemView.NoEditTriggers)
158
            self.ui.tableWidget_StreamData.verticalHeader().setVisible(False)
159
            self.ui.tableWidget_StreamData.horizontalHeader().setVisible(False)
160
            self.ui.tableWidget_StreamData.horizontalHeader().setStretchLastSection(True)
161

  
162
            rowIndex = 0
163
            for columnInfo in column_infos:
164
                name = columnInfo[0]
165
                unit = self.convertToUnits(columnInfo[1])
166

  
167
                self.ui.tableWidget_StreamData.setItem(rowIndex, 0,
168
                                                       set_table_widget_item_properties(name,
169
                                                                                        QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter,
170
                                                                                        QColor(51, 153,
171
                                                                                               102)))  # QColor(230, 230, 230)))
172

  
173
                self.ui.tableWidget_StreamData.setItem(rowIndex, 1,
174
                                                       set_table_widget_item_properties(unit,
175
                                                                                        QtCore.Qt.AlignHCenter | QtCore.Qt.AlignVCenter,
176
                                                                                        QColor(204, 255,
177
                                                                                               204)))  # QColor(230, 230, 230)))
178

  
179
                rowIndex += 1
180

  
181
            self.ui.tableWidget_StreamData.resizeColumnsToContents()
182
            self.ui.tableWidget_StreamData.resizeRowsToContents()
183

  
184
        except Exception as ex:
185
            from App import App
186
            from AppDocData import MessageType
187
            message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename,
188
                                                           sys.exc_info()[-1].tb_lineno)
189
            App.mainWnd().addMessage.emit(MessageType.Error, message)
190

  
191
    def init_stream_no(self):
192
        try:
193
            # Stream No
194
            self.ui.tableWidget_StreamNo.setColumnCount(2)
195
            self.ui.tableWidget_StreamNo.horizontalHeader().setVisible(False)
196
            self.ui.tableWidget_StreamNo.verticalHeader().setVisible(False)
197
            self.ui.tableWidget_StreamNo.setSelectionMode(QAbstractItemView.SingleSelection)
198
            self.ui.tableWidget_StreamNo.setSelectionBehavior(QAbstractItemView.SelectRows)
199
            self.ui.tableWidget_StreamNo.setEditTriggers(QAbstractItemView.NoEditTriggers)
200
            self.ui.tableWidget_StreamNo.horizontalHeader().setStretchLastSection(True)
201
            self.ui.tableWidget_StreamNo.hideColumn(0)
202

  
203
        except Exception as ex:
204
            from App import App
205
            from AppDocData import MessageType
206
            message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename,
207
                                                           sys.exc_info()[-1].tb_lineno)
208
            App.mainWnd().addMessage.emit(MessageType.Error, message)
209

  
210
    def initialize(self):
211
        try:
212
            self.init_stream_no()
213
            self.init_stream_data()
214

  
215
        except Exception as ex:
216
            from App import App
217
            from AppDocData import MessageType
218
            message = 'error occurred({}) in {}:{}'.format(repr(ex), sys.exc_info()[-1].tb_frame.f_code.co_filename,
219
                                                           sys.exc_info()[-1].tb_lineno)
220
            App.mainWnd().addMessage.emit(MessageType.Error, message)
221

  
222
    def load_stream_data(self, item):
223
        try:
224
            row = self.ui.tableWidget_StreamNo.row(item)
225
            components_uid = self.ui.tableWidget_StreamNo.item(row, 0).text()
226

  
227
            app_doc_data = AppDocData.instance()
228
            drawing = app_doc_data.activeDrawing
229
            matches = [hmb for hmb in drawing.hmbTable._hmbs if hmb.components_uid == components_uid]
230
            if matches:
231
                self.ui.tableWidget_StreamData.setItem(0, 2, set_table_widget_item_properties(matches[0].uid,
232
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
233
                self.ui.tableWidget_StreamData.setItem(1, 2, set_table_widget_item_properties(matches[0].components_uid,
234
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
235
                self.ui.tableWidget_StreamData.setItem(2, 2, set_table_widget_item_properties(matches[0].stream_no,
236
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
237
                self.ui.tableWidget_StreamData.setItem(3, 2, set_table_widget_item_properties(matches[0].phase_type,
238
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
239
                self.ui.tableWidget_StreamData.setItem(4, 2, set_table_widget_item_properties(matches[0].flowrate_mass,
240
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
241
                self.ui.tableWidget_StreamData.setItem(5, 2,
242
                                                       set_table_widget_item_properties(matches[0].flowrate_volume,
243
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
244
                self.ui.tableWidget_StreamData.setItem(6, 2, set_table_widget_item_properties(matches[0].density,
245
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
246
                self.ui.tableWidget_StreamData.setItem(7, 2, set_table_widget_item_properties(matches[0].viscosity,
247
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
248
                self.ui.tableWidget_StreamData.setItem(8, 2, set_table_widget_item_properties(matches[0].temperature,
249
                                                                                              Qt.AlignHCenter | Qt.AlignVCenter))
250
                self.ui.tableWidget_StreamData.setItem(9, 2,
251
                                                       set_table_widget_item_properties(matches[0].molecular_weight,
252
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
253
                self.ui.tableWidget_StreamData.setItem(10, 2,
254
                                                       set_table_widget_item_properties(matches[0].specific_heat_ratio,
255
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
256
                self.ui.tableWidget_StreamData.setItem(11, 2,
257
                                                       set_table_widget_item_properties(matches[0].compress_factor,
258
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
259
                self.ui.tableWidget_StreamData.setItem(12, 2,
260
                                                       set_table_widget_item_properties(matches[0].nominal_pipe_size,
261
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
262
                self.ui.tableWidget_StreamData.setItem(13, 2,
263
                                                       set_table_widget_item_properties(matches[0].inside_pipe_size,
264
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
265
                self.ui.tableWidget_StreamData.setItem(14, 2,
266
                                                       set_table_widget_item_properties(matches[0].schedule_no,
267
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
268
                self.ui.tableWidget_StreamData.setItem(15, 2,
269
                                                       set_table_widget_item_properties(matches[0].straight_length,
270
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
271
                self.ui.tableWidget_StreamData.setItem(16, 2,
272
                                                       set_table_widget_item_properties(matches[0].equivalent_length,
273
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
274
                self.ui.tableWidget_StreamData.setItem(17, 2,
275
                                                       set_table_widget_item_properties(
276
                                                           matches[0].equivalent_length_input,
277
                                                           Qt.AlignHCenter | Qt.AlignVCenter))
278
                self.ui.tableWidget_StreamData.setItem(18, 2,
279
                                                       set_table_widget_item_properties(matches[0].fitting_length,
280
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
281
                self.ui.tableWidget_StreamData.setItem(19, 2,
282
                                                       set_table_widget_item_properties(matches[0].fitting_K,
283
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
284
                self.ui.tableWidget_StreamData.setItem(20, 2,
285
                                                       set_table_widget_item_properties(
286
                                                           matches[0].equivalent_length_cal,
287
                                                           Qt.AlignHCenter | Qt.AlignVCenter))
288
                self.ui.tableWidget_StreamData.setItem(21, 2,
289
                                                       set_table_widget_item_properties(matches[0].roughness,
290
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
291
                self.ui.tableWidget_StreamData.setItem(22, 2,
292
                                                       set_table_widget_item_properties(matches[0].limitation_velocity,
293
                                                                                        Qt.AlignHCenter | Qt.AlignVCenter))
294
                self.ui.tableWidget_StreamData.setItem(23, 2,
295
                                                       set_table_widget_item_properties(
296
                                                           matches[0].limitation_pressure_drop,
297
                                                           Qt.AlignHCenter | Qt.AlignVCenter))
298
        except Exception as ex:
299
            from App import App
300
            from AppDocData import MessageType
301

  
302
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
303
                                                           sys.exc_info()[-1].tb_lineno)
304
            App.mainWnd().addMessage.emit(MessageType.Error, message)
305

  
306
    def load_stream_no(self):
307
        try:
308
            app_doc_data = AppDocData.instance()
309
            drawing = app_doc_data.activeDrawing
310
            for hmb in drawing.hmbTable._hmbs:
311
                if hmb.isDeleted: continue
312
                if hmb.components_uid == self.item.uid: continue
313

  
314
                self.add_stream_no(hmb.components_uid, hmb.stream_no)
315

  
316
        except Exception as ex:
317
            from App import App
318
            from AppDocData import MessageType
319

  
320
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
321
                                                           sys.exc_info()[-1].tb_lineno)
322
            App.mainWnd().addMessage.emit(MessageType.Error, message)
323

  
324
    def accept(self):
325
        self.isAccepted = True
326
        QDialog.accept(self)
327

  
328
    def reject(self):
329
        QDialog.reject(self)
HYTOS/HYTOS/CopyStreamData_UI.py
1
# -*- coding: utf-8 -*-
2

  
3
# Form implementation generated from reading ui file '.\UI\CopyStreamData.ui'
4
#
5
# Created by: PyQt5 UI code generator 5.13.0
6
#
7
# WARNING! All changes made in this file will be lost!
8

  
9

  
10
from PyQt5 import QtCore, QtGui, QtWidgets
11

  
12

  
13
class Ui_Dialog(object):
14
    def setupUi(self, Dialog):
15
        Dialog.setObjectName("Dialog")
16
        Dialog.resize(547, 421)
17
        font = QtGui.QFont()
18
        font.setFamily("맑은 고딕")
19
        Dialog.setFont(font)
20
        icon = QtGui.QIcon()
21
        icon.addPixmap(QtGui.QPixmap(":/images/HYTOS.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
22
        Dialog.setWindowIcon(icon)
23
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
24
        self.gridLayout.setObjectName("gridLayout")
25
        self.gridLayout_2 = QtWidgets.QGridLayout()
26
        self.gridLayout_2.setObjectName("gridLayout_2")
27
        self.groupBox = QtWidgets.QGroupBox(Dialog)
28
        self.groupBox.setMinimumSize(QtCore.QSize(150, 0))
29
        self.groupBox.setMaximumSize(QtCore.QSize(150, 16777215))
30
        font = QtGui.QFont()
31
        font.setFamily("맑은 고딕")
32
        font.setBold(True)
33
        font.setWeight(75)
34
        self.groupBox.setFont(font)
35
        self.groupBox.setObjectName("groupBox")
36
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
37
        self.gridLayout_3.setObjectName("gridLayout_3")
38
        self.tableWidget_StreamNo = QtWidgets.QTableWidget(self.groupBox)
39
        self.tableWidget_StreamNo.setObjectName("tableWidget_StreamNo")
40
        self.tableWidget_StreamNo.setColumnCount(0)
41
        self.tableWidget_StreamNo.setRowCount(0)
42
        self.gridLayout_3.addWidget(self.tableWidget_StreamNo, 0, 1, 1, 1)
43
        self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
44
        self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
45
        font = QtGui.QFont()
46
        font.setFamily("맑은 고딕")
47
        font.setBold(True)
48
        font.setWeight(75)
49
        self.groupBox_2.setFont(font)
50
        self.groupBox_2.setObjectName("groupBox_2")
51
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2)
52
        self.gridLayout_4.setObjectName("gridLayout_4")
53
        self.tableWidget_StreamData = QtWidgets.QTableWidget(self.groupBox_2)
54
        self.tableWidget_StreamData.setObjectName("tableWidget_StreamData")
55
        self.tableWidget_StreamData.setColumnCount(0)
56
        self.tableWidget_StreamData.setRowCount(0)
57
        self.gridLayout_4.addWidget(self.tableWidget_StreamData, 0, 0, 1, 1)
58
        self.gridLayout_2.addWidget(self.groupBox_2, 0, 1, 1, 1)
59
        self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1)
60
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
61
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
62
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
63
        self.buttonBox.setObjectName("buttonBox")
64
        self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1)
65

  
66
        self.retranslateUi(Dialog)
67
        self.buttonBox.accepted.connect(Dialog.accept)
68
        self.buttonBox.rejected.connect(Dialog.reject)
69
        QtCore.QMetaObject.connectSlotsByName(Dialog)
70

  
71
    def retranslateUi(self, Dialog):
72
        _translate = QtCore.QCoreApplication.translate
73
        Dialog.setWindowTitle(_translate("Dialog", "Copy Stream Data"))
74
        self.groupBox.setTitle(_translate("Dialog", "Stream No."))
75
        self.groupBox_2.setTitle(_translate("Dialog", "Stream Data"))
76
import Resource_rc
HYTOS/HYTOS/UI/CopyStreamData.ui
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ui version="4.0">
3
 <class>Dialog</class>
4
 <widget class="QDialog" name="Dialog">
5
  <property name="geometry">
6
   <rect>
7
    <x>0</x>
8
    <y>0</y>
9
    <width>547</width>
10
    <height>421</height>
11
   </rect>
12
  </property>
13
  <property name="font">
14
   <font>
15
    <family>맑은 고딕</family>
16
   </font>
17
  </property>
18
  <property name="windowTitle">
19
   <string>Copy Stream Data</string>
20
  </property>
21
  <property name="windowIcon">
22
   <iconset resource="../res/Resource.qrc">
23
    <normaloff>:/images/HYTOS.png</normaloff>:/images/HYTOS.png</iconset>
24
  </property>
25
  <layout class="QGridLayout" name="gridLayout">
26
   <item row="0" column="0">
27
    <layout class="QGridLayout" name="gridLayout_2">
28
     <item row="0" column="0">
29
      <widget class="QGroupBox" name="groupBox">
30
       <property name="minimumSize">
31
        <size>
32
         <width>150</width>
33
         <height>0</height>
34
        </size>
35
       </property>
36
       <property name="maximumSize">
37
        <size>
38
         <width>150</width>
39
         <height>16777215</height>
40
        </size>
41
       </property>
42
       <property name="font">
43
        <font>
44
         <family>맑은 고딕</family>
45
         <weight>75</weight>
46
         <bold>true</bold>
47
        </font>
48
       </property>
49
       <property name="title">
50
        <string>Stream No.</string>
51
       </property>
52
       <layout class="QGridLayout" name="gridLayout_3">
53
        <item row="0" column="1">
54
         <widget class="QTableWidget" name="tableWidget_StreamNo"/>
55
        </item>
56
       </layout>
57
      </widget>
58
     </item>
59
     <item row="0" column="1">
60
      <widget class="QGroupBox" name="groupBox_2">
61
       <property name="font">
62
        <font>
63
         <family>맑은 고딕</family>
64
         <weight>75</weight>
65
         <bold>true</bold>
66
        </font>
67
       </property>
68
       <property name="title">
69
        <string>Stream Data</string>
70
       </property>
71
       <layout class="QGridLayout" name="gridLayout_4">
72
        <item row="0" column="0">
73
         <widget class="QTableWidget" name="tableWidget_StreamData"/>
74
        </item>
75
       </layout>
76
      </widget>
77
     </item>
78
    </layout>
79
   </item>
80
   <item row="1" column="0">
81
    <widget class="QDialogButtonBox" name="buttonBox">
82
     <property name="orientation">
83
      <enum>Qt::Horizontal</enum>
84
     </property>
85
     <property name="standardButtons">
86
      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
87
     </property>
88
    </widget>
89
   </item>
90
  </layout>
91
 </widget>
92
 <resources>
93
  <include location="../res/Resource.qrc"/>
94
 </resources>
95
 <connections>
96
  <connection>
97
   <sender>buttonBox</sender>
98
   <signal>accepted()</signal>
99
   <receiver>Dialog</receiver>
100
   <slot>accept()</slot>
101
   <hints>
102
    <hint type="sourcelabel">
103
     <x>248</x>
104
     <y>254</y>
105
    </hint>
106
    <hint type="destinationlabel">
107
     <x>157</x>
108
     <y>274</y>
109
    </hint>
110
   </hints>
111
  </connection>
112
  <connection>
113
   <sender>buttonBox</sender>
114
   <signal>rejected()</signal>
115
   <receiver>Dialog</receiver>
116
   <slot>reject()</slot>
117
   <hints>
118
    <hint type="sourcelabel">
119
     <x>316</x>
120
     <y>260</y>
121
    </hint>
122
    <hint type="destinationlabel">
123
     <x>286</x>
124
     <y>274</y>
125
    </hint>
126
   </hints>
127
  </connection>
128
 </connections>
129
</ui>

내보내기 Unified diff

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