-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.py
268 lines (258 loc) · 14.6 KB
/
mainwindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(810, 724)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.groupBox = QtGui.QGroupBox(self.centralwidget)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.groupBox_3 = QtGui.QGroupBox(self.groupBox)
self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_3)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.label_3 = QtGui.QLabel(self.groupBox_3)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.verticalLayout_4.addWidget(self.label_3)
self.widget_5 = QtGui.QWidget(self.groupBox_3)
self.widget_5.setObjectName(_fromUtf8("widget_5"))
self.horizontalLayout_6 = QtGui.QHBoxLayout(self.widget_5)
self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
self.comboBox = QtGui.QComboBox(self.widget_5)
self.comboBox.setObjectName(_fromUtf8("comboBox"))
self.comboBox.addItem(_fromUtf8(""))
self.horizontalLayout_6.addWidget(self.comboBox)
self.pushButton_7 = QtGui.QPushButton(self.widget_5)
font = QtGui.QFont()
font.setStrikeOut(True)
self.pushButton_7.setFont(font)
self.pushButton_7.setObjectName(_fromUtf8("pushButton_7"))
self.horizontalLayout_6.addWidget(self.pushButton_7)
self.verticalLayout_4.addWidget(self.widget_5)
self.label_4 = QtGui.QLabel(self.groupBox_3)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.verticalLayout_4.addWidget(self.label_4)
self.widget_3 = QtGui.QWidget(self.groupBox_3)
self.widget_3.setObjectName(_fromUtf8("widget_3"))
self.gridLayout = QtGui.QGridLayout(self.widget_3)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.label_6 = QtGui.QLabel(self.widget_3)
self.label_6.setObjectName(_fromUtf8("label_6"))
self.gridLayout.addWidget(self.label_6, 0, 2, 1, 1)
self.doubleSpinBox_2 = QtGui.QDoubleSpinBox(self.widget_3)
self.doubleSpinBox_2.setMaximum(360.0)
self.doubleSpinBox_2.setObjectName(_fromUtf8("doubleSpinBox_2"))
self.gridLayout.addWidget(self.doubleSpinBox_2, 0, 3, 1, 1)
self.label_5 = QtGui.QLabel(self.widget_3)
self.label_5.setObjectName(_fromUtf8("label_5"))
self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
self.doubleSpinBox = QtGui.QDoubleSpinBox(self.widget_3)
self.doubleSpinBox.setWrapping(False)
self.doubleSpinBox.setMaximum(90.0)
self.doubleSpinBox.setProperty("value", 45.0)
self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox"))
self.gridLayout.addWidget(self.doubleSpinBox, 0, 1, 1, 1)
self.pushButton_6 = QtGui.QPushButton(self.widget_3)
font = QtGui.QFont()
font.setStrikeOut(True)
self.pushButton_6.setFont(font)
self.pushButton_6.setObjectName(_fromUtf8("pushButton_6"))
self.gridLayout.addWidget(self.pushButton_6, 0, 4, 1, 1)
self.pushButton_8 = QtGui.QPushButton(self.widget_3)
self.pushButton_8.setObjectName(_fromUtf8("pushButton_8"))
self.gridLayout.addWidget(self.pushButton_8, 1, 4, 1, 1)
self.verticalLayout_4.addWidget(self.widget_3)
self.label_7 = QtGui.QLabel(self.groupBox_3)
font = QtGui.QFont()
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.label_7.setFont(font)
self.label_7.setObjectName(_fromUtf8("label_7"))
self.verticalLayout_4.addWidget(self.label_7)
self.widget_2 = QtGui.QWidget(self.groupBox_3)
self.widget_2.setObjectName(_fromUtf8("widget_2"))
self.horizontalLayout_4 = QtGui.QHBoxLayout(self.widget_2)
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
self.pushButton = QtGui.QPushButton(self.widget_2)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.horizontalLayout_4.addWidget(self.pushButton)
self.pushButton_2 = QtGui.QPushButton(self.widget_2)
self.pushButton_2.setEnabled(False)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
self.horizontalLayout_4.addWidget(self.pushButton_2)
self.verticalLayout_4.addWidget(self.widget_2)
self.verticalLayout.addWidget(self.groupBox_3)
self.groupBox_4 = QtGui.QGroupBox(self.groupBox)
self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_4)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.radioButton = QtGui.QRadioButton(self.groupBox_4)
self.radioButton.setObjectName(_fromUtf8("radioButton"))
self.verticalLayout_2.addWidget(self.radioButton)
self.radioButton_2 = QtGui.QRadioButton(self.groupBox_4)
self.radioButton_2.setObjectName(_fromUtf8("radioButton_2"))
self.verticalLayout_2.addWidget(self.radioButton_2)
self.radioButton_3 = QtGui.QRadioButton(self.groupBox_4)
self.radioButton_3.setObjectName(_fromUtf8("radioButton_3"))
self.verticalLayout_2.addWidget(self.radioButton_3)
self.radioButton_4 = QtGui.QRadioButton(self.groupBox_4)
self.radioButton_4.setObjectName(_fromUtf8("radioButton_4"))
self.verticalLayout_2.addWidget(self.radioButton_4)
self.widget = QtGui.QWidget(self.groupBox_4)
self.widget.setObjectName(_fromUtf8("widget"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.widget)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
spacerItem = QtGui.QSpacerItem(15, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem)
self.frame = QtGui.QFrame(self.widget)
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName(_fromUtf8("frame"))
self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame)
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.label_2 = QtGui.QLabel(self.frame)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout_3.addWidget(self.label_2)
self.dateTimeEdit = QtGui.QDateTimeEdit(self.frame)
self.dateTimeEdit.setObjectName(_fromUtf8("dateTimeEdit"))
self.verticalLayout_3.addWidget(self.dateTimeEdit)
self.label = QtGui.QLabel(self.frame)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout_3.addWidget(self.label)
self.dateTimeEdit_2 = QtGui.QDateTimeEdit(self.frame)
self.dateTimeEdit_2.setObjectName(_fromUtf8("dateTimeEdit_2"))
self.verticalLayout_3.addWidget(self.dateTimeEdit_2)
self.radioButton_5 = QtGui.QRadioButton(self.frame)
self.radioButton_5.setObjectName(_fromUtf8("radioButton_5"))
self.verticalLayout_3.addWidget(self.radioButton_5)
self.horizontalLayout_3.addWidget(self.frame)
self.verticalLayout_2.addWidget(self.widget)
self.verticalLayout.addWidget(self.groupBox_4)
self.pushButton_3 = QtGui.QPushButton(self.groupBox)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
self.verticalLayout.addWidget(self.pushButton_3)
self.horizontalLayout.addWidget(self.groupBox)
self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_2)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.verticalLayout_5.addItem(spacerItem1)
self.widget_4 = QtGui.QWidget(self.groupBox_2)
self.widget_4.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widget_4.sizePolicy().hasHeightForWidth())
self.widget_4.setSizePolicy(sizePolicy)
self.widget_4.setObjectName(_fromUtf8("widget_4"))
self.horizontalLayout_5 = QtGui.QHBoxLayout(self.widget_4)
self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
self.pushButton_4 = QtGui.QPushButton(self.widget_4)
self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
self.horizontalLayout_5.addWidget(self.pushButton_4)
self.pushButton_5 = QtGui.QPushButton(self.widget_4)
self.pushButton_5.setObjectName(_fromUtf8("pushButton_5"))
self.horizontalLayout_5.addWidget(self.pushButton_5)
self.verticalLayout_5.addWidget(self.widget_4)
self.groupBox.raise_()
self.widget_4.raise_()
self.horizontalLayout.addWidget(self.groupBox_2)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 810, 23))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuHelp = QtGui.QMenu(self.menubar)
self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
self.menuOptions = QtGui.QMenu(self.menubar)
self.menuOptions.setObjectName(_fromUtf8("menuOptions"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionImport = QtGui.QAction(MainWindow)
self.actionImport.setObjectName(_fromUtf8("actionImport"))
self.actionQuit = QtGui.QAction(MainWindow)
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
self.actionConfiguration = QtGui.QAction(MainWindow)
self.actionConfiguration.setObjectName(_fromUtf8("actionConfiguration"))
self.actionAbout = QtGui.QAction(MainWindow)
self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
self.menuHelp.addAction(self.actionAbout)
self.menuOptions.addAction(self.actionConfiguration)
self.menuFile.addAction(self.actionImport)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionQuit)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuOptions.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(MainWindow)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.pushButton_2.raise_)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.groupBox.setTitle(_translate("MainWindow", "Action", None))
self.groupBox_3.setTitle(_translate("MainWindow", "Set up", None))
self.label_3.setText(_translate("MainWindow", "Locale:", None))
self.comboBox.setItemText(0, _translate("MainWindow", "Add new...", None))
self.pushButton_7.setText(_translate("MainWindow", "Detect", None))
self.label_4.setText(_translate("MainWindow", "Alt-azimuthal coordinates (degrees):", None))
self.label_6.setText(_translate("MainWindow", "Azimuth:", None))
self.label_5.setText(_translate("MainWindow", "Altitude:", None))
self.pushButton_6.setText(_translate("MainWindow", "Detect", None))
self.pushButton_8.setText(_translate("MainWindow", "Move to", None))
self.label_7.setText(_translate("MainWindow", "Operation", None))
self.pushButton.setText(_translate("MainWindow", "Start", None))
self.pushButton_2.setText(_translate("MainWindow", "Stop", None))
self.groupBox_4.setTitle(_translate("MainWindow", "Display results", None))
self.radioButton.setText(_translate("MainWindow", "Past minute", None))
self.radioButton_2.setText(_translate("MainWindow", "Past hour", None))
self.radioButton_3.setText(_translate("MainWindow", "Past day", None))
self.radioButton_4.setText(_translate("MainWindow", "Custom interval", None))
self.label_2.setText(_translate("MainWindow", "Start:", None))
self.label.setText(_translate("MainWindow", "End:", None))
self.radioButton_5.setText(_translate("MainWindow", "Now", None))
self.pushButton_3.setText(_translate("MainWindow", "See past aquistions", None))
self.groupBox_2.setTitle(_translate("MainWindow", "Preview", None))
self.pushButton_4.setText(_translate("MainWindow", "Pause", None))
self.pushButton_5.setText(_translate("MainWindow", "Export...", None))
self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
self.menuOptions.setTitle(_translate("MainWindow", "Options", None))
self.menuFile.setTitle(_translate("MainWindow", "File", None))
self.actionImport.setText(_translate("MainWindow", "Import...", None))
self.actionQuit.setText(_translate("MainWindow", "Quit", None))
self.actionConfiguration.setText(_translate("MainWindow", "Configuration", None))
self.actionAbout.setText(_translate("MainWindow", "About", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())