Skip to content

Commit 5eed27a

Browse files
committed
qtdragon metric -add a control panel
1 parent 296db07 commit 5eed27a

3 files changed

Lines changed: 256 additions & 1 deletion

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
net rate halui.axis.jog-speed panel.Jog-rate-f
2+
3+
net sx halui.axis.x.select panel.axis-x
4+
net sy halui.axis.y.select panel.axis-y
5+
net sz halui.axis.z.select panel.axis-z
6+
7+
net jog-p halui.axis.selected.plus
8+
net jog-m halui.axis.selected.minus
9+
net m0 halui.gui.mdi-command-MACRO0 panel.mdi-0
10+
net m1 halui.gui.mdi-command-MACRO1 panel.mdi-1
11+
12+
net pause halui.cycle.start panel.cycle-start
13+
net start halui.cycle.pause panel.cycle-pause
14+
15+
net cancel halui.gui.cancel panel.cancel
16+
net ok halui.gui.ok panel.ok
17+
Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>MainWindow</class>
4+
<widget class="QMainWindow" name="MainWindow">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>313</width>
10+
<height>467</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string>MainWindow</string>
15+
</property>
16+
<widget class="QWidget" name="centralwidget">
17+
<layout class="QHBoxLayout" name="horizontalLayout">
18+
<item>
19+
<layout class="QVBoxLayout" name="verticalLayout">
20+
<item>
21+
<widget class="QGroupBox" name="groupBox">
22+
<property name="title">
23+
<string>Axis Selection</string>
24+
</property>
25+
<layout class="QHBoxLayout" name="horizontalLayout_2">
26+
<item>
27+
<widget class="PushButton" name="pushbutton">
28+
<property name="text">
29+
<string>X</string>
30+
</property>
31+
<property name="pin_name" stdset="0">
32+
<string>axis-x</string>
33+
</property>
34+
</widget>
35+
</item>
36+
<item>
37+
<widget class="PushButton" name="pushbutton_2">
38+
<property name="text">
39+
<string>Y</string>
40+
</property>
41+
<property name="pin_name" stdset="0">
42+
<string>axis-y</string>
43+
</property>
44+
</widget>
45+
</item>
46+
<item>
47+
<widget class="PushButton" name="pushbutton_3">
48+
<property name="text">
49+
<string>Z</string>
50+
</property>
51+
<property name="pin_name" stdset="0">
52+
<string>axis-z</string>
53+
</property>
54+
</widget>
55+
</item>
56+
</layout>
57+
</widget>
58+
</item>
59+
<item>
60+
<widget class="QGroupBox" name="groupBox_4">
61+
<property name="title">
62+
<string>Axis Jog</string>
63+
</property>
64+
<layout class="QHBoxLayout" name="horizontalLayout_5">
65+
<item>
66+
<widget class="PushButton" name="pushbutton_7">
67+
<property name="text">
68+
<string>+</string>
69+
</property>
70+
<property name="pin_name" stdset="0">
71+
<string>jog-pos</string>
72+
</property>
73+
</widget>
74+
</item>
75+
<item>
76+
<widget class="PushButton" name="pushbutton_8">
77+
<property name="text">
78+
<string>-</string>
79+
</property>
80+
<property name="pin_name" stdset="0">
81+
<string>jog-neg</string>
82+
</property>
83+
</widget>
84+
</item>
85+
</layout>
86+
</widget>
87+
</item>
88+
<item>
89+
<widget class="QGroupBox" name="groupBox_2">
90+
<property name="title">
91+
<string>jog rate</string>
92+
</property>
93+
<layout class="QHBoxLayout" name="horizontalLayout_3">
94+
<item>
95+
<widget class="Slider" name="slider">
96+
<property name="maximum">
97+
<number>300</number>
98+
</property>
99+
<property name="orientation">
100+
<enum>Qt::Horizontal</enum>
101+
</property>
102+
<property name="pin_name" stdset="0">
103+
<string>Jog-rate</string>
104+
</property>
105+
</widget>
106+
</item>
107+
</layout>
108+
</widget>
109+
</item>
110+
<item>
111+
<widget class="QGroupBox" name="groupBox_3">
112+
<property name="title">
113+
<string>MDI Comands</string>
114+
</property>
115+
<layout class="QHBoxLayout" name="horizontalLayout_4">
116+
<item>
117+
<widget class="PushButton" name="pushbutton_4">
118+
<property name="text">
119+
<string>0</string>
120+
</property>
121+
<property name="pin_name" stdset="0">
122+
<string>mdi-0</string>
123+
</property>
124+
</widget>
125+
</item>
126+
<item>
127+
<widget class="PushButton" name="pushbutton_5">
128+
<property name="text">
129+
<string>1</string>
130+
</property>
131+
<property name="pin_name" stdset="0">
132+
<string>mdi-1</string>
133+
</property>
134+
</widget>
135+
</item>
136+
<item>
137+
<widget class="PushButton" name="pushbutton_6">
138+
<property name="text">
139+
<string>2</string>
140+
</property>
141+
<property name="pin_name" stdset="0">
142+
<string>mdi-2</string>
143+
</property>
144+
</widget>
145+
</item>
146+
</layout>
147+
</widget>
148+
</item>
149+
<item>
150+
<widget class="QGroupBox" name="groupBox_7">
151+
<property name="title">
152+
<string>program control</string>
153+
</property>
154+
<layout class="QHBoxLayout" name="horizontalLayout_9">
155+
<item>
156+
<widget class="PushButton" name="pushbutton_16">
157+
<property name="text">
158+
<string>start</string>
159+
</property>
160+
<property name="pin_name" stdset="0">
161+
<string>cycle-start</string>
162+
</property>
163+
</widget>
164+
</item>
165+
<item>
166+
<widget class="PushButton" name="pushbutton_17">
167+
<property name="text">
168+
<string>pause</string>
169+
</property>
170+
<property name="pin_name" stdset="0">
171+
<string>cycle-pause</string>
172+
</property>
173+
</widget>
174+
</item>
175+
</layout>
176+
</widget>
177+
</item>
178+
<item>
179+
<widget class="QGroupBox" name="groupBox_8">
180+
<property name="title">
181+
<string>dialog control</string>
182+
</property>
183+
<layout class="QHBoxLayout" name="horizontalLayout_10">
184+
<item>
185+
<widget class="PushButton" name="pushbutton_18">
186+
<property name="text">
187+
<string>ok</string>
188+
</property>
189+
<property name="pin_name" stdset="0">
190+
<string>ok</string>
191+
</property>
192+
</widget>
193+
</item>
194+
<item>
195+
<widget class="PushButton" name="pushbutton_19">
196+
<property name="text">
197+
<string>cancel</string>
198+
</property>
199+
<property name="pin_name" stdset="0">
200+
<string>cancel</string>
201+
</property>
202+
</widget>
203+
</item>
204+
</layout>
205+
</widget>
206+
</item>
207+
</layout>
208+
</item>
209+
</layout>
210+
</widget>
211+
<widget class="QMenuBar" name="menubar">
212+
<property name="geometry">
213+
<rect>
214+
<x>0</x>
215+
<y>0</y>
216+
<width>313</width>
217+
<height>22</height>
218+
</rect>
219+
</property>
220+
</widget>
221+
<widget class="QStatusBar" name="statusbar"/>
222+
</widget>
223+
<customwidgets>
224+
<customwidget>
225+
<class>PushButton</class>
226+
<extends>QPushButton</extends>
227+
<header>qtvcp.widgets.simple_widgets</header>
228+
</customwidget>
229+
<customwidget>
230+
<class>Slider</class>
231+
<extends>QSlider</extends>
232+
<header>qtvcp.widgets.simple_widgets</header>
233+
</customwidget>
234+
</customwidgets>
235+
<resources/>
236+
<connections/>
237+
</ui>

configs/sim/qtdragon/qtdragon_xyz/qtdragon_metric.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ POSTGUI_HALFILE = qtdragon_postgui.hal
166166
# you can add multiple entries
167167
# uncomment this one to print all HAL pins that start with qt
168168
#POSTGUI_HALCMD = show pin qt
169-
169+
POSTGUI_HALCMD = show pin halui.gui
170+
POSTGUI_HALCMD = loadusr qtvcp -H panel.hal panel
170171
[HALUI]
171172
# no content
172173

0 commit comments

Comments
 (0)