allanplotUI.py
7.14 KB
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'allanplotUI.ui'
#
# Created: Thu Jul 7 17:46:05 2016
# by: PyQt4 UI code generator 4.11.2
#
# 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(766, 780)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.pushOpen = QtGui.QPushButton(self.centralwidget)
self.pushOpen.setObjectName(_fromUtf8("pushOpen"))
self.gridLayout.addWidget(self.pushOpen, 1, 1, 1, 1)
self.groupBox = QtGui.QGroupBox(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
self.groupBox.setSizePolicy(sizePolicy)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.pushTimePlot = QtGui.QPushButton(self.groupBox)
self.pushTimePlot.setObjectName(_fromUtf8("pushTimePlot"))
self.verticalLayout_2.addWidget(self.pushTimePlot)
self.pushRelativeTimePlot = QtGui.QPushButton(self.groupBox)
self.pushRelativeTimePlot.setObjectName(_fromUtf8("pushRelativeTimePlot"))
self.verticalLayout_2.addWidget(self.pushRelativeTimePlot)
self.pushAdevPlot = QtGui.QPushButton(self.groupBox)
self.pushAdevPlot.setObjectName(_fromUtf8("pushAdevPlot"))
self.verticalLayout_2.addWidget(self.pushAdevPlot)
self.pushRelativeAdevPlot = QtGui.QPushButton(self.groupBox)
self.pushRelativeAdevPlot.setObjectName(_fromUtf8("pushRelativeAdevPlot"))
self.verticalLayout_2.addWidget(self.pushRelativeAdevPlot)
self.gridLayout.addWidget(self.groupBox, 4, 1, 1, 1)
self.textValue = QtGui.QTextBrowser(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textValue.sizePolicy().hasHeightForWidth())
self.textValue.setSizePolicy(sizePolicy)
self.textValue.setMinimumSize(QtCore.QSize(600, 150))
self.textValue.setMaximumSize(QtCore.QSize(16777215, 150))
self.textValue.setObjectName(_fromUtf8("textValue"))
self.gridLayout.addWidget(self.textValue, 4, 2, 1, 1)
self.pushQuit = QtGui.QPushButton(self.centralwidget)
self.pushQuit.setObjectName(_fromUtf8("pushQuit"))
self.gridLayout.addWidget(self.pushQuit, 2, 1, 1, 1)
self.textFileList = QtGui.QTextBrowser(self.centralwidget)
self.textFileList.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.textFileList.sizePolicy().hasHeightForWidth())
self.textFileList.setSizePolicy(sizePolicy)
self.textFileList.setMinimumSize(QtCore.QSize(600, 100))
self.textFileList.setMaximumSize(QtCore.QSize(16777215, 100))
self.textFileList.setObjectName(_fromUtf8("textFileList"))
self.gridLayout.addWidget(self.textFileList, 1, 2, 3, 1)
self.frame = QtGui.QFrame(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
self.frame.setSizePolicy(sizePolicy)
self.frame.setMinimumSize(QtCore.QSize(700, 500))
self.frame.setObjectName(_fromUtf8("frame"))
self.gridLayout.addWidget(self.frame, 5, 1, 1, 2)
MainWindow.setCentralWidget(self.centralwidget)
self.actionOpen = QtGui.QAction(MainWindow)
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
self.actionPlot = QtGui.QAction(MainWindow)
self.actionPlot.setObjectName(_fromUtf8("actionPlot"))
self.actionQuit = QtGui.QAction(MainWindow)
self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "allanplot-gui", None))
self.pushOpen.setText(_translate("MainWindow", "Open", None))
self.groupBox.setTitle(_translate("MainWindow", "Plotting tools", None))
self.pushTimePlot.setText(_translate("MainWindow", "Time Plot", None))
self.pushRelativeTimePlot.setText(_translate("MainWindow", "Relative Time Plot", None))
self.pushAdevPlot.setText(_translate("MainWindow", "Adev Plot", None))
self.pushRelativeAdevPlot.setText(_translate("MainWindow", "Relative Adev Plot", None))
self.textValue.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None))
self.pushQuit.setText(_translate("MainWindow", "Quit", None))
self.textFileList.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">.dat files</p></body></html>", None))
self.actionOpen.setText(_translate("MainWindow", "Open", None))
self.actionPlot.setText(_translate("MainWindow", "Plot", None))
self.actionQuit.setText(_translate("MainWindow", "Quit", None))