Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
marc
dtObsGUI
Commits
bd4561d9
Commit
bd4561d9
authored
Oct 07, 2017
by
marc
Browse files
update of GUI adding drop down combo list
parent
247c3f2d
Changes
3
Show whitespace changes
Inline
Side-by-side
ui/__pycache__/dtobswindow.cpython-34.pyc
View file @
bd4561d9
No preview for this file type
ui/dtobswindow.py
View file @
bd4561d9
# -*- 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
#
...
...
@@ -23,7 +23,7 @@ class Ui_mainWindow(object):
self
.
toolBox
.
setFrameShape
(
QtWidgets
.
QFrame
.
NoFrame
)
self
.
toolBox
.
setObjectName
(
"toolBox"
)
self
.
toolBoxMeasurement
=
QtWidgets
.
QWidget
()
self
.
toolBoxMeasurement
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
45
7
))
self
.
toolBoxMeasurement
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
45
0
))
self
.
toolBoxMeasurement
.
setObjectName
(
"toolBoxMeasurement"
)
self
.
groupBox_2
=
QtWidgets
.
QGroupBox
(
self
.
toolBoxMeasurement
)
self
.
groupBox_2
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
161
))
...
...
@@ -47,6 +47,9 @@ class Ui_mainWindow(object):
self
.
gridLayout_2
.
addWidget
(
self
.
label_2
,
0
,
0
,
1
,
1
)
self
.
comboBoxProgramma
=
QtWidgets
.
QComboBox
(
self
.
gridLayoutWidget
)
self
.
comboBoxProgramma
.
setObjectName
(
"comboBoxProgramma"
)
self
.
comboBoxProgramma
.
addItem
(
""
)
self
.
comboBoxProgramma
.
addItem
(
""
)
self
.
comboBoxProgramma
.
addItem
(
""
)
self
.
gridLayout_2
.
addWidget
(
self
.
comboBoxProgramma
,
0
,
1
,
1
,
1
)
self
.
spinBoxIntTime
=
QtWidgets
.
QSpinBox
(
self
.
gridLayoutWidget
)
self
.
spinBoxIntTime
.
setMinimum
(
1
)
...
...
@@ -59,7 +62,7 @@ class Ui_mainWindow(object):
self
.
gridLayout_2
.
addWidget
(
self
.
label_3
,
2
,
0
,
1
,
1
)
self
.
toolBox
.
addItem
(
self
.
toolBoxMeasurement
,
""
)
self
.
toolBoxBackEnd
=
QtWidgets
.
QWidget
()
self
.
toolBoxBackEnd
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
45
7
))
self
.
toolBoxBackEnd
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
45
0
))
self
.
toolBoxBackEnd
.
setObjectName
(
"toolBoxBackEnd"
)
self
.
groupBox
=
QtWidgets
.
QGroupBox
(
self
.
toolBoxBackEnd
)
self
.
groupBox
.
setEnabled
(
True
)
...
...
@@ -164,16 +167,26 @@ class Ui_mainWindow(object):
self
.
gridLayout
.
addWidget
(
self
.
tableWidgetPointings
,
6
,
1
,
1
,
1
)
mainWindow
.
setCentralWidget
(
self
.
centralwidget
)
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
.
menuFile
=
QtWidgets
.
QMenu
(
self
.
menubar
)
self
.
menuFile
.
setObjectName
(
"menuFile"
)
self
.
menuTemplates
=
QtWidgets
.
QMenu
(
self
.
menuFile
)
self
.
menuTemplates
.
setObjectName
(
"menuTemplates"
)
self
.
menuEdit
=
QtWidgets
.
QMenu
(
self
.
menubar
)
self
.
menuEdit
.
setObjectName
(
"menuEdit"
)
self
.
menuHelp
=
QtWidgets
.
QMenu
(
self
.
menubar
)
self
.
menuHelp
.
setObjectName
(
"menuHelp"
)
self
.
menuCalibration
=
QtWidgets
.
QMenu
(
self
.
menubar
)
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
)
self
.
statusbar
=
QtWidgets
.
QStatusBar
(
mainWindow
)
self
.
statusbar
.
setObjectName
(
"statusbar"
)
...
...
@@ -194,7 +207,30 @@ class Ui_mainWindow(object):
self
.
actionSetup
.
setObjectName
(
"actionSetup"
)
self
.
actionControl
=
QtWidgets
.
QAction
(
mainWindow
)
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
.
menuTemplates
.
menuAction
())
self
.
menuFile
.
addAction
(
self
.
actionSave
)
self
.
menuFile
.
addAction
(
self
.
actionSave_As
)
self
.
menuFile
.
addSeparator
()
...
...
@@ -203,9 +239,21 @@ class Ui_mainWindow(object):
self
.
menuHelp
.
addAction
(
self
.
actionAbout
)
self
.
menuCalibration
.
addAction
(
self
.
actionSetup
)
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
.
menuEdit
.
menuAction
())
self
.
menubar
.
addAction
(
self
.
menuCalibration
.
menuAction
())
self
.
menubar
.
addAction
(
self
.
menuObjects
.
menuAction
())
self
.
menubar
.
addAction
(
self
.
menuHelp
.
menuAction
())
self
.
retranslateUi
(
mainWindow
)
...
...
@@ -217,6 +265,10 @@ class Ui_mainWindow(object):
mainWindow
.
setWindowTitle
(
_translate
(
"mainWindow"
,
"DT Observation Application"
))
self
.
label
.
setText
(
_translate
(
"mainWindow"
,
" Result directory: "
))
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
.
toolBox
.
setItemText
(
self
.
toolBox
.
indexOf
(
self
.
toolBoxMeasurement
),
_translate
(
"mainWindow"
,
"Measurement Settings"
))
self
.
groupBox
.
setTitle
(
_translate
(
"mainWindow"
,
"Mode"
))
...
...
@@ -236,9 +288,14 @@ class Ui_mainWindow(object):
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
2
)
item
.
setText
(
_translate
(
"mainWindow"
,
"Status"
))
self
.
menuFile
.
setTitle
(
_translate
(
"mainWindow"
,
"Fi&le"
))
self
.
menuTemplates
.
setTitle
(
_translate
(
"mainWindow"
,
"Templates"
))
self
.
menuEdit
.
setTitle
(
_translate
(
"mainWindow"
,
"E&dit"
))
self
.
menuHelp
.
setTitle
(
_translate
(
"mainWindow"
,
"Help"
))
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
.
actionSave
.
setText
(
_translate
(
"mainWindow"
,
"&Save"
))
self
.
actionSave_As
.
setText
(
_translate
(
"mainWindow"
,
"Sa&ve As"
))
...
...
@@ -247,14 +304,14 @@ class Ui_mainWindow(object):
self
.
actionAbout
.
setText
(
_translate
(
"mainWindow"
,
"&About"
))
self
.
actionSetup
.
setText
(
_translate
(
"mainWindow"
,
"&Setup"
))
self
.
actionControl
.
setText
(
_translate
(
"mainWindow"
,
"&Control"
))
if
__name__
==
"__main__"
:
import
sys
app
=
QtWidgets
.
QApplication
(
sys
.
argv
)
mainWindow
=
QtWidgets
.
QMainWindow
(
)
ui
=
Ui_mainWindow
(
)
ui
.
setupUi
(
mainWindow
)
mainWindow
.
show
(
)
s
ys
.
ex
i
t
(
app
.
exec_
(
))
self
.
actionCAS_A_2
.
setText
(
_translate
(
"mainWindow"
,
"CAS A"
))
self
.
actionTau_A
.
setText
(
_translate
(
"mainWindow"
,
"Tau A"
))
self
.
actionCyg_A
.
setText
(
_translate
(
"mainWindow"
,
"Cyg A"
))
self
.
actionCAS_A_3
.
setText
(
_translate
(
"mainWindow"
,
"CAS A"
))
self
.
actionM31
.
setText
(
_translate
(
"mainWindow"
,
"M31"
)
)
self
.
actionGalaxy
.
setText
(
_translate
(
"mainWindow"
,
"Galaxy"
)
)
self
.
actionB0239_54
.
setText
(
_translate
(
"mainWindow"
,
"B0239+54"
)
)
self
.
actionCrab_Pulsar
.
setText
(
_translate
(
"mainWindow"
,
"Crab Pulsar"
)
)
self
.
actionM31_2
.
setText
(
_translate
(
"
mainWindow
"
,
"M31"
)
)
s
elf
.
actionM101
.
setT
ext
(
_translate
(
"mainWindow"
,
"M101"
))
ui/dtobswindow.ui
View file @
bd4561d9
...
...
@@ -44,7 +44,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
280
</width>
<height>
45
7
</height>
<height>
45
0
</height>
</rect>
</property>
<attribute
name=
"label"
>
...
...
@@ -99,7 +99,26 @@
</widget>
</item>
<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
row=
"2"
column=
"1"
>
<widget
class=
"QSpinBox"
name=
"spinBoxIntTime"
>
...
...
@@ -131,7 +150,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
280
</width>
<height>
45
7
</height>
<height>
45
0
</height>
</rect>
</property>
<attribute
name=
"label"
>
...
...
@@ -407,14 +426,22 @@
<x>
0
</x>
<y>
0
</y>
<width>
856
</width>
<height>
29
</height>
<height>
30
</height>
</rect>
</property>
<widget
class=
"QMenu"
name=
"menuFile"
>
<property
name=
"title"
>
<string>
Fi
&
le
</string>
</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=
"menuTemplates"
/>
<addaction
name=
"actionSave"
/>
<addaction
name=
"actionSave_As"
/>
<addaction
name=
"separator"
/>
...
...
@@ -439,9 +466,41 @@
<addaction
name=
"actionSetup"
/>
<addaction
name=
"actionControl"
/>
</widget>
<widget
class=
"QMenu"
name=
"menuObjects"
>
<property
name=
"title"
>
<string>
Ob
&
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=
"menuEdit"
/>
<addaction
name=
"menuCalibration"
/>
<addaction
name=
"menuObjects"
/>
<addaction
name=
"menuHelp"
/>
</widget>
<widget
class=
"QStatusBar"
name=
"statusbar"
/>
...
...
@@ -485,6 +544,56 @@
<string>
&
Control
</string>
</property>
</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>
<resources/>
<connections/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment