Skip to content

Commit 37ed92d

Browse files
authored
Added new Signal Event Inspector
1 parent c7bf00c commit 37ed92d

File tree

4 files changed

+936
-50
lines changed

4 files changed

+936
-50
lines changed

plugindevtools/PluginDevTools/DockerWidget.ui

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,19 @@
239239
</property>
240240
</widget>
241241
</item>
242+
<item>
243+
<widget class="QToolButton" name="inspectorEventViewerBtn">
244+
<property name="toolTip">
245+
<string>Event and Signal Viewer/Debugger</string>
246+
</property>
247+
<property name="text">
248+
<string>...</string>
249+
</property>
250+
<property name="icon">
251+
<iconset theme="klipper"/>
252+
</property>
253+
</widget>
254+
</item>
242255
<item>
243256
<widget class="QLineEdit" name="inspectorTableFilter">
244257
<property name="placeholderText">
Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>EventViewerWidget</class>
4+
<widget class="QWidget" name="EventViewerWidget">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>474</width>
10+
<height>711</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string>Form</string>
15+
</property>
16+
<layout class="QVBoxLayout" name="verticalLayout" stretch="1,1,19,0,2">
17+
<property name="spacing">
18+
<number>1</number>
19+
</property>
20+
<property name="leftMargin">
21+
<number>1</number>
22+
</property>
23+
<property name="topMargin">
24+
<number>1</number>
25+
</property>
26+
<property name="rightMargin">
27+
<number>1</number>
28+
</property>
29+
<property name="bottomMargin">
30+
<number>1</number>
31+
</property>
32+
<item>
33+
<widget class="QLabel" name="eventTargetLabel">
34+
<property name="text">
35+
<string>Events For: None</string>
36+
</property>
37+
</widget>
38+
</item>
39+
<item>
40+
<layout class="QHBoxLayout" name="horizontalLayout">
41+
<property name="spacing">
42+
<number>1</number>
43+
</property>
44+
<item>
45+
<widget class="QToolButton" name="startBtn">
46+
<property name="text">
47+
<string>...</string>
48+
</property>
49+
<property name="icon">
50+
<iconset theme="media-playback-start">
51+
<normaloff>.</normaloff>.</iconset>
52+
</property>
53+
</widget>
54+
</item>
55+
<item>
56+
<widget class="QToolButton" name="clearBtn">
57+
<property name="text">
58+
<string>...</string>
59+
</property>
60+
<property name="icon">
61+
<iconset theme="delete">
62+
<normaloff>.</normaloff>.</iconset>
63+
</property>
64+
</widget>
65+
</item>
66+
<item>
67+
<widget class="QComboBox" name="outputCmb">
68+
<item>
69+
<property name="text">
70+
<string>ev: show|std: terminal</string>
71+
</property>
72+
</item>
73+
<item>
74+
<property name="text">
75+
<string>ev: show|std: show</string>
76+
</property>
77+
</item>
78+
<item>
79+
<property name="text">
80+
<string>ev: terminal|std: terminal</string>
81+
</property>
82+
</item>
83+
</widget>
84+
</item>
85+
<item>
86+
<widget class="QComboBox" name="formatOutputCmb">
87+
<item>
88+
<property name="text">
89+
<string>First only</string>
90+
</property>
91+
</item>
92+
<item>
93+
<property name="text">
94+
<string>All folded</string>
95+
</property>
96+
</item>
97+
<item>
98+
<property name="text">
99+
<string>All unfold</string>
100+
</property>
101+
</item>
102+
</widget>
103+
</item>
104+
</layout>
105+
</item>
106+
<item>
107+
<widget class="QSplitter" name="splitter">
108+
<property name="orientation">
109+
<enum>Qt::Horizontal</enum>
110+
</property>
111+
<widget class="QTreeView" name="eventListenTreeView">
112+
<property name="indentation">
113+
<number>10</number>
114+
</property>
115+
<attribute name="headerVisible">
116+
<bool>true</bool>
117+
</attribute>
118+
<attribute name="headerDefaultSectionSize">
119+
<number>100</number>
120+
</attribute>
121+
<attribute name="headerStretchLastSection">
122+
<bool>true</bool>
123+
</attribute>
124+
</widget>
125+
<widget class="QTabWidget" name="tabWidget">
126+
<property name="currentIndex">
127+
<number>0</number>
128+
</property>
129+
<widget class="QWidget" name="tab_3">
130+
<attribute name="title">
131+
<string>Signals</string>
132+
</attribute>
133+
<layout class="QVBoxLayout" name="verticalLayout_4">
134+
<property name="spacing">
135+
<number>1</number>
136+
</property>
137+
<property name="leftMargin">
138+
<number>1</number>
139+
</property>
140+
<property name="topMargin">
141+
<number>1</number>
142+
</property>
143+
<property name="rightMargin">
144+
<number>1</number>
145+
</property>
146+
<property name="bottomMargin">
147+
<number>1</number>
148+
</property>
149+
<item>
150+
<widget class="QTreeView" name="signalConnectTreeView">
151+
<property name="indentation">
152+
<number>10</number>
153+
</property>
154+
<attribute name="headerVisible">
155+
<bool>false</bool>
156+
</attribute>
157+
<attribute name="headerMinimumSectionSize">
158+
<number>30</number>
159+
</attribute>
160+
<attribute name="headerDefaultSectionSize">
161+
<number>30</number>
162+
</attribute>
163+
</widget>
164+
</item>
165+
</layout>
166+
</widget>
167+
<widget class="QWidget" name="tab">
168+
<attribute name="title">
169+
<string>Events</string>
170+
</attribute>
171+
<layout class="QVBoxLayout" name="verticalLayout_2">
172+
<property name="spacing">
173+
<number>1</number>
174+
</property>
175+
<property name="leftMargin">
176+
<number>1</number>
177+
</property>
178+
<property name="topMargin">
179+
<number>1</number>
180+
</property>
181+
<property name="rightMargin">
182+
<number>1</number>
183+
</property>
184+
<property name="bottomMargin">
185+
<number>1</number>
186+
</property>
187+
<item>
188+
<widget class="QComboBox" name="eventFilterTypeCmb">
189+
<item>
190+
<property name="text">
191+
<string>widget.installEventFilter(self)</string>
192+
</property>
193+
</item>
194+
<item>
195+
<property name="text">
196+
<string>qApp.installEventFilter(self)</string>
197+
</property>
198+
</item>
199+
</widget>
200+
</item>
201+
<item>
202+
<widget class="QTreeView" name="eventConnectTreeView">
203+
<property name="indentation">
204+
<number>10</number>
205+
</property>
206+
<attribute name="headerVisible">
207+
<bool>false</bool>
208+
</attribute>
209+
<attribute name="headerMinimumSectionSize">
210+
<number>30</number>
211+
</attribute>
212+
<attribute name="headerDefaultSectionSize">
213+
<number>30</number>
214+
</attribute>
215+
</widget>
216+
</item>
217+
</layout>
218+
</widget>
219+
<widget class="QWidget" name="tab_2">
220+
<attribute name="title">
221+
<string>Data</string>
222+
</attribute>
223+
<layout class="QVBoxLayout" name="verticalLayout_3">
224+
<property name="spacing">
225+
<number>1</number>
226+
</property>
227+
<property name="leftMargin">
228+
<number>1</number>
229+
</property>
230+
<property name="topMargin">
231+
<number>1</number>
232+
</property>
233+
<property name="rightMargin">
234+
<number>1</number>
235+
</property>
236+
<property name="bottomMargin">
237+
<number>1</number>
238+
</property>
239+
<item>
240+
<widget class="QTableView" name="eventDataTableView">
241+
<attribute name="horizontalHeaderStretchLastSection">
242+
<bool>true</bool>
243+
</attribute>
244+
<attribute name="verticalHeaderVisible">
245+
<bool>false</bool>
246+
</attribute>
247+
</widget>
248+
</item>
249+
</layout>
250+
</widget>
251+
</widget>
252+
</widget>
253+
</item>
254+
<item>
255+
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="9,1">
256+
<item>
257+
<widget class="QLabel" name="eventCodeLabel">
258+
<property name="text">
259+
<string>Code For: </string>
260+
</property>
261+
</widget>
262+
</item>
263+
<item>
264+
<widget class="QPushButton" name="eventCodeBtn">
265+
<property name="text">
266+
<string>UPDATE</string>
267+
</property>
268+
</widget>
269+
</item>
270+
</layout>
271+
</item>
272+
<item>
273+
<widget class="QPlainTextEdit" name="eventCodeTextEdit">
274+
<property name="placeholderText">
275+
<string>Parameters are stored in params list, ex: first element is params[0]</string>
276+
</property>
277+
</widget>
278+
</item>
279+
</layout>
280+
</widget>
281+
<resources/>
282+
<connections/>
283+
</ui>

plugindevtools/PluginDevTools/Manual.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h4><u>Selector/Sampler</u></h4> - for selecting with the mouse PyQt5 objects. H
1717
<h4><u>Inspector</u></h4> - Lets you browse/search the PyQt5 tree and also view all the properties (including inherited ones).
1818
With quick access to QT5 docs, parent traversing, code generation (code generation is primitive at this point but will improve with time), and show location of widget(when holding the button).
1919

20+
<h5><u>Event/Signal Viewer</u></h5> - Ability to monitor signals and events and inject code into them. Just select the object in question in Inspector and press the "Event and Signal Viewer/Debugger" button. (Beta)
21+
2022
<h4><u>Console</u></h4> - A more basic version of scripter made for mostly quick tests or actions. Enter will execute the code (Use shift+enter for new lines if needed)
2123

2224
You can also bind console to your favorite text editor and send the code from the text editor directly to console.
@@ -28,5 +30,7 @@ <h4><u>Actions List</u></h4> - Full list of actions and their descriptions. Doub
2830
<h4><u>Krita API</u></h4> - Collection of Krita API commands and optionally download API documentation. Can also generate python autocomplete file.
2931

3032

33+
34+
3135
</body>
3236
</html>

0 commit comments

Comments
 (0)