forked from DOMjudge/DOMjura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maindialog.ui
629 lines (629 loc) · 17.4 KB
/
maindialog.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DJ::View::MainDialog</class>
<widget class="QWidget" name="DJ::View::MainDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>880</width>
<height>825</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>880</width>
<height>440</height>
</size>
</property>
<property name="windowTitle">
<string>DOMjura</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>293</height>
</size>
</property>
<property name="title">
<string>1: Source</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonConnect">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Connect</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Contests</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="lineEditPassword">
<property name="echoMode">
<enum>QLineEdit::EchoMode::Password</enum>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelUsername">
<property name="text">
<string>Username</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QLabel" name="label_2">
<property name="minimumSize">
<size>
<width>0</width>
<height>29</height>
</size>
</property>
<property name="text">
<string>This machine needs the "jury" or "admin" role on the DOMjudge server. If IP address authentication is used, you can also set up DOMjudge to allow this machine without username and password. In that case, the username and password fields can be left blank.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelPassword">
<property name="text">
<string>Password</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="lineEditUsername"/>
</item>
<item row="0" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLineEdit" name="lineEditURL"/>
</item>
<item>
<widget class="QLabel" name="labelDOMjudgePath">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>/api</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="comboProtocol">
<item>
<property name="text">
<string>http://</string>
</property>
</item>
<item>
<property name="text">
<string>https://</string>
</property>
</item>
</widget>
</item>
<item row="3" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QComboBox" name="contestsComboBox">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="loadContestsButton">
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Load</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayout_4" columnstretch="1,1">
<property name="horizontalSpacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QGroupBox" name="groupBoxContest">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>2: Contest information</string>
</property>
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,0">
<item row="0" column="1">
<widget class="QLabel" name="labelContestName">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>End</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="labelContestStart">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="labelContestEnd">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Penalty time</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Freeze</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="labelContestPenalty">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Name</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="labelContestFreeze">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Start</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBoxGroups">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>3: Groups to display</string>
</property>
<layout class="QGridLayout" name="gridLayout_5" rowstretch="0,0,0">
<item row="0" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Select the groups to display</string>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayoutGroups"/>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="4" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonQuit">
<property name="text">
<string>Quit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonSettings">
<property name="text">
<string>Settings</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonAbout">
<property name="text">
<string>About</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="groupBoxMode">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>4: Mode</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_6" columnstretch="0,1">
<item row="0" column="0">
<widget class="QRadioButton" name="radioModeLive">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Live mode</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_9">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Live mode can be used during the contest. It will display a live scoreboard</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="checkDuringFreeze">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Show submissions during freeze</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="radioModeResults">
<property name="text">
<string>Results mode</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label_10">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string><html><head/><body><p>Results mode can be used to show the results at the end of the contest. It will resolve all submissions during the freeze</p></body></html></string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonStart">
<property name="text">
<string>Start</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>11</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<tabstops>
<tabstop>comboProtocol</tabstop>
<tabstop>lineEditURL</tabstop>
<tabstop>lineEditUsername</tabstop>
<tabstop>lineEditPassword</tabstop>
<tabstop>loadContestsButton</tabstop>
<tabstop>contestsComboBox</tabstop>
<tabstop>buttonConnect</tabstop>
<tabstop>radioModeLive</tabstop>
<tabstop>checkDuringFreeze</tabstop>
<tabstop>radioModeResults</tabstop>
<tabstop>buttonStart</tabstop>
<tabstop>buttonSettings</tabstop>
<tabstop>buttonQuit</tabstop>
<tabstop>buttonAbout</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonQuit</sender>
<signal>clicked()</signal>
<receiver>DJ::View::MainDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>690</x>
<y>760</y>
</hint>
<hint type="destinationlabel">
<x>399</x>
<y>214</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioModeLive</sender>
<signal>clicked(bool)</signal>
<receiver>checkDuringFreeze</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>96</x>
<y>482</y>
</hint>
<hint type="destinationlabel">
<x>218</x>
<y>503</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioModeResults</sender>
<signal>clicked(bool)</signal>
<receiver>checkDuringFreeze</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>92</x>
<y>541</y>
</hint>
<hint type="destinationlabel">
<x>262</x>
<y>506</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioModeLive</sender>
<signal>clicked(bool)</signal>
<receiver>label_9</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>116</x>
<y>479</y>
</hint>
<hint type="destinationlabel">
<x>198</x>
<y>479</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioModeLive</sender>
<signal>clicked(bool)</signal>
<receiver>label_10</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>100</x>
<y>487</y>
</hint>
<hint type="destinationlabel">
<x>212</x>
<y>544</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioModeResults</sender>
<signal>clicked(bool)</signal>
<receiver>label_9</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>113</x>
<y>536</y>
</hint>
<hint type="destinationlabel">
<x>388</x>
<y>477</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioModeResults</sender>
<signal>clicked(bool)</signal>
<receiver>label_10</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>130</x>
<y>536</y>
</hint>
<hint type="destinationlabel">
<x>322</x>
<y>540</y>
</hint>
</hints>
</connection>
<connection>
<sender>lineEditURL</sender>
<signal>returnPressed()</signal>
<receiver>buttonConnect</receiver>
<slot>click()</slot>
<hints>
<hint type="sourcelabel">
<x>540</x>
<y>49</y>
</hint>
<hint type="destinationlabel">
<x>792</x>
<y>209</y>
</hint>
</hints>
</connection>
<connection>
<sender>lineEditUsername</sender>
<signal>returnPressed()</signal>
<receiver>buttonConnect</receiver>
<slot>click()</slot>
<hints>
<hint type="sourcelabel">
<x>341</x>
<y>80</y>
</hint>
<hint type="destinationlabel">
<x>827</x>
<y>202</y>
</hint>
</hints>
</connection>
<connection>
<sender>lineEditPassword</sender>
<signal>returnPressed()</signal>
<receiver>buttonConnect</receiver>
<slot>click()</slot>
<hints>
<hint type="sourcelabel">
<x>524</x>
<y>111</y>
</hint>
<hint type="destinationlabel">
<x>784</x>
<y>199</y>
</hint>
</hints>
</connection>
</connections>
</ui>