Commit bd4561d9 authored by marc's avatar marc
Browse files

update of GUI adding drop down combo list

parent 247c3f2d
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/dtobswindow.ui' # Form implementation generated from reading ui file 'dtobswindow.ui'
# #
# Created by: PyQt5 UI code generator 5.5.1 # Created by: PyQt5 UI code generator 5.5.1
# #
...@@ -23,7 +23,7 @@ class Ui_mainWindow(object): ...@@ -23,7 +23,7 @@ class Ui_mainWindow(object):
self.toolBox.setFrameShape(QtWidgets.QFrame.NoFrame) self.toolBox.setFrameShape(QtWidgets.QFrame.NoFrame)
self.toolBox.setObjectName("toolBox") self.toolBox.setObjectName("toolBox")
self.toolBoxMeasurement = QtWidgets.QWidget() self.toolBoxMeasurement = QtWidgets.QWidget()
self.toolBoxMeasurement.setGeometry(QtCore.QRect(0, 0, 280, 457)) self.toolBoxMeasurement.setGeometry(QtCore.QRect(0, 0, 280, 450))
self.toolBoxMeasurement.setObjectName("toolBoxMeasurement") self.toolBoxMeasurement.setObjectName("toolBoxMeasurement")
self.groupBox_2 = QtWidgets.QGroupBox(self.toolBoxMeasurement) self.groupBox_2 = QtWidgets.QGroupBox(self.toolBoxMeasurement)
self.groupBox_2.setGeometry(QtCore.QRect(0, 0, 280, 161)) self.groupBox_2.setGeometry(QtCore.QRect(0, 0, 280, 161))
...@@ -47,6 +47,9 @@ class Ui_mainWindow(object): ...@@ -47,6 +47,9 @@ class Ui_mainWindow(object):
self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
self.comboBoxProgramma = QtWidgets.QComboBox(self.gridLayoutWidget) self.comboBoxProgramma = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBoxProgramma.setObjectName("comboBoxProgramma") self.comboBoxProgramma.setObjectName("comboBoxProgramma")
self.comboBoxProgramma.addItem("")
self.comboBoxProgramma.addItem("")
self.comboBoxProgramma.addItem("")
self.gridLayout_2.addWidget(self.comboBoxProgramma, 0, 1, 1, 1) self.gridLayout_2.addWidget(self.comboBoxProgramma, 0, 1, 1, 1)
self.spinBoxIntTime = QtWidgets.QSpinBox(self.gridLayoutWidget) self.spinBoxIntTime = QtWidgets.QSpinBox(self.gridLayoutWidget)
self.spinBoxIntTime.setMinimum(1) self.spinBoxIntTime.setMinimum(1)
...@@ -59,7 +62,7 @@ class Ui_mainWindow(object): ...@@ -59,7 +62,7 @@ class Ui_mainWindow(object):
self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
self.toolBox.addItem(self.toolBoxMeasurement, "") self.toolBox.addItem(self.toolBoxMeasurement, "")
self.toolBoxBackEnd = QtWidgets.QWidget() self.toolBoxBackEnd = QtWidgets.QWidget()
self.toolBoxBackEnd.setGeometry(QtCore.QRect(0, 0, 280, 457)) self.toolBoxBackEnd.setGeometry(QtCore.QRect(0, 0, 280, 450))
self.toolBoxBackEnd.setObjectName("toolBoxBackEnd") self.toolBoxBackEnd.setObjectName("toolBoxBackEnd")
self.groupBox = QtWidgets.QGroupBox(self.toolBoxBackEnd) self.groupBox = QtWidgets.QGroupBox(self.toolBoxBackEnd)
self.groupBox.setEnabled(True) self.groupBox.setEnabled(True)
...@@ -164,16 +167,26 @@ class Ui_mainWindow(object): ...@@ -164,16 +167,26 @@ class Ui_mainWindow(object):
self.gridLayout.addWidget(self.tableWidgetPointings, 6, 1, 1, 1) self.gridLayout.addWidget(self.tableWidgetPointings, 6, 1, 1, 1)
mainWindow.setCentralWidget(self.centralwidget) mainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(mainWindow) self.menubar = QtWidgets.QMenuBar(mainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 856, 29)) self.menubar.setGeometry(QtCore.QRect(0, 0, 856, 30))
self.menubar.setObjectName("menubar") self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile") self.menuFile.setObjectName("menuFile")
self.menuTemplates = QtWidgets.QMenu(self.menuFile)
self.menuTemplates.setObjectName("menuTemplates")
self.menuEdit = QtWidgets.QMenu(self.menubar) self.menuEdit = QtWidgets.QMenu(self.menubar)
self.menuEdit.setObjectName("menuEdit") self.menuEdit.setObjectName("menuEdit")
self.menuHelp = QtWidgets.QMenu(self.menubar) self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp") self.menuHelp.setObjectName("menuHelp")
self.menuCalibration = QtWidgets.QMenu(self.menubar) self.menuCalibration = QtWidgets.QMenu(self.menubar)
self.menuCalibration.setObjectName("menuCalibration") self.menuCalibration.setObjectName("menuCalibration")
self.menuObjects = QtWidgets.QMenu(self.menubar)
self.menuObjects.setObjectName("menuObjects")
self.menuNoise_Sources = QtWidgets.QMenu(self.menuObjects)
self.menuNoise_Sources.setObjectName("menuNoise_Sources")
self.menuHI_Sources = QtWidgets.QMenu(self.menuObjects)
self.menuHI_Sources.setObjectName("menuHI_Sources")
self.menuPulsars = QtWidgets.QMenu(self.menuObjects)
self.menuPulsars.setObjectName("menuPulsars")
mainWindow.setMenuBar(self.menubar) mainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(mainWindow) self.statusbar = QtWidgets.QStatusBar(mainWindow)
self.statusbar.setObjectName("statusbar") self.statusbar.setObjectName("statusbar")
...@@ -194,7 +207,30 @@ class Ui_mainWindow(object): ...@@ -194,7 +207,30 @@ class Ui_mainWindow(object):
self.actionSetup.setObjectName("actionSetup") self.actionSetup.setObjectName("actionSetup")
self.actionControl = QtWidgets.QAction(mainWindow) self.actionControl = QtWidgets.QAction(mainWindow)
self.actionControl.setObjectName("actionControl") self.actionControl.setObjectName("actionControl")
self.actionCAS_A_2 = QtWidgets.QAction(mainWindow)
self.actionCAS_A_2.setObjectName("actionCAS_A_2")
self.actionTau_A = QtWidgets.QAction(mainWindow)
self.actionTau_A.setObjectName("actionTau_A")
self.actionCyg_A = QtWidgets.QAction(mainWindow)
self.actionCyg_A.setObjectName("actionCyg_A")
self.actionCAS_A_3 = QtWidgets.QAction(mainWindow)
self.actionCAS_A_3.setObjectName("actionCAS_A_3")
self.actionM31 = QtWidgets.QAction(mainWindow)
self.actionM31.setObjectName("actionM31")
self.actionGalaxy = QtWidgets.QAction(mainWindow)
self.actionGalaxy.setObjectName("actionGalaxy")
self.actionB0239_54 = QtWidgets.QAction(mainWindow)
self.actionB0239_54.setObjectName("actionB0239_54")
self.actionCrab_Pulsar = QtWidgets.QAction(mainWindow)
self.actionCrab_Pulsar.setObjectName("actionCrab_Pulsar")
self.actionM31_2 = QtWidgets.QAction(mainWindow)
self.actionM31_2.setObjectName("actionM31_2")
self.actionM101 = QtWidgets.QAction(mainWindow)
self.actionM101.setObjectName("actionM101")
self.menuTemplates.addAction(self.actionM31_2)
self.menuTemplates.addAction(self.actionM101)
self.menuFile.addAction(self.actionOpen) self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.menuTemplates.menuAction())
self.menuFile.addAction(self.actionSave) self.menuFile.addAction(self.actionSave)
self.menuFile.addAction(self.actionSave_As) self.menuFile.addAction(self.actionSave_As)
self.menuFile.addSeparator() self.menuFile.addSeparator()
...@@ -203,9 +239,21 @@ class Ui_mainWindow(object): ...@@ -203,9 +239,21 @@ class Ui_mainWindow(object):
self.menuHelp.addAction(self.actionAbout) self.menuHelp.addAction(self.actionAbout)
self.menuCalibration.addAction(self.actionSetup) self.menuCalibration.addAction(self.actionSetup)
self.menuCalibration.addAction(self.actionControl) self.menuCalibration.addAction(self.actionControl)
self.menuNoise_Sources.addAction(self.actionCAS_A_2)
self.menuNoise_Sources.addAction(self.actionTau_A)
self.menuNoise_Sources.addAction(self.actionCyg_A)
self.menuHI_Sources.addAction(self.actionCAS_A_3)
self.menuHI_Sources.addAction(self.actionM31)
self.menuHI_Sources.addAction(self.actionGalaxy)
self.menuPulsars.addAction(self.actionB0239_54)
self.menuPulsars.addAction(self.actionCrab_Pulsar)
self.menuObjects.addAction(self.menuNoise_Sources.menuAction())
self.menuObjects.addAction(self.menuHI_Sources.menuAction())
self.menuObjects.addAction(self.menuPulsars.menuAction())
self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuEdit.menuAction()) self.menubar.addAction(self.menuEdit.menuAction())
self.menubar.addAction(self.menuCalibration.menuAction()) self.menubar.addAction(self.menuCalibration.menuAction())
self.menubar.addAction(self.menuObjects.menuAction())
self.menubar.addAction(self.menuHelp.menuAction()) self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(mainWindow) self.retranslateUi(mainWindow)
...@@ -217,6 +265,10 @@ class Ui_mainWindow(object): ...@@ -217,6 +265,10 @@ class Ui_mainWindow(object):
mainWindow.setWindowTitle(_translate("mainWindow", "DT Observation Application")) mainWindow.setWindowTitle(_translate("mainWindow", "DT Observation Application"))
self.label.setText(_translate("mainWindow", " Result directory: ")) self.label.setText(_translate("mainWindow", " Result directory: "))
self.label_2.setText(_translate("mainWindow", " Programme: ")) self.label_2.setText(_translate("mainWindow", " Programme: "))
self.comboBoxProgramma.setCurrentText(_translate("mainWindow", "dumpwide"))
self.comboBoxProgramma.setItemText(0, _translate("mainWindow", "dumpwide"))
self.comboBoxProgramma.setItemText(1, _translate("mainWindow", "int32bit"))
self.comboBoxProgramma.setItemText(2, _translate("mainWindow", "rawrecord"))
self.label_3.setText(_translate("mainWindow", " Integration Time: ")) self.label_3.setText(_translate("mainWindow", " Integration Time: "))
self.toolBox.setItemText(self.toolBox.indexOf(self.toolBoxMeasurement), _translate("mainWindow", "Measurement Settings")) self.toolBox.setItemText(self.toolBox.indexOf(self.toolBoxMeasurement), _translate("mainWindow", "Measurement Settings"))
self.groupBox.setTitle(_translate("mainWindow", "Mode")) self.groupBox.setTitle(_translate("mainWindow", "Mode"))
...@@ -236,9 +288,14 @@ class Ui_mainWindow(object): ...@@ -236,9 +288,14 @@ class Ui_mainWindow(object):
item = self.tableWidgetPointings.horizontalHeaderItem(2) item = self.tableWidgetPointings.horizontalHeaderItem(2)
item.setText(_translate("mainWindow", "Status")) item.setText(_translate("mainWindow", "Status"))
self.menuFile.setTitle(_translate("mainWindow", "Fi&le")) self.menuFile.setTitle(_translate("mainWindow", "Fi&le"))
self.menuTemplates.setTitle(_translate("mainWindow", "Templates"))
self.menuEdit.setTitle(_translate("mainWindow", "E&dit")) self.menuEdit.setTitle(_translate("mainWindow", "E&dit"))
self.menuHelp.setTitle(_translate("mainWindow", "Help")) self.menuHelp.setTitle(_translate("mainWindow", "Help"))
self.menuCalibration.setTitle(_translate("mainWindow", "&Calibration")) self.menuCalibration.setTitle(_translate("mainWindow", "&Calibration"))
self.menuObjects.setTitle(_translate("mainWindow", "Ob&jects"))
self.menuNoise_Sources.setTitle(_translate("mainWindow", "Noise Sources"))
self.menuHI_Sources.setTitle(_translate("mainWindow", "HI Sources"))
self.menuPulsars.setTitle(_translate("mainWindow", "Pulsars"))
self.actionOpen.setText(_translate("mainWindow", "&Open")) self.actionOpen.setText(_translate("mainWindow", "&Open"))
self.actionSave.setText(_translate("mainWindow", "&Save")) self.actionSave.setText(_translate("mainWindow", "&Save"))
self.actionSave_As.setText(_translate("mainWindow", "Sa&ve As")) self.actionSave_As.setText(_translate("mainWindow", "Sa&ve As"))
...@@ -247,14 +304,14 @@ class Ui_mainWindow(object): ...@@ -247,14 +304,14 @@ class Ui_mainWindow(object):
self.actionAbout.setText(_translate("mainWindow", "&About")) self.actionAbout.setText(_translate("mainWindow", "&About"))
self.actionSetup.setText(_translate("mainWindow", "&Setup")) self.actionSetup.setText(_translate("mainWindow", "&Setup"))
self.actionControl.setText(_translate("mainWindow", "&Control")) self.actionControl.setText(_translate("mainWindow", "&Control"))
self.actionCAS_A_2.setText(_translate("mainWindow", "CAS A"))
self.actionTau_A.setText(_translate("mainWindow", "Tau A"))
if __name__ == "__main__": self.actionCyg_A.setText(_translate("mainWindow", "Cyg A"))
import sys self.actionCAS_A_3.setText(_translate("mainWindow", "CAS A"))
app = QtWidgets.QApplication(sys.argv) self.actionM31.setText(_translate("mainWindow", "M31"))
mainWindow = QtWidgets.QMainWindow() self.actionGalaxy.setText(_translate("mainWindow", "Galaxy"))
ui = Ui_mainWindow() self.actionB0239_54.setText(_translate("mainWindow", "B0239+54"))
ui.setupUi(mainWindow) self.actionCrab_Pulsar.setText(_translate("mainWindow", "Crab Pulsar"))
mainWindow.show() self.actionM31_2.setText(_translate("mainWindow", "M31"))
sys.exit(app.exec_()) self.actionM101.setText(_translate("mainWindow", "M101"))
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>280</width> <width>280</width>
<height>457</height> <height>450</height>
</rect> </rect>
</property> </property>
<attribute name="label"> <attribute name="label">
...@@ -99,7 +99,26 @@ ...@@ -99,7 +99,26 @@
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QComboBox" name="comboBoxProgramma"/> <widget class="QComboBox" name="comboBoxProgramma">
<property name="currentText">
<string>dumpwide</string>
</property>
<item>
<property name="text">
<string>dumpwide</string>
</property>
</item>
<item>
<property name="text">
<string>int32bit</string>
</property>
</item>
<item>
<property name="text">
<string>rawrecord</string>
</property>
</item>
</widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QSpinBox" name="spinBoxIntTime"> <widget class="QSpinBox" name="spinBoxIntTime">
...@@ -131,7 +150,7 @@ ...@@ -131,7 +150,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>280</width> <width>280</width>
<height>457</height> <height>450</height>
</rect> </rect>
</property> </property>
<attribute name="label"> <attribute name="label">
...@@ -407,14 +426,22 @@ ...@@ -407,14 +426,22 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>856</width> <width>856</width>
<height>29</height> <height>30</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">
<property name="title"> <property name="title">
<string>Fi&amp;le</string> <string>Fi&amp;le</string>
</property> </property>
<widget class="QMenu" name="menuTemplates">
<property name="title">
<string>Templates</string>
</property>
<addaction name="actionM31_2"/>
<addaction name="actionM101"/>
</widget>
<addaction name="actionOpen"/> <addaction name="actionOpen"/>
<addaction name="menuTemplates"/>
<addaction name="actionSave"/> <addaction name="actionSave"/>
<addaction name="actionSave_As"/> <addaction name="actionSave_As"/>
<addaction name="separator"/> <addaction name="separator"/>
...@@ -439,9 +466,41 @@ ...@@ -439,9 +466,41 @@
<addaction name="actionSetup"/> <addaction name="actionSetup"/>
<addaction name="actionControl"/> <addaction name="actionControl"/>
</widget> </widget>
<widget class="QMenu" name="menuObjects">
<property name="title">
<string>Ob&amp;jects</string>
</property>
<widget class="QMenu" name="menuNoise_Sources">
<property name="title">
<string>Noise Sources</string>
</property>
<addaction name="actionCAS_A_2"/>
<addaction name="actionTau_A"/>
<addaction name="actionCyg_A"/>
</widget>
<widget class="QMenu" name="menuHI_Sources">
<property name="title">
<string>HI Sources</string>
</property>
<addaction name="actionCAS_A_3"/>
<addaction name="actionM31"/>
<addaction name="actionGalaxy"/>
</widget>
<widget class="QMenu" name="menuPulsars">
<property name="title">
<string>Pulsars</string>
</property>
<addaction name="actionB0239_54"/>
<addaction name="actionCrab_Pulsar"/>
</widget>
<addaction name="menuNoise_Sources"/>
<addaction name="menuHI_Sources"/>
<addaction name="menuPulsars"/>
</widget>
<addaction name="menuFile"/> <addaction name="menuFile"/>
<addaction name="menuEdit"/> <addaction name="menuEdit"/>
<addaction name="menuCalibration"/> <addaction name="menuCalibration"/>
<addaction name="menuObjects"/>
<addaction name="menuHelp"/> <addaction name="menuHelp"/>
</widget> </widget>
<widget class="QStatusBar" name="statusbar"/> <widget class="QStatusBar" name="statusbar"/>
...@@ -485,6 +544,56 @@ ...@@ -485,6 +544,56 @@
<string>&amp;Control</string> <string>&amp;Control</string>
</property> </property>
</action> </action>
<action name="actionCAS_A_2">
<property name="text">
<string>CAS A</string>
</property>
</action>
<action name="actionTau_A">
<property name="text">
<string>Tau A</string>
</property>
</action>
<action name="actionCyg_A">
<property name="text">
<string>Cyg A</string>
</property>
</action>
<action name="actionCAS_A_3">
<property name="text">
<string>CAS A</string>
</property>
</action>
<action name="actionM31">
<property name="text">
<string>M31</string>
</property>
</action>
<action name="actionGalaxy">
<property name="text">
<string>Galaxy</string>
</property>
</action>
<action name="actionB0239_54">
<property name="text">
<string>B0239+54</string>
</property>
</action>
<action name="actionCrab_Pulsar">
<property name="text">
<string>Crab Pulsar</string>
</property>
</action>
<action name="actionM31_2">
<property name="text">
<string>M31</string>
</property>
</action>
<action name="actionM101">
<property name="text">
<string>M101</string>
</property>
</action>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>
......
Supports Markdown
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