프로젝트

일반

사용자정보

개정판 d9aa8d67

IDd9aa8d6733abcfdc40984259d1e6be2e48b83a97
상위 7345d960
하위 638dd2dd

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

issue #1212 Mixed (Liquid+Vapor) 데이터 입력창 추가

Change-Id: Ie3204163f461e47cbbdf0fa24fd3948f0e7f7c46

차이점 보기:

HYTOS/HYTOS/GeometryData_AngleDialog.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
from PyQt5 import QtCore, QtGui, QtWidgets
10
from PyQt5.QtWidgets import *
11
import sys
12
import os
13
from AppDocData import AppDocData
14
import GeometryData_Angle_UI
15
import math
16

  
17

  
18
class QGeometryData_AngleDialog(QDialog):
19
    def __init__(self):
20
        QDialog.__init__(self)
21

  
22
        self.ui = GeometryData_Angle_UI.Ui_Dialog()
23
        self.ui.setupUi(self)
24

  
25
        self.angle = None
26

  
27
        self.ui.pushButton_45_Degree.clicked.connect(self.degree_event)
28
        self.ui.pushButton_90_Degree.clicked.connect(self.degree_event)
29
        self.ui.pushButton_180_Degree.clicked.connect(self.degree_event)
30

  
31
    def show_dialog(self):
32
        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint)
33

  
34
        self.exec_()
35

  
36
        return self.angle
37

  
38
    def degree_event(self):
39
        if self.sender() == self.ui.pushButton_45_Degree:
40
            self.angle = 45
41
        elif self.sender() == self.ui.pushButton_90_Degree:
42
            self.angle = 90
43
        elif self.sender() == self.ui.pushButton_180_Degree:
44
            self.angle = 180
45

  
46
        QDialog.accept(self)
47
    def accept(self):
48
        QDialog.accept(self)
49

  
50
    def reject(self):
51
        QDialog.reject(self)
HYTOS/HYTOS/GeometryData_Angle_UI.py
1
# -*- coding: utf-8 -*-
2

  
3
# Form implementation generated from reading ui file '.\UI\GeometryData_Angle.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(205, 139)
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.groupBox = QtWidgets.QGroupBox(Dialog)
26
        self.groupBox.setObjectName("groupBox")
27
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
28
        self.gridLayout_2.setObjectName("gridLayout_2")
29
        self.verticalLayout = QtWidgets.QVBoxLayout()
30
        self.verticalLayout.setObjectName("verticalLayout")
31
        self.pushButton_45_Degree = QtWidgets.QPushButton(self.groupBox)
32
        icon1 = QtGui.QIcon()
33
        icon1.addPixmap(QtGui.QPixmap(":/images/2K_Fitting_45_Elbow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
34
        self.pushButton_45_Degree.setIcon(icon1)
35
        self.pushButton_45_Degree.setObjectName("pushButton_45_Degree")
36
        self.verticalLayout.addWidget(self.pushButton_45_Degree)
37
        self.pushButton_90_Degree = QtWidgets.QPushButton(self.groupBox)
38
        icon2 = QtGui.QIcon()
39
        icon2.addPixmap(QtGui.QPixmap(":/images/2K_Fitting_90_Elbow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
40
        self.pushButton_90_Degree.setIcon(icon2)
41
        self.pushButton_90_Degree.setObjectName("pushButton_90_Degree")
42
        self.verticalLayout.addWidget(self.pushButton_90_Degree)
43
        self.pushButton_180_Degree = QtWidgets.QPushButton(self.groupBox)
44
        icon3 = QtGui.QIcon()
45
        icon3.addPixmap(QtGui.QPixmap(":/images/2K_Fitting_180_Elbow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
46
        self.pushButton_180_Degree.setIcon(icon3)
47
        self.pushButton_180_Degree.setObjectName("pushButton_180_Degree")
48
        self.verticalLayout.addWidget(self.pushButton_180_Degree)
49
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1)
50
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
51

  
52
        self.retranslateUi(Dialog)
53
        QtCore.QMetaObject.connectSlotsByName(Dialog)
54

  
55
    def retranslateUi(self, Dialog):
56
        _translate = QtCore.QCoreApplication.translate
57
        Dialog.setWindowTitle(_translate("Dialog", "Select tha angle"))
58
        self.groupBox.setTitle(_translate("Dialog", "Select the Elbow Angle"))
59
        self.pushButton_45_Degree.setText(_translate("Dialog", "45 Degree"))
60
        self.pushButton_90_Degree.setText(_translate("Dialog", "90 Degree"))
61
        self.pushButton_180_Degree.setText(_translate("Dialog", "180 Degree"))
62
import Resource_rc
HYTOS/HYTOS/UI/GeometryData_Angle.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>205</width>
10
    <height>139</height>
11
   </rect>
12
  </property>
13
  <property name="font">
14
   <font>
15
    <family>맑은 고딕</family>
16
   </font>
17
  </property>
18
  <property name="windowTitle">
19
   <string>Select tha angle</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
    <widget class="QGroupBox" name="groupBox">
28
     <property name="title">
29
      <string>Select the Elbow Angle</string>
30
     </property>
31
     <layout class="QGridLayout" name="gridLayout_2">
32
      <item row="0" column="0">
33
       <layout class="QVBoxLayout" name="verticalLayout">
34
        <item>
35
         <widget class="QPushButton" name="pushButton_45_Degree">
36
          <property name="text">
37
           <string>45 Degree</string>
38
          </property>
39
          <property name="icon">
40
           <iconset resource="../res/Resource.qrc">
41
            <normaloff>:/images/2K_Fitting_45_Elbow.png</normaloff>:/images/2K_Fitting_45_Elbow.png</iconset>
42
          </property>
43
         </widget>
44
        </item>
45
        <item>
46
         <widget class="QPushButton" name="pushButton_90_Degree">
47
          <property name="text">
48
           <string>90 Degree</string>
49
          </property>
50
          <property name="icon">
51
           <iconset resource="../res/Resource.qrc">
52
            <normaloff>:/images/2K_Fitting_90_Elbow.png</normaloff>:/images/2K_Fitting_90_Elbow.png</iconset>
53
          </property>
54
         </widget>
55
        </item>
56
        <item>
57
         <widget class="QPushButton" name="pushButton_180_Degree">
58
          <property name="text">
59
           <string>180 Degree</string>
60
          </property>
61
          <property name="icon">
62
           <iconset resource="../res/Resource.qrc">
63
            <normaloff>:/images/2K_Fitting_180_Elbow.png</normaloff>:/images/2K_Fitting_180_Elbow.png</iconset>
64
          </property>
65
         </widget>
66
        </item>
67
       </layout>
68
      </item>
69
     </layout>
70
    </widget>
71
   </item>
72
  </layout>
73
 </widget>
74
 <resources>
75
  <include location="../res/Resource.qrc"/>
76
 </resources>
77
 <connections/>
78
</ui>

내보내기 Unified diff

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