Skip to content
GitLab
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
f820400f
Commit
f820400f
authored
Oct 09, 2017
by
marc
Browse files
added meta data Observer and Description
parent
e682f755
Changes
4
Hide whitespace changes
Inline
Side-by-side
DTObs.py
View file @
f820400f
...
...
@@ -75,7 +75,7 @@ class DTObservationProgram(Ui_mainWindow):
self
.
pushButtonStartMeasurement
.
clicked
.
connect
(
self
.
startMeasurement
)
self
.
pushButtonStopMeasurement
.
clicked
.
connect
(
self
.
stopMeasurement
)
self
.
myDT
=
telescope
(
setmode
=
'J2000'
,
consoleHost
=
'consoledemo.dmz.camras.nl'
)
#
self.myDT = telescope(setmode='J2000', consoleHost='consoledemo.dmz.camras.nl')
self
.
threadpool
=
QThreadPool
()
...
...
@@ -157,10 +157,11 @@ class DTObservationProgram(Ui_mainWindow):
def
doMeasurement
(
self
,
measnum
,
progressSignal
=
None
):
""" Dumping data into file including meta-data"""
print
(
"start dump-wide"
)
integrationTime
=
self
.
spinBoxIntTime
.
value
()
measProgramme
=
self
.
comboBoxProgramma
.
currentText
()
measFile
=
open
(
str
(
measnum
),
'w'
)
#self.measprog = subprocess.Popen(["cat","/home_local/camrasdemo/test-001.txt"], stdout=subprocess.PIPE)
self
.
measprog
=
subprocess
.
Popen
([
"sleep"
,
str
(
integrationTime
)],
stdout
=
subprocess
.
PIPE
)
self
.
measprog
=
subprocess
.
Popen
([
str
(
measProgramme
)
,
str
(
integrationTime
)],
stdout
=
subprocess
.
PIPE
)
for
sec
in
range
(
integrationTime
):
remainstring
=
str
(
int
((
integrationTime
-
sec
)
/
60
))
+
":"
remainstring
+=
"{:02}"
.
format
((
integrationTime
-
sec
)
%
60
)
...
...
@@ -168,6 +169,8 @@ class DTObservationProgram(Ui_mainWindow):
time
.
sleep
(
1
)
self
.
measprog
.
wait
()
data
=
self
.
measprog
.
stdout
for
line
in
data
:
measFile
.
write
(
str
(
line
))
def
startMeasurement
(
self
):
print
(
"Measurement started"
)
...
...
ui/__pycache__/dtobswindow.cpython-34.pyc
View file @
f820400f
No preview for this file type
ui/dtobswindow.py
View file @
f820400f
...
...
@@ -16,17 +16,100 @@ class Ui_mainWindow(object):
self
.
centralwidget
.
setObjectName
(
"centralwidget"
)
self
.
gridLayout
=
QtWidgets
.
QGridLayout
(
self
.
centralwidget
)
self
.
gridLayout
.
setObjectName
(
"gridLayout"
)
self
.
pushButtonStartMeasurement
=
QtWidgets
.
QPushButton
(
self
.
centralwidget
)
palette
=
QtGui
.
QPalette
()
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
0
,
255
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Active
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
0
,
255
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Inactive
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
0
,
255
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Disabled
,
QtGui
.
QPalette
.
Button
,
brush
)
self
.
pushButtonStartMeasurement
.
setPalette
(
palette
)
self
.
pushButtonStartMeasurement
.
setObjectName
(
"pushButtonStartMeasurement"
)
self
.
gridLayout
.
addWidget
(
self
.
pushButtonStartMeasurement
,
7
,
0
,
1
,
1
)
self
.
label_4
=
QtWidgets
.
QLabel
(
self
.
centralwidget
)
self
.
label_4
.
setObjectName
(
"label_4"
)
self
.
gridLayout
.
addWidget
(
self
.
label_4
,
0
,
1
,
1
,
1
,
QtCore
.
Qt
.
AlignHCenter
)
self
.
pushButtonStopMeasurement
=
QtWidgets
.
QPushButton
(
self
.
centralwidget
)
palette
=
QtGui
.
QPalette
()
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
255
,
0
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Active
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
255
,
0
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Inactive
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
255
,
0
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Disabled
,
QtGui
.
QPalette
.
Button
,
brush
)
self
.
pushButtonStopMeasurement
.
setPalette
(
palette
)
self
.
pushButtonStopMeasurement
.
setObjectName
(
"pushButtonStopMeasurement"
)
self
.
gridLayout
.
addWidget
(
self
.
pushButtonStopMeasurement
,
8
,
0
,
1
,
1
)
self
.
tableWidgetPointings
=
QtWidgets
.
QTableWidget
(
self
.
centralwidget
)
self
.
tableWidgetPointings
.
setObjectName
(
"tableWidgetPointings"
)
self
.
tableWidgetPointings
.
setColumnCount
(
3
)
self
.
tableWidgetPointings
.
setRowCount
(
0
)
item
=
QtWidgets
.
QTableWidgetItem
()
item
.
setTextAlignment
(
QtCore
.
Qt
.
AlignCenter
)
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
item
.
setFont
(
font
)
item
.
setBackground
(
QtGui
.
QColor
(
255
,
170
,
127
))
self
.
tableWidgetPointings
.
setHorizontalHeaderItem
(
0
,
item
)
item
=
QtWidgets
.
QTableWidgetItem
()
item
.
setTextAlignment
(
QtCore
.
Qt
.
AlignCenter
)
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
item
.
setFont
(
font
)
item
.
setBackground
(
QtGui
.
QColor
(
255
,
170
,
127
))
self
.
tableWidgetPointings
.
setHorizontalHeaderItem
(
1
,
item
)
item
=
QtWidgets
.
QTableWidgetItem
()
item
.
setTextAlignment
(
QtCore
.
Qt
.
AlignCenter
)
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
item
.
setFont
(
font
)
item
.
setBackground
(
QtGui
.
QColor
(
255
,
170
,
127
))
self
.
tableWidgetPointings
.
setHorizontalHeaderItem
(
2
,
item
)
self
.
gridLayout
.
addWidget
(
self
.
tableWidgetPointings
,
6
,
1
,
1
,
1
)
self
.
toolBox
=
QtWidgets
.
QToolBox
(
self
.
centralwidget
)
self
.
toolBox
.
setEnabled
(
True
)
self
.
toolBox
.
setMinimumSize
(
QtCore
.
QSize
(
280
,
0
))
self
.
toolBox
.
setMaximumSize
(
QtCore
.
QSize
(
280
,
16777215
))
self
.
toolBox
.
setFrameShape
(
QtWidgets
.
QFrame
.
NoFrame
)
self
.
toolBox
.
setObjectName
(
"toolBox"
)
self
.
toolBoxMetaData
=
QtWidgets
.
QWidget
()
self
.
toolBoxMetaData
.
setObjectName
(
"toolBoxMetaData"
)
self
.
groupBox_3
=
QtWidgets
.
QGroupBox
(
self
.
toolBoxMetaData
)
self
.
groupBox_3
.
setGeometry
(
QtCore
.
QRect
(
10
,
10
,
271
,
351
))
self
.
groupBox_3
.
setObjectName
(
"groupBox_3"
)
self
.
gridLayoutWidget_2
=
QtWidgets
.
QWidget
(
self
.
groupBox_3
)
self
.
gridLayoutWidget_2
.
setGeometry
(
QtCore
.
QRect
(
10
,
30
,
251
,
311
))
self
.
gridLayoutWidget_2
.
setObjectName
(
"gridLayoutWidget_2"
)
self
.
gridLayout_3
=
QtWidgets
.
QGridLayout
(
self
.
gridLayoutWidget_2
)
self
.
gridLayout_3
.
setObjectName
(
"gridLayout_3"
)
self
.
label_5
=
QtWidgets
.
QLabel
(
self
.
gridLayoutWidget_2
)
self
.
label_5
.
setObjectName
(
"label_5"
)
self
.
gridLayout_3
.
addWidget
(
self
.
label_5
,
0
,
0
,
1
,
1
)
self
.
label_8
=
QtWidgets
.
QLabel
(
self
.
gridLayoutWidget_2
)
self
.
label_8
.
setObjectName
(
"label_8"
)
self
.
gridLayout_3
.
addWidget
(
self
.
label_8
,
1
,
0
,
1
,
1
)
self
.
textEditObservers
=
QtWidgets
.
QTextEdit
(
self
.
gridLayoutWidget_2
)
self
.
textEditObservers
.
setObjectName
(
"textEditObservers"
)
self
.
gridLayout_3
.
addWidget
(
self
.
textEditObservers
,
0
,
1
,
1
,
1
)
self
.
textEditDescription
=
QtWidgets
.
QTextEdit
(
self
.
gridLayoutWidget_2
)
self
.
textEditDescription
.
setObjectName
(
"textEditDescription"
)
self
.
gridLayout_3
.
addWidget
(
self
.
textEditDescription
,
1
,
1
,
1
,
1
)
self
.
toolBox
.
addItem
(
self
.
toolBoxMetaData
,
""
)
self
.
toolBoxMeasurement
=
QtWidgets
.
QWidget
()
self
.
toolBoxMeasurement
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
4
50
))
self
.
toolBoxMeasurement
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
4
18
))
self
.
toolBoxMeasurement
.
setObjectName
(
"toolBoxMeasurement"
)
self
.
groupBox_2
=
QtWidgets
.
QGroupBox
(
self
.
toolBoxMeasurement
)
self
.
groupBox_2
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
1
61
))
self
.
groupBox_2
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
2
61
))
self
.
groupBox_2
.
setMaximumSize
(
QtCore
.
QSize
(
280
,
16777215
))
self
.
groupBox_2
.
setTitle
(
""
)
self
.
groupBox_2
.
setObjectName
(
"groupBox_2"
)
...
...
@@ -60,9 +143,20 @@ class Ui_mainWindow(object):
self
.
label_3
=
QtWidgets
.
QLabel
(
self
.
gridLayoutWidget
)
self
.
label_3
.
setObjectName
(
"label_3"
)
self
.
gridLayout_2
.
addWidget
(
self
.
label_3
,
2
,
0
,
1
,
1
)
self
.
verticalLayoutWidget
=
QtWidgets
.
QWidget
(
self
.
groupBox_2
)
self
.
verticalLayoutWidget
.
setGeometry
(
QtCore
.
QRect
(
10
,
160
,
261
,
80
))
self
.
verticalLayoutWidget
.
setObjectName
(
"verticalLayoutWidget"
)
self
.
verticalLayout_2
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget
)
self
.
verticalLayout_2
.
setObjectName
(
"verticalLayout_2"
)
self
.
checkBoxDTModel
=
QtWidgets
.
QCheckBox
(
self
.
verticalLayoutWidget
)
self
.
checkBoxDTModel
.
setObjectName
(
"checkBoxDTModel"
)
self
.
verticalLayout_2
.
addWidget
(
self
.
checkBoxDTModel
)
self
.
checkBoxCorrection
=
QtWidgets
.
QCheckBox
(
self
.
verticalLayoutWidget
)
self
.
checkBoxCorrection
.
setObjectName
(
"checkBoxCorrection"
)
self
.
verticalLayout_2
.
addWidget
(
self
.
checkBoxCorrection
)
self
.
toolBox
.
addItem
(
self
.
toolBoxMeasurement
,
""
)
self
.
toolBoxBackEnd
=
QtWidgets
.
QWidget
()
self
.
toolBoxBackEnd
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
4
50
))
self
.
toolBoxBackEnd
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
280
,
4
18
))
self
.
toolBoxBackEnd
.
setObjectName
(
"toolBoxBackEnd"
)
self
.
groupBox
=
QtWidgets
.
QGroupBox
(
self
.
toolBoxBackEnd
)
self
.
groupBox
.
setEnabled
(
True
)
...
...
@@ -104,67 +198,7 @@ class Ui_mainWindow(object):
self
.
verticalLayout
.
addWidget
(
self
.
radioButtonLSR
)
self
.
horizontalLayout
.
addLayout
(
self
.
verticalLayout
)
self
.
toolBox
.
addItem
(
self
.
toolBoxBackEnd
,
""
)
self
.
gridLayout
.
addWidget
(
self
.
toolBox
,
6
,
0
,
1
,
1
,
QtCore
.
Qt
.
AlignLeft
)
self
.
pushButtonStartMeasurement
=
QtWidgets
.
QPushButton
(
self
.
centralwidget
)
palette
=
QtGui
.
QPalette
()
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
0
,
255
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Active
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
0
,
255
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Inactive
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
0
,
255
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Disabled
,
QtGui
.
QPalette
.
Button
,
brush
)
self
.
pushButtonStartMeasurement
.
setPalette
(
palette
)
self
.
pushButtonStartMeasurement
.
setObjectName
(
"pushButtonStartMeasurement"
)
self
.
gridLayout
.
addWidget
(
self
.
pushButtonStartMeasurement
,
7
,
0
,
1
,
1
)
self
.
label_4
=
QtWidgets
.
QLabel
(
self
.
centralwidget
)
self
.
label_4
.
setObjectName
(
"label_4"
)
self
.
gridLayout
.
addWidget
(
self
.
label_4
,
0
,
1
,
1
,
1
,
QtCore
.
Qt
.
AlignHCenter
)
self
.
pushButtonStopMeasurement
=
QtWidgets
.
QPushButton
(
self
.
centralwidget
)
palette
=
QtGui
.
QPalette
()
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
255
,
0
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Active
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
255
,
0
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Inactive
,
QtGui
.
QPalette
.
Button
,
brush
)
brush
=
QtGui
.
QBrush
(
QtGui
.
QColor
(
255
,
0
,
0
))
brush
.
setStyle
(
QtCore
.
Qt
.
SolidPattern
)
palette
.
setBrush
(
QtGui
.
QPalette
.
Disabled
,
QtGui
.
QPalette
.
Button
,
brush
)
self
.
pushButtonStopMeasurement
.
setPalette
(
palette
)
self
.
pushButtonStopMeasurement
.
setObjectName
(
"pushButtonStopMeasurement"
)
self
.
gridLayout
.
addWidget
(
self
.
pushButtonStopMeasurement
,
8
,
0
,
1
,
1
)
self
.
tableWidgetPointings
=
QtWidgets
.
QTableWidget
(
self
.
centralwidget
)
self
.
tableWidgetPointings
.
setObjectName
(
"tableWidgetPointings"
)
self
.
tableWidgetPointings
.
setColumnCount
(
3
)
self
.
tableWidgetPointings
.
setRowCount
(
0
)
item
=
QtWidgets
.
QTableWidgetItem
()
item
.
setTextAlignment
(
QtCore
.
Qt
.
AlignCenter
)
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
item
.
setFont
(
font
)
item
.
setBackground
(
QtGui
.
QColor
(
255
,
170
,
127
))
self
.
tableWidgetPointings
.
setHorizontalHeaderItem
(
0
,
item
)
item
=
QtWidgets
.
QTableWidgetItem
()
item
.
setTextAlignment
(
QtCore
.
Qt
.
AlignCenter
)
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
item
.
setFont
(
font
)
item
.
setBackground
(
QtGui
.
QColor
(
255
,
170
,
127
))
self
.
tableWidgetPointings
.
setHorizontalHeaderItem
(
1
,
item
)
item
=
QtWidgets
.
QTableWidgetItem
()
item
.
setTextAlignment
(
QtCore
.
Qt
.
AlignCenter
)
font
=
QtGui
.
QFont
()
font
.
setBold
(
True
)
font
.
setWeight
(
75
)
item
.
setFont
(
font
)
item
.
setBackground
(
QtGui
.
QColor
(
255
,
170
,
127
))
self
.
tableWidgetPointings
.
setHorizontalHeaderItem
(
2
,
item
)
self
.
gridLayout
.
addWidget
(
self
.
tableWidgetPointings
,
6
,
1
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
toolBox
,
6
,
0
,
1
,
1
)
mainWindow
.
setCentralWidget
(
self
.
centralwidget
)
self
.
menubar
=
QtWidgets
.
QMenuBar
(
mainWindow
)
self
.
menubar
.
setGeometry
(
QtCore
.
QRect
(
0
,
0
,
856
,
30
))
...
...
@@ -257,12 +291,26 @@ class Ui_mainWindow(object):
self
.
menubar
.
addAction
(
self
.
menuHelp
.
menuAction
())
self
.
retranslateUi
(
mainWindow
)
self
.
toolBox
.
setCurrentIndex
(
0
)
self
.
toolBox
.
setCurrentIndex
(
1
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
mainWindow
)
def
retranslateUi
(
self
,
mainWindow
):
_translate
=
QtCore
.
QCoreApplication
.
translate
mainWindow
.
setWindowTitle
(
_translate
(
"mainWindow"
,
"DT Observation Application"
))
self
.
pushButtonStartMeasurement
.
setText
(
_translate
(
"mainWindow"
,
"Start Measurement"
))
self
.
label_4
.
setText
(
_translate
(
"mainWindow"
,
"Observation Progress and Status"
))
self
.
pushButtonStopMeasurement
.
setText
(
_translate
(
"mainWindow"
,
"Stop"
))
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
0
)
item
.
setText
(
_translate
(
"mainWindow"
,
"RA"
))
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
1
)
item
.
setText
(
_translate
(
"mainWindow"
,
"Dec"
))
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
2
)
item
.
setText
(
_translate
(
"mainWindow"
,
"Status"
))
self
.
groupBox_3
.
setTitle
(
_translate
(
"mainWindow"
,
"GroupBox"
))
self
.
label_5
.
setText
(
_translate
(
"mainWindow"
,
"Observer(s):"
))
self
.
label_8
.
setText
(
_translate
(
"mainWindow"
,
"Desciption: "
))
self
.
toolBox
.
setItemText
(
self
.
toolBox
.
indexOf
(
self
.
toolBoxMetaData
),
_translate
(
"mainWindow"
,
"Meta Data"
))
self
.
lineEditOutputDir
.
setText
(
_translate
(
"mainWindow"
,
"~/Obs"
))
self
.
label
.
setText
(
_translate
(
"mainWindow"
,
" Result directory: "
))
self
.
label_2
.
setText
(
_translate
(
"mainWindow"
,
" Programme: "
))
self
.
comboBoxProgramma
.
setCurrentText
(
_translate
(
"mainWindow"
,
"dumpwide"
))
...
...
@@ -270,6 +318,8 @@ class Ui_mainWindow(object):
self
.
comboBoxProgramma
.
setItemText
(
1
,
_translate
(
"mainWindow"
,
"int32bit"
))
self
.
comboBoxProgramma
.
setItemText
(
2
,
_translate
(
"mainWindow"
,
"rawrecord"
))
self
.
label_3
.
setText
(
_translate
(
"mainWindow"
,
" Integration Time: "
))
self
.
checkBoxDTModel
.
setText
(
_translate
(
"mainWindow"
,
"Refraction enabled"
))
self
.
checkBoxCorrection
.
setText
(
_translate
(
"mainWindow"
,
"DT Model enagled"
))
self
.
toolBox
.
setItemText
(
self
.
toolBox
.
indexOf
(
self
.
toolBoxMeasurement
),
_translate
(
"mainWindow"
,
"Measurement Settings"
))
self
.
groupBox
.
setTitle
(
_translate
(
"mainWindow"
,
"Mode"
))
self
.
checkBoxHI
.
setText
(
_translate
(
"mainWindow"
,
"Hydrogen Line"
))
...
...
@@ -278,24 +328,15 @@ class Ui_mainWindow(object):
self
.
checkBoxRaw
.
setText
(
_translate
(
"mainWindow"
,
"Raw Mode"
))
self
.
radioButtonLSR
.
setText
(
_translate
(
"mainWindow"
,
"Local &Standard of Rest Compensation"
))
self
.
toolBox
.
setItemText
(
self
.
toolBox
.
indexOf
(
self
.
toolBoxBackEnd
),
_translate
(
"mainWindow"
,
"BackEnd Settings"
))
self
.
pushButtonStartMeasurement
.
setText
(
_translate
(
"mainWindow"
,
"Start Measurement"
))
self
.
label_4
.
setText
(
_translate
(
"mainWindow"
,
"Observation Progress and Status"
))
self
.
pushButtonStopMeasurement
.
setText
(
_translate
(
"mainWindow"
,
"Stop"
))
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
0
)
item
.
setText
(
_translate
(
"mainWindow"
,
"RA"
))
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
1
)
item
.
setText
(
_translate
(
"mainWindow"
,
"Dec"
))
item
=
self
.
tableWidgetPointings
.
horizontalHeaderItem
(
2
)
item
.
setText
(
_translate
(
"mainWindow"
,
"Status"
))
self
.
menuFile
.
setTitle
(
_translate
(
"mainWindow"
,
"Fi&le"
))
self
.
menuTemplates
.
setTitle
(
_translate
(
"mainWindow"
,
"Templates"
))
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
.
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"
))
...
...
@@ -304,14 +345,14 @@ class Ui_mainWindow(object):
self
.
actionAbout
.
setText
(
_translate
(
"mainWindow"
,
"&About"
))
self
.
actionSetup
.
setText
(
_translate
(
"mainWindow"
,
"&Setup"
))
self
.
actionControl
.
setText
(
_translate
(
"mainWindow"
,
"&Control"
))
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"
))
self
.
actionM101
.
setText
(
_translate
(
"mainWindow"
,
"M101"
))
self
.
actionCAS_A_2
.
setText
(
_translate
(
"mainWindow"
,
"
&
CAS A"
))
self
.
actionTau_A
.
setText
(
_translate
(
"mainWindow"
,
"
&
Tau A"
))
self
.
actionCyg_A
.
setText
(
_translate
(
"mainWindow"
,
"C
&
yg 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"
))
self
.
actionM101
.
setText
(
_translate
(
"mainWindow"
,
"M
&
101"
))
ui/dtobswindow.ui
View file @
f820400f
...
...
@@ -15,7 +15,169 @@
</property>
<widget
class=
"QWidget"
name=
"centralwidget"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"6"
column=
"0"
alignment=
"Qt::AlignLeft"
>
<item
row=
"7"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButtonStartMeasurement"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"Button"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
0
</red>
<green>
255
</green>
<blue>
0
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"Button"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
0
</red>
<green>
255
</green>
<blue>
0
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"Button"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
0
</red>
<green>
255
</green>
<blue>
0
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"text"
>
<string>
Start Measurement
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
alignment=
"Qt::AlignHCenter"
>
<widget
class=
"QLabel"
name=
"label_4"
>
<property
name=
"text"
>
<string>
Observation Progress and Status
</string>
</property>
</widget>
</item>
<item
row=
"8"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"pushButtonStopMeasurement"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"Button"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
0
</green>
<blue>
0
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"Button"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
0
</green>
<blue>
0
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"Button"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
0
</green>
<blue>
0
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"text"
>
<string>
Stop
</string>
</property>
</widget>
</item>
<item
row=
"6"
column=
"1"
>
<widget
class=
"QTableWidget"
name=
"tableWidgetPointings"
>
<column>
<property
name=
"text"
>
<string>
RA
</string>
</property>
<property
name=
"font"
>
<font>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"textAlignment"
>
<set>
AlignCenter
</set>
</property>
<property
name=
"background"
>
<color>
<red>
255
</red>
<green>
170
</green>
<blue>
127
</blue>
</color>
</property>
</column>
<column>
<property
name=
"text"
>
<string>
Dec
</string>
</property>
<property
name=
"font"
>
<font>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"textAlignment"
>
<set>
AlignCenter
</set>
</property>
<property
name=
"background"
>
<color>
<red>
255
</red>
<green>
170
</green>
<blue>
127
</blue>
</color>
</property>
</column>
<column>
<property
name=
"text"
>
<string>
Status
</string>
</property>
<property
name=
"font"
>
<font>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"textAlignment"
>
<set>
AlignCenter
</set>
</property>
<property
name=
"background"
>
<color>
<red>
255
</red>
<green>
170
</green>
<blue>
127
</blue>
</color>
</property>
</column>
</widget>
</item>
<item
row=
"6"
column=
"0"
>
<widget
class=
"QToolBox"
name=
"toolBox"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
...
...
@@ -36,15 +198,65 @@
<enum>
QFrame::NoFrame
</enum>
</property>
<property
name=
"currentIndex"
>
<number>
0
</number>
<number>
1
</number>
</property>
<widget
class=
"QWidget"
name=
"toolBoxMetaData"
>
<attribute
name=
"label"
>
<string>
Meta Data
</string>
</attribute>
<widget
class=
"QGroupBox"
name=
"groupBox_3"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
10
</y>
<width>
271
</width>
<height>
351
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
GroupBox
</string>
</property>
<widget
class=
"QWidget"
name=
"gridLayoutWidget_2"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
30
</y>
<width>
251
</width>
<height>
311
</height>
</rect>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_5"
>
<property
name=
"text"
>
<string>
Observer(s):
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_8"
>
<property
name=
"text"
>
<string>
Desciption:
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QTextEdit"
name=
"textEditObservers"
/>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QTextEdit"
name=
"textEditDescription"
/>
</item>
</layout>
</widget>
</widget>
</widget>
<widget
class=
"QWidget"
name=
"toolBoxMeasurement"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
280
</width>
<height>
4
50
</height>
<height>
4
18
</height>
</rect>
</property>
<attribute
name=
"label"
>
...
...
@@ -56,7 +268,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
280
</width>
<height>
1
61
</height>
<height>
2
61
</height>
</rect>
</property>
<property
name=
"maximumSize"
>
...
...
@@ -82,7 +294,11 @@
<number>
7
</number>
</property>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"lineEditOutputDir"
/>
<widget
class=
"QLineEdit"
name=
"lineEditOutputDir"
>
<property
name=
"text"
>
<string>
~/Obs
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label"
>
...
...
@@ -142,6 +358,32 @@
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"verticalLayoutWidget"
>
<property
name=
"geometry"
>
<rect>
<x>
10
</x>
<y>
160
</y>
<width>
261
</width>
<height>
80
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<item>
<widget
class=
"QCheckBox"
name=
"checkBoxDTModel"
>
<property
name=
"text"
>
<string>
Refraction enabled
</string>
</property>
</widget>
</item>
<item>