diff -r 12bb982c3960 -r d3f658f306d4 TimeTracker/Ui_TimeTrackerWidget.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TimeTracker/Ui_TimeTrackerWidget.py Sat Oct 26 17:13:16 2024 +0200 @@ -0,0 +1,122 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Time_Tracker/TimeTracker/TimeTrackerWidget.ui' +# +# Created by: PyQt6 UI code generator 6.4.0 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_TimeTrackerWidget(object): + def setupUi(self, TimeTrackerWidget): + TimeTrackerWidget.setObjectName("TimeTrackerWidget") + TimeTrackerWidget.resize(609, 185) + self.verticalLayout = QtWidgets.QVBoxLayout(TimeTrackerWidget) + self.verticalLayout.setContentsMargins(0, 0, 0, 0) + self.verticalLayout.setObjectName("verticalLayout") + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setObjectName("gridLayout") + self.label = QtWidgets.QLabel(TimeTrackerWidget) + self.label.setObjectName("label") + self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.label_2 = QtWidgets.QLabel(TimeTrackerWidget) + self.label_2.setObjectName("label_2") + self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1) + self.label_3 = QtWidgets.QLabel(TimeTrackerWidget) + self.label_3.setObjectName("label_3") + self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1) + self.label_4 = QtWidgets.QLabel(TimeTrackerWidget) + self.label_4.setObjectName("label_4") + self.gridLayout.addWidget(self.label_4, 0, 3, 1, 1) + self.startDateTimeEdit = QtWidgets.QDateTimeEdit(TimeTrackerWidget) + self.startDateTimeEdit.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.startDateTimeEdit.setReadOnly(True) + self.startDateTimeEdit.setCalendarPopup(True) + self.startDateTimeEdit.setObjectName("startDateTimeEdit") + self.gridLayout.addWidget(self.startDateTimeEdit, 1, 0, 1, 1) + self.durationSpinBox = QtWidgets.QSpinBox(TimeTrackerWidget) + self.durationSpinBox.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.durationSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) + self.durationSpinBox.setReadOnly(True) + self.durationSpinBox.setMaximum(9999) + self.durationSpinBox.setObjectName("durationSpinBox") + self.gridLayout.addWidget(self.durationSpinBox, 1, 1, 1, 1) + self.taskCombo = QtWidgets.QComboBox(TimeTrackerWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.taskCombo.sizePolicy().hasHeightForWidth()) + self.taskCombo.setSizePolicy(sizePolicy) + self.taskCombo.setEditable(True) + self.taskCombo.setObjectName("taskCombo") + self.gridLayout.addWidget(self.taskCombo, 1, 2, 1, 1) + self.commentCombo = QtWidgets.QComboBox(TimeTrackerWidget) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.commentCombo.sizePolicy().hasHeightForWidth()) + self.commentCombo.setSizePolicy(sizePolicy) + self.commentCombo.setEditable(True) + self.commentCombo.setObjectName("commentCombo") + self.gridLayout.addWidget(self.commentCombo, 1, 3, 1, 1) + self.verticalLayout.addLayout(self.gridLayout) + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout.addItem(spacerItem) + self.pauseButton = QtWidgets.QPushButton(TimeTrackerWidget) + self.pauseButton.setCheckable(True) + self.pauseButton.setObjectName("pauseButton") + self.horizontalLayout.addWidget(self.pauseButton) + self.newButton = QtWidgets.QPushButton(TimeTrackerWidget) + self.newButton.setObjectName("newButton") + self.horizontalLayout.addWidget(self.newButton) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout.addItem(spacerItem1) + self.verticalLayout.addLayout(self.horizontalLayout) + self.entriesList = QtWidgets.QTreeWidget(TimeTrackerWidget) + self.entriesList.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.CustomContextMenu) + self.entriesList.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers) + self.entriesList.setAlternatingRowColors(True) + self.entriesList.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) + self.entriesList.setRootIsDecorated(False) + self.entriesList.setAllColumnsShowFocus(True) + self.entriesList.setObjectName("entriesList") + self.entriesList.header().setStretchLastSection(False) + self.verticalLayout.addWidget(self.entriesList) + + self.retranslateUi(TimeTrackerWidget) + QtCore.QMetaObject.connectSlotsByName(TimeTrackerWidget) + + def retranslateUi(self, TimeTrackerWidget): + _translate = QtCore.QCoreApplication.translate + self.label.setText(_translate("TimeTrackerWidget", "Start Date/Time:")) + self.label_2.setText(_translate("TimeTrackerWidget", "Duration:")) + self.label_3.setText(_translate("TimeTrackerWidget", "Task:")) + self.label_4.setText(_translate("TimeTrackerWidget", "Comment:")) + self.startDateTimeEdit.setToolTip(_translate("TimeTrackerWidget", "Shows the start date and time of the current timer")) + self.startDateTimeEdit.setDisplayFormat(_translate("TimeTrackerWidget", "yyyy-MM-dd HH:mm:ss")) + self.durationSpinBox.setToolTip(_translate("TimeTrackerWidget", "Shows the duration of the current timer")) + self.durationSpinBox.setSuffix(_translate("TimeTrackerWidget", " min")) + self.taskCombo.setToolTip(_translate("TimeTrackerWidget", "Enter the task description for the current timer")) + self.commentCombo.setToolTip(_translate("TimeTrackerWidget", "Enter a comment for the current timer")) + self.pauseButton.setToolTip(_translate("TimeTrackerWidget", "Press to pause the current timer")) + self.pauseButton.setText(_translate("TimeTrackerWidget", "Pause")) + self.newButton.setToolTip(_translate("TimeTrackerWidget", "Press to end the current timer and start a new one")) + self.newButton.setText(_translate("TimeTrackerWidget", "End Current Timer and Start a New Timer")) + self.entriesList.headerItem().setText(0, _translate("TimeTrackerWidget", "Start Date/Time")) + self.entriesList.headerItem().setText(1, _translate("TimeTrackerWidget", "Duration")) + self.entriesList.headerItem().setText(2, _translate("TimeTrackerWidget", "Task")) + self.entriesList.headerItem().setText(3, _translate("TimeTrackerWidget", "Comment")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + TimeTrackerWidget = QtWidgets.QWidget() + ui = Ui_TimeTrackerWidget() + ui.setupUi(TimeTrackerWidget) + TimeTrackerWidget.show() + sys.exit(app.exec())