Skip to content

Commit

Permalink
remove item
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Sep 12, 2024
1 parent 316ff5b commit 6e32dd2
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 109 deletions.
61 changes: 34 additions & 27 deletions src/asammdf/gui/ui/define_channel_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def setupUi(self, ComputedChannel):

self.label_8 = QLabel(ComputedChannel)
self.label_8.setObjectName(u"label_8")
self.label_8.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
self.label_8.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignTop)

self.gridLayout.addWidget(self.label_8, 5, 0, 1, 1)

Expand Down Expand Up @@ -145,12 +145,12 @@ def setupUi(self, ComputedChannel):
self.verticalLayout.setContentsMargins(1, 1, 1, 1)
self.scrollArea = QScrollArea(self.groupBox)
self.scrollArea.setObjectName(u"scrollArea")
self.scrollArea.setFrameShape(QFrame.NoFrame)
self.scrollArea.setFrameShape(QFrame.Shape.NoFrame)
self.scrollArea.setLineWidth(0)
self.scrollArea.setWidgetResizable(True)
self.args_widget = QWidget()
self.args_widget.setObjectName(u"args_widget")
self.args_widget.setGeometry(QRect(0, 0, 713, 69))
self.args_widget.setGeometry(QRect(0, 0, 717, 71))
self.arg_layout = QGridLayout(self.args_widget)
self.arg_layout.setSpacing(1)
self.arg_layout.setObjectName(u"arg_layout")
Expand Down Expand Up @@ -193,33 +193,39 @@ def setupUi(self, ComputedChannel):
self.groupBox_2 = QGroupBox(ComputedChannel)
self.groupBox_2.setObjectName(u"groupBox_2")
self.gridLayout_2 = QGridLayout(self.groupBox_2)
self.gridLayout_2.setSpacing(1)
self.gridLayout_2.setObjectName(u"gridLayout_2")
self.gridLayout_2.setHorizontalSpacing(1)
self.gridLayout_2.setVerticalSpacing(1)
self.gridLayout_2.setContentsMargins(1, 1, 1, 1)
self.sample_by_sample = QRadioButton(self.groupBox_2)
self.sample_by_sample.setObjectName(u"sample_by_sample")
self.sample_by_sample.setChecked(True)
self.complete_signal = QRadioButton(self.groupBox_2)
self.complete_signal.setObjectName(u"complete_signal")
self.complete_signal.setChecked(False)

self.gridLayout_2.addWidget(self.sample_by_sample, 0, 0, 1, 1)
self.gridLayout_2.addWidget(self.complete_signal, 2, 0, 1, 1)

self.label_25 = QLabel(self.groupBox_2)
self.label_25.setObjectName(u"label_25")

self.gridLayout_2.addWidget(self.label_25, 2, 1, 1, 1)

self.label_24 = QLabel(self.groupBox_2)
self.label_24.setObjectName(u"label_24")
self.label_24.setTextFormat(Qt.RichText)
self.label_24.setTextFormat(Qt.TextFormat.RichText)
self.label_24.setWordWrap(False)

self.gridLayout_2.addWidget(self.label_24, 0, 1, 1, 1)

self.complete_signal = QRadioButton(self.groupBox_2)
self.complete_signal.setObjectName(u"complete_signal")
self.complete_signal.setChecked(False)
self.sample_by_sample = QRadioButton(self.groupBox_2)
self.sample_by_sample.setObjectName(u"sample_by_sample")
self.sample_by_sample.setChecked(True)

self.gridLayout_2.addWidget(self.complete_signal, 1, 0, 1, 1)
self.gridLayout_2.addWidget(self.sample_by_sample, 0, 0, 1, 1)

self.label_25 = QLabel(self.groupBox_2)
self.label_25.setObjectName(u"label_25")
self.line = QFrame(self.groupBox_2)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.Shape.HLine)
self.line.setFrameShadow(QFrame.Shadow.Sunken)

self.gridLayout_2.addWidget(self.label_25, 1, 1, 1, 1)
self.gridLayout_2.addWidget(self.line, 1, 1, 1, 1)

self.gridLayout_2.setColumnStretch(1, 1)

Expand Down Expand Up @@ -269,16 +275,6 @@ def retranslateUi(self, ComputedChannel):
self.label_9.setText(QCoreApplication.translate("ComputedChannel", u"Name", None))
self.label.setText(QCoreApplication.translate("ComputedChannel", u"Arguments:", None))
self.groupBox_2.setTitle(QCoreApplication.translate("ComputedChannel", u"Computation mode", None))
self.sample_by_sample.setText(QCoreApplication.translate("ComputedChannel", u"sample by sample", None))
self.label_24.setText(QCoreApplication.translate("ComputedChannel", u"<!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\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"</style></head><body style=\" font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;\"><li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">the function will be called several times for each of the individual time stamp in the time base</li>\n"
"<li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">earch argument will receive the signal sample at the"
" current time stamp</li>\n"
"<li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">the<span style=\" font-weight:700; font-style:italic;\"> t</span> argument will receive the current time stamp value</li></ul></body></html>", None))
self.complete_signal.setText(QCoreApplication.translate("ComputedChannel", u"complete signal", None))
self.label_25.setText(QCoreApplication.translate("ComputedChannel", u"<!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\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
Expand All @@ -289,4 +285,15 @@ def retranslateUi(self, ComputedChannel):
"<li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">each argument will receive the complete signal ndarray</li></ul>\n"
"<ul style=\"margin-top: 0px; margin-bottom:"
" 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;\"><li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">the<span style=\" font-style:italic;\"> </span><span style=\" font-weight:700; font-style:italic;\">t</span><span style=\" font-style:italic;\"> </span>argument will receive the complete time base ndarray</li></ul></body></html>", None))
self.label_24.setText(QCoreApplication.translate("ComputedChannel", u"<!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\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"hr { height: 1px; border-width: 0; }\n"
"</style></head><body style=\" font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;\"><li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">the function will be called several times for each of the individual time stamp in the time base</li>\n"
"<li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">earch argument will receive the signal sample at the"
" current time stamp</li>\n"
"<li style=\" font-family:'MS Shell Dlg 2'; font-size:8pt;\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">the<span style=\" font-weight:700; font-style:italic;\"> t</span> argument will receive the current time stamp value</li></ul></body></html>", None))
self.sample_by_sample.setText(QCoreApplication.translate("ComputedChannel", u"sample by sample", None))
# retranslateUi

166 changes: 85 additions & 81 deletions src/asammdf/gui/ui/define_channel_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@
</property>
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0,1,0,0,0,0,0" columnstretch="0,0,0,0,0">
<property name="leftMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="spacing">
<number>1</number>
</property>
<number>1</number>
</property>
<item row="5" column="1" colspan="4">
<widget class="QPlainTextEdit" name="comment"/>
</item>
Expand All @@ -59,24 +59,24 @@
</property>
<layout class="QGridLayout" name="gridLayout_8">
<property name="leftMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="spacing">
<number>1</number>
</property>
<number>1</number>
</property>
<item row="1" column="2">
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand Down Expand Up @@ -152,7 +152,7 @@
<item row="7" column="1">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand Down Expand Up @@ -182,7 +182,7 @@
<string>Computed channel comment</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set>
</property>
</widget>
</item>
Expand Down Expand Up @@ -216,7 +216,7 @@
<item row="7" column="2">
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand All @@ -233,24 +233,24 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="leftMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="lineWidth">
<number>0</number>
Expand All @@ -263,26 +263,26 @@
<rect>
<x>0</x>
<y>0</y>
<width>713</width>
<height>69</height>
<width>717</width>
<height>71</height>
</rect>
</property>
<layout class="QGridLayout" name="arg_layout">
<property name="leftMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="spacing">
<number>1</number>
</property>
<number>1</number>
</property>
<item row="0" column="2">
<widget class="QPushButton" name="show_definition_btn">
<property name="text">
Expand All @@ -297,7 +297,7 @@
<item row="1" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
Expand Down Expand Up @@ -344,30 +344,41 @@
</property>
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1">
<property name="leftMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<property name="horizontalSpacing">
<number>1</number>
</property>
<property name="verticalSpacing">
<number>1</number>
</property>
<item row="0" column="0">
<widget class="QRadioButton" name="sample_by_sample">
<number>1</number>
</property>
<property name="spacing">
<number>1</number>
</property>
<item row="2" column="0">
<widget class="QRadioButton" name="complete_signal">
<property name="text">
<string>sample by sample</string>
<string>complete signal</string>
</property>
<property name="checked">
<bool>true</bool>
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label_25">
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
hr { height: 1px; border-width: 0; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;the function will be called only once&lt;/li&gt;
&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;each argument will receive the complete signal ndarray&lt;/li&gt;&lt;/ul&gt;
&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;the&lt;span style=&quot; font-style:italic;&quot;&gt; &lt;/span&gt;&lt;span style=&quot; font-weight:700; font-style:italic;&quot;&gt;t&lt;/span&gt;&lt;span style=&quot; font-style:italic;&quot;&gt; &lt;/span&gt;argument will receive the complete time base ndarray&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
Expand All @@ -384,34 +395,27 @@ hr { height: 1px; border-width: 0; }
&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;the&lt;span style=&quot; font-weight:700; font-style:italic;&quot;&gt; t&lt;/span&gt; argument will receive the current time stamp value&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
<enum>Qt::TextFormat::RichText</enum>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="complete_signal">
<item row="0" column="0">
<widget class="QRadioButton" name="sample_by_sample">
<property name="text">
<string>complete signal</string>
<string>sample by sample</string>
</property>
<property name="checked">
<bool>false</bool>
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_25">
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
hr { height: 1px; border-width: 0; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Segoe UI'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;the function will be called only once&lt;/li&gt;
&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;each argument will receive the complete signal ndarray&lt;/li&gt;&lt;/ul&gt;
&lt;ul style=&quot;margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;&quot;&gt;&lt;li style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt;&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;the&lt;span style=&quot; font-style:italic;&quot;&gt; &lt;/span&gt;&lt;span style=&quot; font-weight:700; font-style:italic;&quot;&gt;t&lt;/span&gt;&lt;span style=&quot; font-style:italic;&quot;&gt; &lt;/span&gt;argument will receive the complete time base ndarray&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</string>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
</item>
Expand Down
Loading

0 comments on commit 6e32dd2

Please sign in to comment.