-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow signals to be concatenated into one longer signal #415
- Loading branch information
Showing
6 changed files
with
203 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'merge_signals.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.15.2 | ||
# | ||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | ||
# run again. Do not edit this file unless you know what you are doing. | ||
|
||
|
||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
class Ui_MergeSignalDialog(object): | ||
def setupUi(self, MergeSignalDialog): | ||
MergeSignalDialog.setObjectName("MergeSignalDialog") | ||
MergeSignalDialog.resize(400, 308) | ||
self.gridLayout = QtWidgets.QGridLayout(MergeSignalDialog) | ||
self.gridLayout.setObjectName("gridLayout") | ||
self.signals = QtWidgets.QListWidget(MergeSignalDialog) | ||
self.signals.setDragEnabled(True) | ||
self.signals.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove) | ||
self.signals.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) | ||
self.signals.setObjectName("signals") | ||
self.gridLayout.addWidget(self.signals, 0, 1, 1, 1) | ||
self.signalsLabel = QtWidgets.QLabel(MergeSignalDialog) | ||
self.signalsLabel.setObjectName("signalsLabel") | ||
self.gridLayout.addWidget(self.signalsLabel, 0, 0, 1, 1) | ||
self.durationLabel = QtWidgets.QLabel(MergeSignalDialog) | ||
self.durationLabel.setObjectName("durationLabel") | ||
self.gridLayout.addWidget(self.durationLabel, 1, 0, 1, 1) | ||
self.buttonBox = QtWidgets.QDialogButtonBox(MergeSignalDialog) | ||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save) | ||
self.buttonBox.setObjectName("buttonBox") | ||
self.gridLayout.addWidget(self.buttonBox, 2, 1, 1, 1) | ||
self.duration = QtWidgets.QTimeEdit(MergeSignalDialog) | ||
self.duration.setReadOnly(True) | ||
self.duration.setObjectName("duration") | ||
self.gridLayout.addWidget(self.duration, 1, 1, 1, 1) | ||
|
||
self.retranslateUi(MergeSignalDialog) | ||
self.signals.itemSelectionChanged.connect(MergeSignalDialog.calc_duration) | ||
QtCore.QMetaObject.connectSlotsByName(MergeSignalDialog) | ||
|
||
def retranslateUi(self, MergeSignalDialog): | ||
_translate = QtCore.QCoreApplication.translate | ||
MergeSignalDialog.setWindowTitle(_translate("MergeSignalDialog", "Merge Signals")) | ||
self.signalsLabel.setText(_translate("MergeSignalDialog", "Signals")) | ||
self.durationLabel.setText(_translate("MergeSignalDialog", "Duration")) | ||
self.duration.setDisplayFormat(_translate("MergeSignalDialog", "HH:mm:ss.zzz")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>MergeSignalDialog</class> | ||
<widget class="QDialog" name="MergeSignalDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>308</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Merge Signals</string> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="0" column="1"> | ||
<widget class="QListWidget" name="signals"> | ||
<property name="dragEnabled"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="dragDropMode"> | ||
<enum>QAbstractItemView::InternalMove</enum> | ||
</property> | ||
<property name="selectionMode"> | ||
<enum>QAbstractItemView::MultiSelection</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="signalsLabel"> | ||
<property name="text"> | ||
<string>Signals</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="durationLabel"> | ||
<property name="text"> | ||
<string>Duration</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QTimeEdit" name="duration"> | ||
<property name="readOnly"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="displayFormat"> | ||
<string>HH:mm:ss.zzz</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>signals</sender> | ||
<signal>itemSelectionChanged()</signal> | ||
<receiver>MergeSignalDialog</receiver> | ||
<slot>calc_duration()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>204</x> | ||
<y>106</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>374</x> | ||
<y>120</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
<slots> | ||
<slot>calc_duration()</slot> | ||
</slots> | ||
</ui> |