11 from PyQt5
import QtCore, QtGui, QtWidgets
16 HistoryDialog.setObjectName(
"HistoryDialog")
17 HistoryDialog.resize(678, 178)
22 self.
label = QtWidgets.QLabel(HistoryDialog)
23 self.
label.setObjectName(
"label")
25 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
28 self.
historyName.setMinimumSize(QtCore.QSize(500, 0))
29 self.
historyName.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
35 self.
label_2 = QtWidgets.QLabel(HistoryDialog)
36 self.
label_2.setObjectName(
"label_2")
38 spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
42 self.
entriesPerResponse.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
51 self.
label_3 = QtWidgets.QLabel(HistoryDialog)
52 self.
label_3.setObjectName(
"label_3")
54 spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
58 self.
bufferLength.setLayoutDirection(QtCore.Qt.LeftToRight)
59 self.
bufferLength.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
68 self.
label_4 = QtWidgets.QLabel(HistoryDialog)
69 self.
label_4.setObjectName(
"label_4")
71 spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
75 self.
samplingInterval.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
81 self.
label_5 = QtWidgets.QLabel(HistoryDialog)
82 self.
label_5.setObjectName(
"label_5")
85 self.
buttonBox = QtWidgets.QDialogButtonBox(HistoryDialog)
86 self.
buttonBox.setOrientation(QtCore.Qt.Horizontal)
87 self.
buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
92 self.
buttonBox.accepted.connect(HistoryDialog.accept)
93 self.
buttonBox.rejected.connect(HistoryDialog.reject)
94 QtCore.QMetaObject.connectSlotsByName(HistoryDialog)
97 _translate = QtCore.QCoreApplication.translate
98 HistoryDialog.setWindowTitle(_translate(
"HistoryDialog",
"Dialog"))
99 self.
label.setText(_translate(
"HistoryDialog",
"History setting name:"))
100 self.
label_2.setText(_translate(
"HistoryDialog",
"Entries per response:"))
101 self.
entriesPerResponse.setToolTip(_translate(
"HistoryDialog",
"<html><head/><body><p>If a long history is requested by a client this number defines how data is transfered. A large number means big frames are used. A small number means multiple frames are used. They are connected via continuation points and multiple ReadHistoryRequest/ReadHistoryResponse messages are used.</p></body></html>"))
102 self.
label_3.setText(_translate(
"HistoryDialog",
"Buffer length:"))
103 self.
bufferLength.setToolTip(_translate(
"HistoryDialog",
"<html><head/><body><p>A ring buffer is used to store the history in memory. This number defines the size of the ring buffer.</p></body></html>"))
104 self.
label_4.setText(_translate(
"HistoryDialog",
"Sampling interval:"))
105 self.
samplingInterval.setToolTip(_translate(
"HistoryDialog",
"<html><head/><body><p>This number defines the sampling interval on the server side. If data updates happen faster on the server side this will not be seen by the history.</p></body></html>"))
106 self.
label_5.setText(_translate(
"HistoryDialog",
"ms"))