ui_createpointings.py 7.65 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
15
16
17
18
19
20
        FormCreatePoinings.resize(590, 270)
        FormCreatePoinings.setMinimumSize(QtCore.QSize(590, 270))
        FormCreatePoinings.setMaximumSize(QtCore.QSize(590, 270))
        self.layoutWidget = QtWidgets.QWidget(FormCreatePoinings)
        self.layoutWidget.setGeometry(QtCore.QRect(11, 11, 571, 245))
        self.layoutWidget.setObjectName("layoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
marc's avatar
marc committed
21
        self.gridLayout.setObjectName("gridLayout")
marc's avatar
marc committed
22
23
24
25
        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
26
27
28
29
30
31
32
        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
33
        self.label = QtWidgets.QLabel(self.layoutWidget)
marc's avatar
marc committed
34
35
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
marc's avatar
marc committed
36
37
        self.gridLayout.addWidget(self.label, 1, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.layoutWidget)
marc's avatar
marc committed
38
39
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
marc's avatar
marc committed
40
41
42
43
44
45
46
47
48
49
        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")
        self.gridLayout.addWidget(self.label_5, 6, 0, 1, 1)
        self.lineEditRA = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEditRA.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEditRA.setObjectName("lineEditRA")
        self.gridLayout.addWidget(self.lineEditRA, 2, 2, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.layoutWidget)
marc's avatar
marc committed
50
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
marc's avatar
marc committed
51
        self.label_3.setWordWrap(True)
marc's avatar
marc committed
52
        self.label_3.setObjectName("label_3")
marc's avatar
marc committed
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.buttonBoxCreatePointings = QtWidgets.QDialogButtonBox(self.layoutWidget)
        self.buttonBoxCreatePointings.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBoxCreatePointings.setObjectName("buttonBoxCreatePointings")
        self.gridLayout.addWidget(self.buttonBoxCreatePointings, 6, 1, 1, 1)
        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.lineEditDec = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEditDec.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEditDec.setObjectName("lineEditDec")
        self.gridLayout.addWidget(self.lineEditDec, 2, 1, 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
74
        self.label_8.setObjectName("label_8")
marc's avatar
marc committed
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
        self.gridLayout.addWidget(self.label_8, 3, 0, 1, 1)
        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")
        self.gridLayout.addWidget(self.doubleSpinBoxDistanceRA, 4, 1, 1, 1)
        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")
        self.gridLayout.addWidget(self.doubleSpinBoxDistanceDec, 4, 2, 1, 1)
        self.spinBoxStepsRA = QtWidgets.QSpinBox(self.layoutWidget)
        self.spinBoxStepsRA.setAlignment(QtCore.Qt.AlignCenter)
        self.spinBoxStepsRA.setMaximum(30)
        self.spinBoxStepsRA.setObjectName("spinBoxStepsRA")
        self.gridLayout.addWidget(self.spinBoxStepsRA, 3, 1, 1, 1)
        self.spinBoxStepsDec = QtWidgets.QSpinBox(self.layoutWidget)
        self.spinBoxStepsDec.setAlignment(QtCore.Qt.AlignCenter)
        self.spinBoxStepsDec.setMaximum(30)
        self.spinBoxStepsDec.setObjectName("spinBoxStepsDec")
        self.gridLayout.addWidget(self.spinBoxStepsDec, 3, 2, 1, 1)
marc's avatar
marc committed
104
105
106

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

    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
125
126
127
128
        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
129
130
131
132
133
134
135
136
137
138
139


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_())