ui_createpointings.py 7.53 KB
Newer Older
marc's avatar
marc committed
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ui_createpointings.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_FormCreatePoinings(object):
    def setupUi(self, FormCreatePoinings):
        FormCreatePoinings.setObjectName("FormCreatePoinings")
marc's avatar
marc committed
14
        FormCreatePoinings.resize(475, 264)
marc's avatar
marc committed
15
16
        FormCreatePoinings.setMaximumSize(QtCore.QSize(590, 270))
        self.layoutWidget = QtWidgets.QWidget(FormCreatePoinings)
marc's avatar
marc committed
17
        self.layoutWidget.setGeometry(QtCore.QRect(11, 11, 461, 245))
marc's avatar
marc committed
18
19
        self.layoutWidget.setObjectName("layoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
marc's avatar
marc committed
20
        self.gridLayout.setObjectName("gridLayout")
marc's avatar
marc committed
21
22
23
24
        self.comboBox = QtWidgets.QComboBox(self.layoutWidget)
        self.comboBox.setToolTip("")
        self.comboBox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.comboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContentsOnFirstShow)
marc's avatar
marc committed
25
26
27
28
29
30
31
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.gridLayout.addWidget(self.comboBox, 0, 1, 1, 1)
marc's avatar
marc committed
32
        self.label = QtWidgets.QLabel(self.layoutWidget)
marc's avatar
marc committed
33
34
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
marc's avatar
marc committed
35
36
        self.gridLayout.addWidget(self.label, 1, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.layoutWidget)
marc's avatar
marc committed
37
38
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
marc's avatar
marc committed
39
40
41
42
        self.gridLayout.addWidget(self.label_2, 1, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.layoutWidget)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
marc's avatar
marc committed
43
        self.gridLayout.addWidget(self.label_5, 7, 0, 1, 1)
marc's avatar
marc committed
44
        self.label_3 = QtWidgets.QLabel(self.layoutWidget)
marc's avatar
marc committed
45
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
marc's avatar
marc committed
46
        self.label_3.setWordWrap(True)
marc's avatar
marc committed
47
        self.label_3.setObjectName("label_3")
marc's avatar
marc committed
48
        self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1)
marc's avatar
marc committed
49
        self.buttonBoxCreatePointings = QtWidgets.QDialogButtonBox(self.layoutWidget)
marc's avatar
minor    
marc committed
50
        self.buttonBoxCreatePointings.setStandardButtons(QtWidgets.QDialogButtonBox.Close|QtWidgets.QDialogButtonBox.Ok)
marc's avatar
marc committed
51
        self.buttonBoxCreatePointings.setObjectName("buttonBoxCreatePointings")
marc's avatar
marc committed
52
        self.gridLayout.addWidget(self.buttonBoxCreatePointings, 7, 1, 1, 1)
marc's avatar
marc committed
53
54
55
56
57
58
59
60
61
62
63
64
        self.label_9 = QtWidgets.QLabel(self.layoutWidget)
        self.label_9.setAlignment(QtCore.Qt.AlignCenter)
        self.label_9.setWordWrap(True)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.layoutWidget)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 0, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.layoutWidget)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setWordWrap(True)
marc's avatar
marc committed
65
        self.label_8.setObjectName("label_8")
marc's avatar
marc committed
66
        self.gridLayout.addWidget(self.label_8, 4, 0, 1, 1)
marc's avatar
marc committed
67
68
69
70
71
72
73
74
        self.doubleSpinBoxDistanceRA = QtWidgets.QDoubleSpinBox(self.layoutWidget)
        self.doubleSpinBoxDistanceRA.setAlignment(QtCore.Qt.AlignCenter)
        self.doubleSpinBoxDistanceRA.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
        self.doubleSpinBoxDistanceRA.setMinimum(0.1)
        self.doubleSpinBoxDistanceRA.setMaximum(2.0)
        self.doubleSpinBoxDistanceRA.setSingleStep(0.1)
        self.doubleSpinBoxDistanceRA.setProperty("value", 0.5)
        self.doubleSpinBoxDistanceRA.setObjectName("doubleSpinBoxDistanceRA")
marc's avatar
marc committed
75
        self.gridLayout.addWidget(self.doubleSpinBoxDistanceRA, 5, 1, 1, 1)
