Commit 99ff93a8 authored by marc's avatar marc
Browse files

swap RA DEC lineEdit

parent 19bef4e3
...@@ -40,29 +40,21 @@ class Ui_FormCreatePoinings(object): ...@@ -40,29 +40,21 @@ class Ui_FormCreatePoinings(object):
self.label_5 = QtWidgets.QLabel(self.layoutWidget) self.label_5 = QtWidgets.QLabel(self.layoutWidget)
self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setAlignment(QtCore.Qt.AlignCenter)
self.label_5.setObjectName("label_5") self.label_5.setObjectName("label_5")
self.gridLayout.addWidget(self.label_5, 6, 0, 1, 1) self.gridLayout.addWidget(self.label_5, 7, 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) self.label_3 = QtWidgets.QLabel(self.layoutWidget)
self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setWordWrap(True) self.label_3.setWordWrap(True)
self.label_3.setObjectName("label_3") self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1)
self.buttonBoxCreatePointings = QtWidgets.QDialogButtonBox(self.layoutWidget) self.buttonBoxCreatePointings = QtWidgets.QDialogButtonBox(self.layoutWidget)
self.buttonBoxCreatePointings.setStandardButtons(QtWidgets.QDialogButtonBox.Close|QtWidgets.QDialogButtonBox.Ok) self.buttonBoxCreatePointings.setStandardButtons(QtWidgets.QDialogButtonBox.Close|QtWidgets.QDialogButtonBox.Ok)
self.buttonBoxCreatePointings.setObjectName("buttonBoxCreatePointings") self.buttonBoxCreatePointings.setObjectName("buttonBoxCreatePointings")
self.gridLayout.addWidget(self.buttonBoxCreatePointings, 6, 1, 1, 1) self.gridLayout.addWidget(self.buttonBoxCreatePointings, 7, 1, 1, 1)
self.label_9 = QtWidgets.QLabel(self.layoutWidget) self.label_9 = QtWidgets.QLabel(self.layoutWidget)
self.label_9.setAlignment(QtCore.Qt.AlignCenter) self.label_9.setAlignment(QtCore.Qt.AlignCenter)
self.label_9.setWordWrap(True) self.label_9.setWordWrap(True)
self.label_9.setObjectName("label_9") self.label_9.setObjectName("label_9")
self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) 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 = QtWidgets.QLabel(self.layoutWidget)
self.label_6.setAlignment(QtCore.Qt.AlignCenter) self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setObjectName("label_6") self.label_6.setObjectName("label_6")
...@@ -71,7 +63,7 @@ class Ui_FormCreatePoinings(object): ...@@ -71,7 +63,7 @@ class Ui_FormCreatePoinings(object):
self.label_8.setAlignment(QtCore.Qt.AlignCenter) self.label_8.setAlignment(QtCore.Qt.AlignCenter)
self.label_8.setWordWrap(True) self.label_8.setWordWrap(True)
self.label_8.setObjectName("label_8") self.label_8.setObjectName("label_8")
self.gridLayout.addWidget(self.label_8, 3, 0, 1, 1) self.gridLayout.addWidget(self.label_8, 4, 0, 1, 1)
self.doubleSpinBoxDistanceRA = QtWidgets.QDoubleSpinBox(self.layoutWidget) self.doubleSpinBoxDistanceRA = QtWidgets.QDoubleSpinBox(self.layoutWidget)
self.doubleSpinBoxDistanceRA.setAlignment(QtCore.Qt.AlignCenter) self.doubleSpinBoxDistanceRA.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBoxDistanceRA.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.doubleSpinBoxDistanceRA.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
...@@ -80,7 +72,7 @@ class Ui_FormCreatePoinings(object): ...@@ -80,7 +72,7 @@ class Ui_FormCreatePoinings(object):
self.doubleSpinBoxDistanceRA.setSingleStep(0.1) self.doubleSpinBoxDistanceRA.setSingleStep(0.1)
self.doubleSpinBoxDistanceRA.setProperty("value", 0.5) self.doubleSpinBoxDistanceRA.setProperty("value", 0.5)
self.doubleSpinBoxDistanceRA.setObjectName("doubleSpinBoxDistanceRA") self.doubleSpinBoxDistanceRA.setObjectName("doubleSpinBoxDistanceRA")
self.gridLayout.addWidget(self.doubleSpinBoxDistanceRA, 4, 1, 1, 1) self.gridLayout.addWidget(self.doubleSpinBoxDistanceRA, 5, 1, 1, 1)
self.doubleSpinBoxDistanceDec = QtWidgets.QDoubleSpinBox(self.layoutWidget) self.doubleSpinBoxDistanceDec = QtWidgets.QDoubleSpinBox(self.layoutWidget)
self.doubleSpinBoxDistanceDec.setAlignment(QtCore.Qt.AlignCenter) self.doubleSpinBoxDistanceDec.setAlignment(QtCore.Qt.AlignCenter)
self.doubleSpinBoxDistanceDec.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.doubleSpinBoxDistanceDec.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
...@@ -89,19 +81,27 @@ class Ui_FormCreatePoinings(object): ...@@ -89,19 +81,27 @@ class Ui_FormCreatePoinings(object):
self.doubleSpinBoxDistanceDec.setSingleStep(0.1) self.doubleSpinBoxDistanceDec.setSingleStep(0.1)
self.doubleSpinBoxDistanceDec.setProperty("value", 0.5) self.doubleSpinBoxDistanceDec.setProperty("value", 0.5)
self.doubleSpinBoxDistanceDec.setObjectName("doubleSpinBoxDistanceDec") self.doubleSpinBoxDistanceDec.setObjectName("doubleSpinBoxDistanceDec")
self.gridLayout.addWidget(self.doubleSpinBoxDistanceDec, 4, 2, 1, 1) self.gridLayout.addWidget(self.doubleSpinBoxDistanceDec, 5, 2, 1, 1)
self.spinBoxStepsRA = QtWidgets.QSpinBox(self.layoutWidget) self.spinBoxStepsRA = QtWidgets.QSpinBox(self.layoutWidget)
self.spinBoxStepsRA.setAlignment(QtCore.Qt.AlignCenter) self.spinBoxStepsRA.setAlignment(QtCore.Qt.AlignCenter)
self.spinBoxStepsRA.setMaximum(30) self.spinBoxStepsRA.setMaximum(30)
self.spinBoxStepsRA.setProperty("value", 1) self.spinBoxStepsRA.setProperty("value", 1)
self.spinBoxStepsRA.setObjectName("spinBoxStepsRA") self.spinBoxStepsRA.setObjectName("spinBoxStepsRA")
self.gridLayout.addWidget(self.spinBoxStepsRA, 3, 1, 1, 1) self.gridLayout.addWidget(self.spinBoxStepsRA, 4, 1, 1, 1)
self.spinBoxStepsDec = QtWidgets.QSpinBox(self.layoutWidget) self.spinBoxStepsDec = QtWidgets.QSpinBox(self.layoutWidget)
self.spinBoxStepsDec.setAlignment(QtCore.Qt.AlignCenter) self.spinBoxStepsDec.setAlignment(QtCore.Qt.AlignCenter)
self.spinBoxStepsDec.setMaximum(30) self.spinBoxStepsDec.setMaximum(30)
self.spinBoxStepsDec.setProperty("value", 1) self.spinBoxStepsDec.setProperty("value", 1)
self.spinBoxStepsDec.setObjectName("spinBoxStepsDec") self.spinBoxStepsDec.setObjectName("spinBoxStepsDec")
self.gridLayout.addWidget(self.spinBoxStepsDec, 3, 2, 1, 1) 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)
self.retranslateUi(FormCreatePoinings) self.retranslateUi(FormCreatePoinings)
QtCore.QMetaObject.connectSlotsByName(FormCreatePoinings) QtCore.QMetaObject.connectSlotsByName(FormCreatePoinings)
...@@ -109,8 +109,6 @@ class Ui_FormCreatePoinings(object): ...@@ -109,8 +109,6 @@ class Ui_FormCreatePoinings(object):
FormCreatePoinings.setTabOrder(self.spinBoxStepsRA, self.spinBoxStepsDec) FormCreatePoinings.setTabOrder(self.spinBoxStepsRA, self.spinBoxStepsDec)
FormCreatePoinings.setTabOrder(self.spinBoxStepsDec, self.doubleSpinBoxDistanceRA) FormCreatePoinings.setTabOrder(self.spinBoxStepsDec, self.doubleSpinBoxDistanceRA)
FormCreatePoinings.setTabOrder(self.doubleSpinBoxDistanceRA, self.doubleSpinBoxDistanceDec) FormCreatePoinings.setTabOrder(self.doubleSpinBoxDistanceRA, self.doubleSpinBoxDistanceDec)
FormCreatePoinings.setTabOrder(self.doubleSpinBoxDistanceDec, self.lineEditDec)
FormCreatePoinings.setTabOrder(self.lineEditDec, self.lineEditRA)
def retranslateUi(self, FormCreatePoinings): def retranslateUi(self, FormCreatePoinings):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="7" column="0">
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="text"> <property name="text">
<string>Create Pointings</string> <string>Create Pointings</string>
...@@ -97,14 +97,7 @@ ...@@ -97,14 +97,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2"> <item row="5" column="0">
<widget class="QLineEdit" name="lineEditRA">
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Distance between pointings (degree)</string> <string>Distance between pointings (degree)</string>
...@@ -117,7 +110,7 @@ ...@@ -117,7 +110,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="7" column="1">
<widget class="QDialogButtonBox" name="buttonBoxCreatePointings"> <widget class="QDialogButtonBox" name="buttonBoxCreatePointings">
<property name="standardButtons"> <property name="standardButtons">
<set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set> <set>QDialogButtonBox::Close|QDialogButtonBox::Ok</set>
...@@ -137,13 +130,6 @@ ...@@ -137,13 +130,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineEditDec">
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
...@@ -154,7 +140,7 @@ ...@@ -154,7 +140,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="4" column="0">
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="label_8">
<property name="text"> <property name="text">
<string>Number of Steps</string> <string>Number of Steps</string>
...@@ -167,7 +153,7 @@ ...@@ -167,7 +153,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="5" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBoxDistanceRA"> <widget class="QDoubleSpinBox" name="doubleSpinBoxDistanceRA">
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
...@@ -189,7 +175,7 @@ ...@@ -189,7 +175,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="2"> <item row="5" column="2">
<widget class="QDoubleSpinBox" name="doubleSpinBoxDistanceDec"> <widget class="QDoubleSpinBox" name="doubleSpinBoxDistanceDec">
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
...@@ -211,7 +197,7 @@ ...@@ -211,7 +197,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="4" column="1">
<widget class="QSpinBox" name="spinBoxStepsRA"> <widget class="QSpinBox" name="spinBoxStepsRA">
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
...@@ -224,7 +210,7 @@ ...@@ -224,7 +210,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="2"> <item row="4" column="2">
<widget class="QSpinBox" name="spinBoxStepsDec"> <widget class="QSpinBox" name="spinBoxStepsDec">
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
...@@ -237,6 +223,20 @@ ...@@ -237,6 +223,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineEditRA">
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="lineEditDec">
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</widget> </widget>
...@@ -246,8 +246,6 @@ ...@@ -246,8 +246,6 @@
<tabstop>spinBoxStepsDec</tabstop> <tabstop>spinBoxStepsDec</tabstop>
<tabstop>doubleSpinBoxDistanceRA</tabstop> <tabstop>doubleSpinBoxDistanceRA</tabstop>
<tabstop>doubleSpinBoxDistanceDec</tabstop> <tabstop>doubleSpinBoxDistanceDec</tabstop>
<tabstop>lineEditDec</tabstop>
<tabstop>lineEditRA</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
<connections/> <connections/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment