Skip to content

Commit 513834e

Browse files
committed
Add filter input box to republisher dialog UI
1 parent d162a20 commit 513834e

1 file changed

Lines changed: 200 additions & 155 deletions

File tree

src/publisher_select_dialog.ui

Lines changed: 200 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,205 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ui version="4.0">
3-
<class>PublisherSelect</class>
4-
<widget class="QDialog" name="PublisherSelect">
5-
<property name="geometry">
6-
<rect>
7-
<x>0</x>
8-
<y>0</y>
9-
<width>400</width>
10-
<height>300</height>
11-
</rect>
12-
</property>
13-
<property name="minimumSize">
14-
<size>
15-
<width>400</width>
16-
<height>300</height>
17-
</size>
18-
</property>
19-
<property name="windowTitle">
20-
<string>Select topics to be published</string>
21-
</property>
22-
<layout class="QVBoxLayout" name="verticalLayout">
23-
<item>
24-
<widget class="QScrollArea" name="scrollArea">
25-
<property name="widgetResizable">
26-
<bool>true</bool>
27-
</property>
28-
<widget class="QWidget" name="scrollAreaWidgetContents">
29-
<property name="geometry">
30-
<rect>
3+
<class>PublisherSelect</class>
4+
<widget class="QDialog" name="PublisherSelect">
5+
<property name="geometry">
6+
<rect>
317
<x>0</x>
328
<y>0</y>
33-
<width>380</width>
34-
<height>158</height>
35-
</rect>
36-
</property>
37-
<layout class="QVBoxLayout" name="verticalLayout_3">
38-
<property name="spacing">
39-
<number>0</number>
40-
</property>
41-
<property name="leftMargin">
42-
<number>0</number>
43-
</property>
44-
<property name="topMargin">
45-
<number>0</number>
46-
</property>
47-
<property name="rightMargin">
48-
<number>0</number>
49-
</property>
50-
<property name="bottomMargin">
51-
<number>0</number>
52-
</property>
53-
<item>
54-
<layout class="QFormLayout" name="formLayout"/>
55-
</item>
56-
</layout>
57-
</widget>
58-
</widget>
59-
</item>
60-
<item>
61-
<widget class="QRadioButton" name="radioButtonClock">
62-
<property name="focusPolicy">
63-
<enum>Qt::NoFocus</enum>
64-
</property>
65-
<property name="toolTip">
66-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#2e3436;&quot;&gt;Publish the topic [/clock].&lt;/span&gt;&lt;span style=&quot; font-family:'monospace'; color:#2e3436;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-family:'monospace'; color:#2e3436;&quot;&gt;You should set rosparam use_sim_time = true&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
67-
</property>
68-
<property name="text">
69-
<string>Keep original timestamp and publish [/clock]</string>
70-
</property>
71-
<property name="checked">
72-
<bool>true</bool>
73-
</property>
74-
</widget>
75-
</item>
76-
<item>
77-
<widget class="QRadioButton" name="radioButtonHeaderStamp">
78-
<property name="focusPolicy">
79-
<enum>Qt::NoFocus</enum>
80-
</property>
81-
<property name="toolTip">
82-
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#2e3436;&quot;&gt;Pretend it is a new message.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-family:'monospace'; color:#2e3436;&quot;&gt;The timestamp of the original message will be overwritten with ros::Time::Now()&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
83-
</property>
84-
<property name="text">
85-
<string>Overwrite timestamp [std_msgs/Header/stamp]</string>
86-
</property>
87-
</widget>
88-
</item>
89-
<item>
90-
<layout class="QHBoxLayout" name="horizontalLayout">
91-
<item>
92-
<widget class="QPushButton" name="pushButtonSelect">
93-
<property name="focusPolicy">
94-
<enum>Qt::NoFocus</enum>
95-
</property>
96-
<property name="text">
97-
<string>SelectAll</string>
98-
</property>
99-
</widget>
100-
</item>
101-
<item>
102-
<widget class="QPushButton" name="pushButtonDeselect">
103-
<property name="focusPolicy">
104-
<enum>Qt::NoFocus</enum>
105-
</property>
106-
<property name="text">
107-
<string>Deselect All</string>
108-
</property>
109-
</widget>
110-
</item>
9+
<width>400</width>
10+
<height>300</height>
11+
</rect>
12+
</property>
13+
<property name="minimumSize">
14+
<size>
15+
<width>400</width>
16+
<height>300</height>
17+
</size>
18+
</property>
19+
<property name="windowTitle">
20+
<string>Select topics to be published</string>
21+
</property>
22+
<layout class="QVBoxLayout" name="verticalLayout">
23+
<item>
24+
<layout class="QHBoxLayout" name="horizontalLayoutFilter">
25+
<item>
26+
<spacer name="horizontalSpacerFilter">
27+
<property name="orientation">
28+
<enum>Qt::Horizontal</enum>
29+
</property>
30+
<property name="sizeHint" stdset="0">
31+
<size>
32+
<width>40</width>
33+
<height>20</height>
34+
</size>
35+
</property>
36+
</spacer>
37+
</item>
38+
<item>
39+
<widget class="QLabel" name="labelFilter">
40+
<property name="text">
41+
<string>Filter: </string>
42+
</property>
43+
</widget>
44+
</item>
45+
<item>
46+
<widget class="QLineEdit" name="lineEditFilter">
47+
<property name="maximumSize">
48+
<size>
49+
<width>300</width>
50+
<height>16777215</height>
51+
</size>
52+
</property>
53+
<property name="clearButtonEnabled">
54+
<bool>true</bool>
55+
</property>
56+
</widget>
57+
</item>
58+
</layout>
59+
</item>
60+
<item>
61+
<widget class="QScrollArea" name="scrollArea">
62+
<property name="widgetResizable">
63+
<bool>true</bool>
64+
</property>
65+
<widget class="QWidget" name="scrollAreaWidgetContents">
66+
<property name="geometry">
67+
<rect>
68+
<x>0</x>
69+
<y>0</y>
70+
<width>380</width>
71+
<height>158</height>
72+
</rect>
73+
</property>
74+
<layout class="QVBoxLayout" name="verticalLayout_3">
75+
<property name="spacing">
76+
<number>0</number>
77+
</property>
78+
<property name="leftMargin">
79+
<number>0</number>
80+
</property>
81+
<property name="topMargin">
82+
<number>0</number>
83+
</property>
84+
<property name="rightMargin">
85+
<number>0</number>
86+
</property>
87+
<property name="bottomMargin">
88+
<number>0</number>
89+
</property>
90+
<item>
91+
<layout class="QFormLayout" name="formLayout" />
92+
</item>
93+
</layout>
94+
</widget>
95+
</widget>
96+
</item>
97+
<item>
98+
<widget class="QRadioButton" name="radioButtonClock">
99+
<property name="focusPolicy">
100+
<enum>Qt::NoFocus</enum>
101+
</property>
102+
<property name="toolTip">
103+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot;
104+
color:#2e3436;&quot;&gt;Publish the topic [/clock].&lt;/span&gt;&lt;span style=&quot;
105+
font-family:'monospace'; color:#2e3436;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;span
106+
style=&quot; font-family:'monospace'; color:#2e3436;&quot;&gt;You should set rosparam
107+
use_sim_time = true&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
108+
</property>
109+
<property name="text">
110+
<string>Keep original timestamp and publish [/clock]</string>
111+
</property>
112+
<property name="checked">
113+
<bool>true</bool>
114+
</property>
115+
</widget>
116+
</item>
117+
<item>
118+
<widget class="QRadioButton" name="radioButtonHeaderStamp">
119+
<property name="focusPolicy">
120+
<enum>Qt::NoFocus</enum>
121+
</property>
122+
<property name="toolTip">
123+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot;
124+
color:#2e3436;&quot;&gt;Pretend it is a new
125+
message.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-family:'monospace';
126+
color:#2e3436;&quot;&gt;The timestamp of the original message will be overwritten with
127+
ros::Time::Now()&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
128+
</property>
129+
<property name="text">
130+
<string>Overwrite timestamp [std_msgs/Header/stamp]</string>
131+
</property>
132+
</widget>
133+
</item>
134+
<item>
135+
<layout class="QHBoxLayout" name="horizontalLayout">
136+
<item>
137+
<widget class="QPushButton" name="pushButtonSelect">
138+
<property name="focusPolicy">
139+
<enum>Qt::NoFocus</enum>
140+
</property>
141+
<property name="text">
142+
<string>SelectAll</string>
143+
</property>
144+
</widget>
145+
</item>
146+
<item>
147+
<widget class="QPushButton" name="pushButtonDeselect">
148+
<property name="focusPolicy">
149+
<enum>Qt::NoFocus</enum>
150+
</property>
151+
<property name="text">
152+
<string>Deselect All</string>
153+
</property>
154+
</widget>
155+
</item>
156+
</layout>
157+
</item>
158+
<item>
159+
<widget class="QDialogButtonBox" name="buttonBox">
160+
<property name="orientation">
161+
<enum>Qt::Horizontal</enum>
162+
</property>
163+
<property name="standardButtons">
164+
<set>QDialogButtonBox::Ok</set>
165+
</property>
166+
</widget>
167+
</item>
111168
</layout>
112-
</item>
113-
<item>
114-
<widget class="QDialogButtonBox" name="buttonBox">
115-
<property name="orientation">
116-
<enum>Qt::Horizontal</enum>
117-
</property>
118-
<property name="standardButtons">
119-
<set>QDialogButtonBox::Ok</set>
120-
</property>
121-
</widget>
122-
</item>
123-
</layout>
124-
</widget>
125-
<resources/>
126-
<connections>
127-
<connection>
128-
<sender>buttonBox</sender>
129-
<signal>accepted()</signal>
130-
<receiver>PublisherSelect</receiver>
131-
<slot>accept()</slot>
132-
<hints>
133-
<hint type="sourcelabel">
134-
<x>248</x>
135-
<y>254</y>
136-
</hint>
137-
<hint type="destinationlabel">
138-
<x>157</x>
139-
<y>274</y>
140-
</hint>
141-
</hints>
142-
</connection>
143-
<connection>
144-
<sender>buttonBox</sender>
145-
<signal>rejected()</signal>
146-
<receiver>PublisherSelect</receiver>
147-
<slot>reject()</slot>
148-
<hints>
149-
<hint type="sourcelabel">
150-
<x>316</x>
151-
<y>260</y>
152-
</hint>
153-
<hint type="destinationlabel">
154-
<x>286</x>
155-
<y>274</y>
156-
</hint>
157-
</hints>
158-
</connection>
159-
</connections>
160-
</ui>
169+
</widget>
170+
<resources />
171+
<connections>
172+
<connection>
173+
<sender>buttonBox</sender>
174+
<signal>accepted()</signal>
175+
<receiver>PublisherSelect</receiver>
176+
<slot>accept()</slot>
177+
<hints>
178+
<hint type="sourcelabel">
179+
<x>248</x>
180+
<y>254</y>
181+
</hint>
182+
<hint type="destinationlabel">
183+
<x>157</x>
184+
<y>274</y>
185+
</hint>
186+
</hints>
187+
</connection>
188+
<connection>
189+
<sender>buttonBox</sender>
190+
<signal>rejected()</signal>
191+
<receiver>PublisherSelect</receiver>
192+
<slot>reject()</slot>
193+
<hints>
194+
<hint type="sourcelabel">
195+
<x>316</x>
196+
<y>260</y>
197+
</hint>
198+
<hint type="destinationlabel">
199+
<x>286</x>
200+
<y>274</y>
201+
</hint>
202+
</hints>
203+
</connection>
204+
</connections>
205+
</ui>

0 commit comments

Comments
 (0)