marc's avatar
marc committed
76
77
78
79
80
81
82
83
        self.doubleSpinBoxDistanceDec = QtWidgets.QDoubleSpinBox(self.layoutWidget)
        self.doubleSpinBoxDistanceDec.setAlignment(QtCore.Qt.AlignCenter)
        self.doubleSpinBoxDistanceDec.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
        self.doubleSpinBoxDistanceDec.setMinimum(0.1)
        self.doubleSpinBoxDistanceDec.setMaximum(2.0)
        self.doubleSpinBoxDistanceDec.setSingleStep(0.1)
        self.doubleSpinBoxDistanceDec.setProperty("value", 0.5)
        self.doubleSpinBoxDistanceDec.setObjectName("doubleSpinBoxDistanceDec")
marc's avatar
marc committed
84
        self.gridLayout.addWidget(self.doubleSpinBoxDistanceDec, 5, 2, 1, 1)
marc's avatar
marc committed
85
86
87
        self.spinBoxStepsRA = QtWidgets.QSpinBox(self.layoutWidget)
        self.spinBoxStepsRA.setAlignment(QtCore.Qt.AlignCenter)
        self.spinBoxStepsRA.setMaximum(30)
marc's avatar
marc committed
88
        self.spinBoxStepsRA.setProperty("value", 1)
marc's avatar
marc committed
89
        self.spinBoxStepsRA.setObjectName("spinBoxStepsRA")
marc's avatar
marc committed
90
        self.gridLayout.addWidget(self.spinBoxStepsRA, 4, 1, 1, 1)
marc's avatar
marc committed
91
92
93
        self.spinBoxStepsDec = QtWidgets.QSpinBox(self.layoutWidget)
        self.spinBoxStepsDec.setAlignment(QtCore.Qt.AlignCenter)
        self.spinBoxStepsDec.setMaximum(30)
marc's avatar
marc committed
94
        self.spinBoxStepsDec.setProperty("value", 1)
marc's avatar
marc committed
95
        self.spinBoxStepsDec.setObjectName("spinBoxStepsDec")
marc's avatar
marc committed
96
97
98
99
100
101
102
103
104
        self.gridLayout.addWidget(self.spinBoxStepsDec, 4, 2, 1, 1)
        self.lineEditRA = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEditRA.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEditRA.setObjectName("lineEditRA")
        self.gridLayout.addWidget(self.lineEditRA, 2, 1, 1, 1)
        self.lineEditDec = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEditDec.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEditDec.setObjectName("lineEditDec")
        self.gridLayout.addWidget(self.lineEditDec, 2, 2, 1, 1)
marc's avatar
marc committed
105
106
107

        self.retranslateUi(FormCreatePoinings)
        QtCore.QMetaObject.connectSlotsByName(FormCreatePoinings)
marc's avatar
marc committed
108
109
110
111
        FormCreatePoinings.setTabOrder(self.comboBox, self.spinBoxStepsRA)
        FormCreatePoinings.setTabOrder(self.spinBoxStepsRA, self.spinBoxStepsDec)
        FormCreatePoinings.setTabOrder(self.spinBoxStepsDec, self.doubleSpinBoxDistanceRA)
        FormCreatePoinings.setTabOrder(self.doubleSpinBoxDistanceRA, self.doubleSpinBoxDistanceDec)
marc's avatar
marc committed
112
113
114
115
116
117
118
119
120
121
122
123

    def retranslateUi(self, FormCreatePoinings):
        _translate = QtCore.QCoreApplication.translate
        FormCreatePoinings.setWindowTitle(_translate("FormCreatePoinings", "Create Pointings"))
        self.comboBox.setItemText(0, _translate("FormCreatePoinings", "M1"))
        self.comboBox.setItemText(1, _translate("FormCreatePoinings", "M13"))
        self.comboBox.setItemText(2, _translate("FormCreatePoinings", "M31"))
        self.comboBox.setItemText(3, _translate("FormCreatePoinings", "M45"))
        self.comboBox.setItemText(4, _translate("FormCreatePoinings", "M101"))
        self.label.setText(_translate("FormCreatePoinings", "RA"))
        self.label_2.setText(_translate("FormCreatePoinings", "DEC"))
        self.label_5.setText(_translate("FormCreatePoinings", "Create Pointings"))
marc's avatar
marc committed
124
125
126
127
        self.label_3.setText(_translate("FormCreatePoinings", "Distance between pointings (degree)"))
        self.label_9.setText(_translate("FormCreatePoinings", "Central Pointing"))
        self.label_6.setText(_translate("FormCreatePoinings", "Object"))
        self.label_8.setText(_translate("FormCreatePoinings", "Number of Steps"))
marc's avatar
marc committed
128
129
130
131
132
133
134
135
136
137
138


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    FormCreatePoinings = QtWidgets.QWidget()
    ui = Ui_FormCreatePoinings()
    ui.setupUi(FormCreatePoinings)
    FormCreatePoinings.show()
    sys.exit(app.exec_())