splitguides 0.10.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. splitguides/__init__.py +1 -0
  2. splitguides/__main__.py +15 -0
  3. splitguides/_version.py +2 -0
  4. splitguides/build_ui.py +71 -0
  5. splitguides/exceptions.py +4 -0
  6. splitguides/hotkeys.py +54 -0
  7. splitguides/livesplit_client.py +303 -0
  8. splitguides/note_parser.py +260 -0
  9. splitguides/server/__init__.py +1 -0
  10. splitguides/server/__main__.py +58 -0
  11. splitguides/server/split_server.py +129 -0
  12. splitguides/settings.py +231 -0
  13. splitguides/static/desktop.css +146 -0
  14. splitguides/static/server.css +160 -0
  15. splitguides/static/streamlistener.js +18 -0
  16. splitguides/templates/desktop.html +25 -0
  17. splitguides/templates/server.html +12 -0
  18. splitguides/ui/__init__.py +0 -0
  19. splitguides/ui/color.py +50 -0
  20. splitguides/ui/custom_elements/__init__.py +18 -0
  21. splitguides/ui/hotkey_manager.py +92 -0
  22. splitguides/ui/layouts/__init__.py +8 -0
  23. splitguides/ui/layouts/build/__init__.py +0 -0
  24. splitguides/ui/layouts/build/main_window.py +61 -0
  25. splitguides/ui/layouts/build/server_settings.py +349 -0
  26. splitguides/ui/layouts/build/settings.py +318 -0
  27. splitguides/ui/layouts/main_window.ui +64 -0
  28. splitguides/ui/layouts/server_settings.ui +394 -0
  29. splitguides/ui/layouts/settings.ui +382 -0
  30. splitguides/ui/main.pyproject +3 -0
  31. splitguides/ui/main_window.py +492 -0
  32. splitguides/ui/server_settings_ui.py +191 -0
  33. splitguides/ui/settings_ui.py +241 -0
  34. splitguides-0.10.1.dist-info/METADATA +199 -0
  35. splitguides-0.10.1.dist-info/RECORD +39 -0
  36. splitguides-0.10.1.dist-info/WHEEL +5 -0
  37. splitguides-0.10.1.dist-info/entry_points.txt +3 -0
  38. splitguides-0.10.1.dist-info/licenses/COPYING +674 -0
  39. splitguides-0.10.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,64 @@
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>800</width>
10
+ <height>800</height>
11
+ </rect>
12
+ </property>
13
+ <property name="font">
14
+ <font>
15
+ <pointsize>10</pointsize>
16
+ </font>
17
+ </property>
18
+ <property name="windowTitle">
19
+ <string>SplitGuides</string>
20
+ </property>
21
+ <widget class="QWidget" name="centralWidget">
22
+ <layout class="QGridLayout" name="gridLayout">
23
+ <item row="0" column="0">
24
+ <widget class="QWebEngineView" name="notes" native="true"/>
25
+ </item>
26
+ </layout>
27
+ </widget>
28
+ <widget class="QMenuBar" name="menubar">
29
+ <property name="enabled">
30
+ <bool>true</bool>
31
+ </property>
32
+ <property name="geometry">
33
+ <rect>
34
+ <x>0</x>
35
+ <y>0</y>
36
+ <width>800</width>
37
+ <height>23</height>
38
+ </rect>
39
+ </property>
40
+ <property name="font">
41
+ <font>
42
+ <pointsize>10</pointsize>
43
+ </font>
44
+ </property>
45
+ </widget>
46
+ <widget class="QStatusBar" name="statusbar">
47
+ <property name="font">
48
+ <font>
49
+ <pointsize>12</pointsize>
50
+ </font>
51
+ </property>
52
+ </widget>
53
+ </widget>
54
+ <customwidgets>
55
+ <customwidget>
56
+ <class>QWebEngineView</class>
57
+ <extends>QWidget</extends>
58
+ <header>PySide2.QtWebEngineWidgets</header>
59
+ <container>1</container>
60
+ </customwidget>
61
+ </customwidgets>
62
+ <resources/>
63
+ <connections/>
64
+ </ui>
@@ -0,0 +1,394 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>ServerSettings</class>
4
+ <widget class="QDialog" name="ServerSettings">
5
+ <property name="geometry">
6
+ <rect>
7
+ <x>0</x>
8
+ <y>0</y>
9
+ <width>400</width>
10
+ <height>535</height>
11
+ </rect>
12
+ </property>
13
+ <property name="windowTitle">
14
+ <string>SplitGuides Server Settings</string>
15
+ </property>
16
+ <layout class="QGridLayout" name="gridLayout">
17
+ <item row="0" column="0">
18
+ <layout class="QFormLayout" name="formLayout">
19
+ <property name="leftMargin">
20
+ <number>5</number>
21
+ </property>
22
+ <property name="topMargin">
23
+ <number>5</number>
24
+ </property>
25
+ <property name="rightMargin">
26
+ <number>5</number>
27
+ </property>
28
+ <property name="bottomMargin">
29
+ <number>5</number>
30
+ </property>
31
+ <item row="0" column="0">
32
+ <widget class="QLabel" name="hostname_label">
33
+ <property name="font">
34
+ <font>
35
+ <pointsize>10</pointsize>
36
+ </font>
37
+ </property>
38
+ <property name="text">
39
+ <string>Livesplit Server Hostname:</string>
40
+ </property>
41
+ </widget>
42
+ </item>
43
+ <item row="0" column="1">
44
+ <widget class="QLineEdit" name="hostname_edit">
45
+ <property name="font">
46
+ <font>
47
+ <pointsize>10</pointsize>
48
+ </font>
49
+ </property>
50
+ <property name="text">
51
+ <string>localhost</string>
52
+ </property>
53
+ </widget>
54
+ </item>
55
+ <item row="1" column="0">
56
+ <widget class="QLabel" name="port_label">
57
+ <property name="font">
58
+ <font>
59
+ <pointsize>10</pointsize>
60
+ </font>
61
+ </property>
62
+ <property name="text">
63
+ <string>Livesplit Server Port:</string>
64
+ </property>
65
+ </widget>
66
+ </item>
67
+ <item row="1" column="1">
68
+ <widget class="QLineEdit" name="port_edit">
69
+ <property name="font">
70
+ <font>
71
+ <pointsize>10</pointsize>
72
+ </font>
73
+ </property>
74
+ <property name="text">
75
+ <string>16834</string>
76
+ </property>
77
+ </widget>
78
+ </item>
79
+ <item row="2" column="0" colspan="2">
80
+ <widget class="Line" name="divider_1">
81
+ <property name="orientation">
82
+ <enum>Qt::Horizontal</enum>
83
+ </property>
84
+ </widget>
85
+ </item>
86
+ <item row="3" column="0">
87
+ <widget class="QLabel" name="previous_label">
88
+ <property name="text">
89
+ <string>Show Previous Splits:</string>
90
+ </property>
91
+ </widget>
92
+ </item>
93
+ <item row="3" column="1">
94
+ <widget class="QLineEdit" name="previous_edit">
95
+ <property name="text">
96
+ <string>0</string>
97
+ </property>
98
+ </widget>
99
+ </item>
100
+ <item row="4" column="0">
101
+ <widget class="QLabel" name="advance_label">
102
+ <property name="font">
103
+ <font>
104
+ <pointsize>10</pointsize>
105
+ </font>
106
+ </property>
107
+ <property name="text">
108
+ <string>Show Next Splits:</string>
109
+ </property>
110
+ </widget>
111
+ </item>
112
+ <item row="4" column="1">
113
+ <widget class="QLineEdit" name="advance_edit">
114
+ <property name="font">
115
+ <font>
116
+ <pointsize>10</pointsize>
117
+ </font>
118
+ </property>
119
+ <property name="text">
120
+ <string>2</string>
121
+ </property>
122
+ </widget>
123
+ </item>
124
+ <item row="5" column="0">
125
+ <widget class="QLabel" name="separator_label">
126
+ <property name="font">
127
+ <font>
128
+ <pointsize>10</pointsize>
129
+ </font>
130
+ </property>
131
+ <property name="text">
132
+ <string>Split Separator:</string>
133
+ </property>
134
+ </widget>
135
+ </item>
136
+ <item row="5" column="1">
137
+ <widget class="QLineEdit" name="separator_edit">
138
+ <property name="font">
139
+ <font>
140
+ <pointsize>10</pointsize>
141
+ </font>
142
+ </property>
143
+ <property name="toolTip">
144
+ <string>Leave blank for empty line as separator</string>
145
+ </property>
146
+ <property name="placeholderText">
147
+ <string>Empty line</string>
148
+ </property>
149
+ </widget>
150
+ </item>
151
+ <item row="6" column="0" colspan="2">
152
+ <widget class="Line" name="divider_2">
153
+ <property name="orientation">
154
+ <enum>Qt::Horizontal</enum>
155
+ </property>
156
+ </widget>
157
+ </item>
158
+ <item row="7" column="0">
159
+ <widget class="QLabel" name="fontsize_label">
160
+ <property name="text">
161
+ <string>Font Size:</string>
162
+ </property>
163
+ </widget>
164
+ </item>
165
+ <item row="7" column="1">
166
+ <widget class="QLineEdit" name="fontsize_edit"/>
167
+ </item>
168
+ <item row="8" column="0">
169
+ <widget class="QLabel" name="textcolor_label">
170
+ <property name="text">
171
+ <string>Text Colour:</string>
172
+ </property>
173
+ </widget>
174
+ </item>
175
+ <item row="8" column="1">
176
+ <layout class="QHBoxLayout" name="textcolor_layout">
177
+ <item>
178
+ <widget class="QLineEdit" name="textcolor_edit"/>
179
+ </item>
180
+ <item>
181
+ <widget class="QPushButton" name="textcolor_button">
182
+ <property name="text">
183
+ <string>Select</string>
184
+ </property>
185
+ </widget>
186
+ </item>
187
+ </layout>
188
+ </item>
189
+ <item row="9" column="0">
190
+ <widget class="QLabel" name="bgcolor_label">
191
+ <property name="text">
192
+ <string>Background Colour:</string>
193
+ </property>
194
+ </widget>
195
+ </item>
196
+ <item row="9" column="1">
197
+ <layout class="QHBoxLayout" name="bgcolor_layout">
198
+ <item>
199
+ <widget class="QLineEdit" name="bgcolor_edit"/>
200
+ </item>
201
+ <item>
202
+ <widget class="QPushButton" name="bgcolor_button">
203
+ <property name="text">
204
+ <string>Select</string>
205
+ </property>
206
+ </widget>
207
+ </item>
208
+ </layout>
209
+ </item>
210
+ <item row="10" column="0" colspan="2">
211
+ <widget class="Line" name="divider_3">
212
+ <property name="orientation">
213
+ <enum>Qt::Horizontal</enum>
214
+ </property>
215
+ </widget>
216
+ </item>
217
+ <item row="11" column="0">
218
+ <widget class="QLabel" name="htmltemplate_label">
219
+ <property name="text">
220
+ <string>HTML Template:</string>
221
+ </property>
222
+ </widget>
223
+ </item>
224
+ <item row="11" column="1">
225
+ <layout class="QHBoxLayout" name="horizontalLayout">
226
+ <item>
227
+ <widget class="QLineEdit" name="htmltemplate_edit">
228
+ <property name="enabled">
229
+ <bool>false</bool>
230
+ </property>
231
+ </widget>
232
+ </item>
233
+ <item>
234
+ <widget class="QToolButton" name="htmltemplate_button">
235
+ <property name="text">
236
+ <string>...</string>
237
+ </property>
238
+ </widget>
239
+ </item>
240
+ </layout>
241
+ </item>
242
+ <item row="12" column="0">
243
+ <widget class="QLabel" name="css_label">
244
+ <property name="text">
245
+ <string>CSS:</string>
246
+ </property>
247
+ </widget>
248
+ </item>
249
+ <item row="12" column="1">
250
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
251
+ <item>
252
+ <widget class="QLineEdit" name="css_edit">
253
+ <property name="enabled">
254
+ <bool>false</bool>
255
+ </property>
256
+ </widget>
257
+ </item>
258
+ <item>
259
+ <widget class="QToolButton" name="css_button">
260
+ <property name="text">
261
+ <string>...</string>
262
+ </property>
263
+ </widget>
264
+ </item>
265
+ </layout>
266
+ </item>
267
+ <item row="13" column="0" colspan="2">
268
+ <widget class="Line" name="divider_4">
269
+ <property name="orientation">
270
+ <enum>Qt::Horizontal</enum>
271
+ </property>
272
+ </widget>
273
+ </item>
274
+ <item row="14" column="0">
275
+ <widget class="QLabel" name="nextsplitkey_label">
276
+ <property name="text">
277
+ <string>Next Split Hotkey:</string>
278
+ </property>
279
+ </widget>
280
+ </item>
281
+ <item row="14" column="1">
282
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
283
+ <item>
284
+ <widget class="QLineEdit" name="nextsplitkey_edit">
285
+ <property name="enabled">
286
+ <bool>false</bool>
287
+ </property>
288
+ </widget>
289
+ </item>
290
+ <item>
291
+ <widget class="QPushButton" name="nextsplitkey_button">
292
+ <property name="text">
293
+ <string>Select</string>
294
+ </property>
295
+ </widget>
296
+ </item>
297
+ </layout>
298
+ </item>
299
+ <item row="15" column="0">
300
+ <widget class="QLabel" name="previoussplitkey_label">
301
+ <property name="text">
302
+ <string>Previous Split Hotkey:</string>
303
+ </property>
304
+ </widget>
305
+ </item>
306
+ <item row="15" column="1">
307
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
308
+ <item>
309
+ <widget class="QLineEdit" name="previoussplitkey_edit">
310
+ <property name="enabled">
311
+ <bool>false</bool>
312
+ </property>
313
+ </widget>
314
+ </item>
315
+ <item>
316
+ <widget class="QPushButton" name="previoussplitkey_button">
317
+ <property name="text">
318
+ <string>Select</string>
319
+ </property>
320
+ </widget>
321
+ </item>
322
+ </layout>
323
+ </item>
324
+ <item row="17" column="0">
325
+ <widget class="QLabel" name="noteserverhost_label">
326
+ <property name="text">
327
+ <string>Note Server Hostname:</string>
328
+ </property>
329
+ </widget>
330
+ </item>
331
+ <item row="17" column="1">
332
+ <widget class="QLineEdit" name="noteserverhost_edit"/>
333
+ </item>
334
+ <item row="18" column="0">
335
+ <widget class="QLabel" name="noteserverport_label">
336
+ <property name="text">
337
+ <string>Note Server Port:</string>
338
+ </property>
339
+ </widget>
340
+ </item>
341
+ <item row="18" column="1">
342
+ <widget class="QLineEdit" name="noteserverport_edit"/>
343
+ </item>
344
+ <item row="16" column="0" colspan="2">
345
+ <widget class="Line" name="divider_5">
346
+ <property name="orientation">
347
+ <enum>Qt::Horizontal</enum>
348
+ </property>
349
+ </widget>
350
+ </item>
351
+ </layout>
352
+ </item>
353
+ <item row="1" column="0">
354
+ <widget class="QDialogButtonBox" name="confirm_cancel_box">
355
+ <property name="font">
356
+ <font>
357
+ <pointsize>10</pointsize>
358
+ </font>
359
+ </property>
360
+ <property name="orientation">
361
+ <enum>Qt::Horizontal</enum>
362
+ </property>
363
+ <property name="standardButtons">
364
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
365
+ </property>
366
+ </widget>
367
+ </item>
368
+ </layout>
369
+ </widget>
370
+ <tabstops>
371
+ <tabstop>hostname_edit</tabstop>
372
+ <tabstop>port_edit</tabstop>
373
+ <tabstop>previous_edit</tabstop>
374
+ <tabstop>advance_edit</tabstop>
375
+ <tabstop>separator_edit</tabstop>
376
+ <tabstop>fontsize_edit</tabstop>
377
+ <tabstop>textcolor_edit</tabstop>
378
+ <tabstop>textcolor_button</tabstop>
379
+ <tabstop>bgcolor_edit</tabstop>
380
+ <tabstop>bgcolor_button</tabstop>
381
+ <tabstop>htmltemplate_edit</tabstop>
382
+ <tabstop>htmltemplate_button</tabstop>
383
+ <tabstop>css_edit</tabstop>
384
+ <tabstop>css_button</tabstop>
385
+ <tabstop>nextsplitkey_edit</tabstop>
386
+ <tabstop>nextsplitkey_button</tabstop>
387
+ <tabstop>previoussplitkey_edit</tabstop>
388
+ <tabstop>previoussplitkey_button</tabstop>
389
+ <tabstop>noteserverhost_edit</tabstop>
390
+ <tabstop>noteserverport_edit</tabstop>
391
+ </tabstops>
392
+ <resources/>
393
+ <connections/>
394
+ </ui>