-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathafpolgis_dialog_base.py
705 lines (698 loc) · 47 KB
/
afpolgis_dialog_base.py
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
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'afpolgis_dialog_base.ui'
#
# Created by: PyQt5 UI code generator 5.15.11
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_AfpolGISDialogBase(object):
def setupUi(self, AfpolGISDialogBase):
AfpolGISDialogBase.setObjectName("AfpolGISDialogBase")
AfpolGISDialogBase.resize(876, 775)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(AfpolGISDialogBase.sizePolicy().hasHeightForWidth())
AfpolGISDialogBase.setSizePolicy(sizePolicy)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
AfpolGISDialogBase.setWindowIcon(icon)
self.tabWidget = QtWidgets.QTabWidget(AfpolGISDialogBase)
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 791, 681))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setKerning(True)
self.tabWidget.setFont(font)
self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
self.tabWidget.setUsesScrollButtons(True)
self.tabWidget.setDocumentMode(True)
self.tabWidget.setTabsClosable(False)
self.tabWidget.setMovable(True)
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.layoutWidget = QtWidgets.QWidget(self.tab)
self.layoutWidget.setGeometry(QtCore.QRect(10, 540, 741, 65))
self.layoutWidget.setObjectName("layoutWidget")
self.progressLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.progressLayout.setContentsMargins(0, 0, 0, 0)
self.progressLayout.setSpacing(6)
self.progressLayout.setObjectName("progressLayout")
self.onaProgressBar = QtWidgets.QProgressBar(self.layoutWidget)
self.onaProgressBar.setProperty("value", 0)
self.onaProgressBar.setTextVisible(True)
self.onaProgressBar.setInvertedAppearance(False)
self.onaProgressBar.setObjectName("onaProgressBar")
self.progressLayout.addWidget(self.onaProgressBar)
self.buttonLayout = QtWidgets.QHBoxLayout()
self.buttonLayout.setObjectName("buttonLayout")
self.onaCancelButton = QtWidgets.QPushButton(self.layoutWidget)
self.onaCancelButton.setObjectName("onaCancelButton")
self.buttonLayout.addWidget(self.onaCancelButton)
self.onaOkButton = QtWidgets.QPushButton(self.layoutWidget)
self.onaOkButton.setObjectName("onaOkButton")
self.buttonLayout.addWidget(self.onaOkButton)
self.progressLayout.addLayout(self.buttonLayout)
self.formGroup = QtWidgets.QGroupBox(self.tab)
self.formGroup.setGeometry(QtCore.QRect(10, 200, 741, 111))
self.formGroup.setObjectName("formGroup")
self.formLayout_2 = QtWidgets.QFormLayout(self.formGroup)
self.formLayout_2.setObjectName("formLayout_2")
self.formSelectorLabel_2 = QtWidgets.QLabel(self.formGroup)
self.formSelectorLabel_2.setObjectName("formSelectorLabel_2")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.formSelectorLabel_2)
self.comboOnaForms = QtWidgets.QComboBox(self.formGroup)
self.comboOnaForms.setObjectName("comboOnaForms")
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboOnaForms)
self.geoFieldSelectorLabel_2 = QtWidgets.QLabel(self.formGroup)
self.geoFieldSelectorLabel_2.setObjectName("geoFieldSelectorLabel_2")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.geoFieldSelectorLabel_2)
self.comboOnaGeoFields = QtWidgets.QComboBox(self.formGroup)
self.comboOnaGeoFields.setObjectName("comboOnaGeoFields")
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboOnaGeoFields)
self.authGroup = QtWidgets.QGroupBox(self.tab)
self.authGroup.setGeometry(QtCore.QRect(10, 10, 741, 171))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.authGroup.sizePolicy().hasHeightForWidth())
self.authGroup.setSizePolicy(sizePolicy)
self.authGroup.setObjectName("authGroup")
self.authLayout_2 = QtWidgets.QFormLayout(self.authGroup)
self.authLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
self.authLayout_2.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows)
self.authLayout_2.setObjectName("authLayout_2")
self.apiUrlLabel_2 = QtWidgets.QLabel(self.authGroup)
self.apiUrlLabel_2.setObjectName("apiUrlLabel_2")
self.authLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.apiUrlLabel_2)
self.onadata_api_url = QtWidgets.QLineEdit(self.authGroup)
self.onadata_api_url.setObjectName("onadata_api_url")
self.authLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.onadata_api_url)
self.usernameLabel_2 = QtWidgets.QLabel(self.authGroup)
self.usernameLabel_2.setObjectName("usernameLabel_2")
self.authLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel_2)
self.onadata_username = QtWidgets.QLineEdit(self.authGroup)
self.onadata_username.setObjectName("onadata_username")
self.authLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.onadata_username)
self.passwordLabel_2 = QtWidgets.QLabel(self.authGroup)
self.passwordLabel_2.setObjectName("passwordLabel_2")
self.authLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.passwordLabel_2)
self.onaMLineEdit = QgsPasswordLineEdit(self.authGroup)
self.onaMLineEdit.setObjectName("onaMLineEdit")
self.authLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.onaMLineEdit)
self.btnFetchOnaForms = QtWidgets.QPushButton(self.authGroup)
self.btnFetchOnaForms.setObjectName("btnFetchOnaForms")
self.authLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.btnFetchOnaForms)
self.syncGroup = QtWidgets.QGroupBox(self.tab)
self.syncGroup.setGeometry(QtCore.QRect(10, 330, 741, 181))
self.syncGroup.setObjectName("syncGroup")
self.syncLayout_2 = QtWidgets.QFormLayout(self.syncGroup)
self.syncLayout_2.setObjectName("syncLayout_2")
self.dateFromLabel_2 = QtWidgets.QLabel(self.syncGroup)
self.dateFromLabel_2.setObjectName("dateFromLabel_2")
self.syncLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.dateFromLabel_2)
self.onaDateTimeFrom = QtWidgets.QDateEdit(self.syncGroup)
self.onaDateTimeFrom.setDateTime(QtCore.QDateTime(QtCore.QDate(2024, 1, 1), QtCore.QTime(0, 0, 0)))
self.onaDateTimeFrom.setCalendarPopup(True)
self.onaDateTimeFrom.setObjectName("onaDateTimeFrom")
self.syncLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.onaDateTimeFrom)
self.dateToLabel_2 = QtWidgets.QLabel(self.syncGroup)
self.dateToLabel_2.setObjectName("dateToLabel_2")
self.syncLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.dateToLabel_2)
self.onaDateTimeTo = QtWidgets.QDateEdit(self.syncGroup)
self.onaDateTimeTo.setDateTime(QtCore.QDateTime(QtCore.QDate(2025, 12, 31), QtCore.QTime(0, 0, 0)))
self.onaDateTimeTo.setCalendarPopup(True)
self.onaDateTimeTo.setObjectName("onaDateTimeTo")
self.syncLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.onaDateTimeTo)
self.syncIntervalLabel_2 = QtWidgets.QLabel(self.syncGroup)
self.syncIntervalLabel_2.setObjectName("syncIntervalLabel_2")
self.syncLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.syncIntervalLabel_2)
self.label = QtWidgets.QLabel(self.syncGroup)
self.label.setObjectName("label")
self.syncLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label)
self.onaPageSize = QgsSpinBox(self.syncGroup)
self.onaPageSize.setMinimum(1000)
self.onaPageSize.setMaximum(50000)
self.onaPageSize.setSingleStep(1000)
self.onaPageSize.setProperty("value", 10000)
self.onaPageSize.setShowClearButton(False)
self.onaPageSize.setClearValue(True)
self.onaPageSize.setObjectName("onaPageSize")
self.syncLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.onaPageSize)
self.onaSyncInterval = QtWidgets.QSpinBox(self.syncGroup)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.onaSyncInterval.sizePolicy().hasHeightForWidth())
self.onaSyncInterval.setSizePolicy(sizePolicy)
self.onaSyncInterval.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.onaSyncInterval.setWrapping(False)
self.onaSyncInterval.setMinimum(0)
self.onaSyncInterval.setMaximum(3600)
self.onaSyncInterval.setSingleStep(10)
self.onaSyncInterval.setObjectName("onaSyncInterval")
self.syncLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.onaSyncInterval)
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.authGroup_2 = QtWidgets.QGroupBox(self.tab_2)
self.authGroup_2.setGeometry(QtCore.QRect(10, 10, 741, 171))
self.authGroup_2.setObjectName("authGroup_2")
self.authLayout_3 = QtWidgets.QFormLayout(self.authGroup_2)
self.authLayout_3.setObjectName("authLayout_3")
self.apiUrlLabel_3 = QtWidgets.QLabel(self.authGroup_2)
self.apiUrlLabel_3.setObjectName("apiUrlLabel_3")
self.authLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.apiUrlLabel_3)
self.odk_api_url = QtWidgets.QLineEdit(self.authGroup_2)
self.odk_api_url.setObjectName("odk_api_url")
self.authLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.odk_api_url)
self.usernameLabel_3 = QtWidgets.QLabel(self.authGroup_2)
self.usernameLabel_3.setObjectName("usernameLabel_3")
self.authLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel_3)
self.odk_username = QtWidgets.QLineEdit(self.authGroup_2)
self.odk_username.setObjectName("odk_username")
self.authLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.odk_username)
self.passwordLabel_3 = QtWidgets.QLabel(self.authGroup_2)
self.passwordLabel_3.setObjectName("passwordLabel_3")
self.authLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.passwordLabel_3)
self.odkmLineEdit = QgsPasswordLineEdit(self.authGroup_2)
self.odkmLineEdit.setObjectName("odkmLineEdit")
self.authLayout_3.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.odkmLineEdit)
self.btnFetchODKForms = QtWidgets.QPushButton(self.authGroup_2)
self.btnFetchODKForms.setObjectName("btnFetchODKForms")
self.authLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.btnFetchODKForms)
self.formGroup_3 = QtWidgets.QGroupBox(self.tab_2)
self.formGroup_3.setGeometry(QtCore.QRect(10, 200, 741, 111))
self.formGroup_3.setObjectName("formGroup_3")
self.formLayout_4 = QtWidgets.QFormLayout(self.formGroup_3)
self.formLayout_4.setObjectName("formLayout_4")
self.formSelectorLabel_4 = QtWidgets.QLabel(self.formGroup_3)
self.formSelectorLabel_4.setObjectName("formSelectorLabel_4")
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.formSelectorLabel_4)
self.comboODKForms = QtWidgets.QComboBox(self.formGroup_3)
self.comboODKForms.setObjectName("comboODKForms")
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboODKForms)
self.geoFieldSelectorLabel_4 = QtWidgets.QLabel(self.formGroup_3)
self.geoFieldSelectorLabel_4.setObjectName("geoFieldSelectorLabel_4")
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.geoFieldSelectorLabel_4)
self.comboODKGeoFields = QtWidgets.QComboBox(self.formGroup_3)
self.comboODKGeoFields.setObjectName("comboODKGeoFields")
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboODKGeoFields)
self.syncGroup_3 = QtWidgets.QGroupBox(self.tab_2)
self.syncGroup_3.setGeometry(QtCore.QRect(10, 330, 741, 181))
self.syncGroup_3.setObjectName("syncGroup_3")
self.syncLayout_4 = QtWidgets.QFormLayout(self.syncGroup_3)
self.syncLayout_4.setObjectName("syncLayout_4")
self.dateFromLabel_4 = QtWidgets.QLabel(self.syncGroup_3)
self.dateFromLabel_4.setObjectName("dateFromLabel_4")
self.syncLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.dateFromLabel_4)
self.ODKDateTimeFrom = QtWidgets.QDateEdit(self.syncGroup_3)
self.ODKDateTimeFrom.setDateTime(QtCore.QDateTime(QtCore.QDate(2024, 1, 1), QtCore.QTime(0, 0, 0)))
self.ODKDateTimeFrom.setCalendarPopup(True)
self.ODKDateTimeFrom.setObjectName("ODKDateTimeFrom")
self.syncLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.ODKDateTimeFrom)
self.dateToLabel_4 = QtWidgets.QLabel(self.syncGroup_3)
self.dateToLabel_4.setObjectName("dateToLabel_4")
self.syncLayout_4.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.dateToLabel_4)
self.ODKDateTimeTo = QtWidgets.QDateEdit(self.syncGroup_3)
self.ODKDateTimeTo.setDateTime(QtCore.QDateTime(QtCore.QDate(2025, 12, 31), QtCore.QTime(0, 0, 0)))
self.ODKDateTimeTo.setCalendarPopup(True)
self.ODKDateTimeTo.setObjectName("ODKDateTimeTo")
self.syncLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.ODKDateTimeTo)
self.syncIntervalLabel_4 = QtWidgets.QLabel(self.syncGroup_3)
self.syncIntervalLabel_4.setObjectName("syncIntervalLabel_4")
self.syncLayout_4.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.syncIntervalLabel_4)
self.odkSyncInterval = QtWidgets.QSpinBox(self.syncGroup_3)
self.odkSyncInterval.setMinimum(0)
self.odkSyncInterval.setMaximum(3600)
self.odkSyncInterval.setSingleStep(10)
self.odkSyncInterval.setObjectName("odkSyncInterval")
self.syncLayout_4.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.odkSyncInterval)
self.label_2 = QtWidgets.QLabel(self.syncGroup_3)
self.label_2.setObjectName("label_2")
self.syncLayout_4.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_2)
self.odkPageSize = QgsSpinBox(self.syncGroup_3)
self.odkPageSize.setMinimum(1000)
self.odkPageSize.setMaximum(10000)
self.odkPageSize.setSingleStep(100)
self.odkPageSize.setObjectName("odkPageSize")
self.syncLayout_4.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.odkPageSize)
self.layoutWidget_3 = QtWidgets.QWidget(self.tab_2)
self.layoutWidget_3.setGeometry(QtCore.QRect(10, 540, 741, 65))
self.layoutWidget_3.setObjectName("layoutWidget_3")
self.progressLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget_3)
self.progressLayout_3.setContentsMargins(0, 0, 0, 0)
self.progressLayout_3.setSpacing(6)
self.progressLayout_3.setObjectName("progressLayout_3")
self.odkProgressBar = QtWidgets.QProgressBar(self.layoutWidget_3)
self.odkProgressBar.setProperty("value", 0)
self.odkProgressBar.setObjectName("odkProgressBar")
self.progressLayout_3.addWidget(self.odkProgressBar)
self.buttonLayout_3 = QtWidgets.QHBoxLayout()
self.buttonLayout_3.setObjectName("buttonLayout_3")
self.odkCancelButton = QtWidgets.QPushButton(self.layoutWidget_3)
self.odkCancelButton.setObjectName("odkCancelButton")
self.buttonLayout_3.addWidget(self.odkCancelButton)
self.odkOkButton = QtWidgets.QPushButton(self.layoutWidget_3)
self.odkOkButton.setObjectName("odkOkButton")
self.buttonLayout_3.addWidget(self.odkOkButton)
self.progressLayout_3.addLayout(self.buttonLayout_3)
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.authGroup_3 = QtWidgets.QGroupBox(self.tab_3)
self.authGroup_3.setGeometry(QtCore.QRect(10, 10, 741, 171))
self.authGroup_3.setObjectName("authGroup_3")
self.authLayout_4 = QtWidgets.QFormLayout(self.authGroup_3)
self.authLayout_4.setObjectName("authLayout_4")
self.apiUrlLabel_4 = QtWidgets.QLabel(self.authGroup_3)
self.apiUrlLabel_4.setObjectName("apiUrlLabel_4")
self.authLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.apiUrlLabel_4)
self.kobo_api_url = QtWidgets.QLineEdit(self.authGroup_3)
self.kobo_api_url.setObjectName("kobo_api_url")
self.authLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.kobo_api_url)
self.usernameLabel_4 = QtWidgets.QLabel(self.authGroup_3)
self.usernameLabel_4.setObjectName("usernameLabel_4")
self.authLayout_4.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel_4)
self.kobo_username = QtWidgets.QLineEdit(self.authGroup_3)
self.kobo_username.setObjectName("kobo_username")
self.authLayout_4.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.kobo_username)
self.passwordLabel_4 = QtWidgets.QLabel(self.authGroup_3)
self.passwordLabel_4.setObjectName("passwordLabel_4")
self.authLayout_4.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.passwordLabel_4)
self.koboMLineEdit = QgsPasswordLineEdit(self.authGroup_3)
self.koboMLineEdit.setObjectName("koboMLineEdit")
self.authLayout_4.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.koboMLineEdit)
self.btnFetchKoboForms = QtWidgets.QPushButton(self.authGroup_3)
self.btnFetchKoboForms.setObjectName("btnFetchKoboForms")
self.authLayout_4.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.btnFetchKoboForms)
self.formGroup_4 = QtWidgets.QGroupBox(self.tab_3)
self.formGroup_4.setGeometry(QtCore.QRect(10, 200, 741, 111))
self.formGroup_4.setObjectName("formGroup_4")
self.formLayout_5 = QtWidgets.QFormLayout(self.formGroup_4)
self.formLayout_5.setObjectName("formLayout_5")
self.formSelectorLabel_5 = QtWidgets.QLabel(self.formGroup_4)
self.formSelectorLabel_5.setObjectName("formSelectorLabel_5")
self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.formSelectorLabel_5)
self.comboKoboForms = QtWidgets.QComboBox(self.formGroup_4)
self.comboKoboForms.setObjectName("comboKoboForms")
self.formLayout_5.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboKoboForms)
self.geoFieldSelectorLabel_5 = QtWidgets.QLabel(self.formGroup_4)
self.geoFieldSelectorLabel_5.setObjectName("geoFieldSelectorLabel_5")
self.formLayout_5.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.geoFieldSelectorLabel_5)
self.comboKoboGeoFields = QtWidgets.QComboBox(self.formGroup_4)
self.comboKoboGeoFields.setObjectName("comboKoboGeoFields")
self.formLayout_5.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboKoboGeoFields)
self.syncGroup_4 = QtWidgets.QGroupBox(self.tab_3)
self.syncGroup_4.setGeometry(QtCore.QRect(10, 330, 741, 181))
self.syncGroup_4.setObjectName("syncGroup_4")
self.syncLayout_5 = QtWidgets.QFormLayout(self.syncGroup_4)
self.syncLayout_5.setObjectName("syncLayout_5")
self.dateFromLabel_5 = QtWidgets.QLabel(self.syncGroup_4)
self.dateFromLabel_5.setObjectName("dateFromLabel_5")
self.syncLayout_5.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.dateFromLabel_5)
self.KoboDateTimeFrom = QtWidgets.QDateEdit(self.syncGroup_4)
self.KoboDateTimeFrom.setDateTime(QtCore.QDateTime(QtCore.QDate(2024, 1, 1), QtCore.QTime(0, 0, 0)))
self.KoboDateTimeFrom.setCalendarPopup(True)
self.KoboDateTimeFrom.setObjectName("KoboDateTimeFrom")
self.syncLayout_5.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.KoboDateTimeFrom)
self.dateToLabel_5 = QtWidgets.QLabel(self.syncGroup_4)
self.dateToLabel_5.setObjectName("dateToLabel_5")
self.syncLayout_5.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.dateToLabel_5)
self.KoboDateTimeTo = QtWidgets.QDateEdit(self.syncGroup_4)
self.KoboDateTimeTo.setDateTime(QtCore.QDateTime(QtCore.QDate(2025, 12, 31), QtCore.QTime(0, 0, 0)))
self.KoboDateTimeTo.setCalendarPopup(True)
self.KoboDateTimeTo.setObjectName("KoboDateTimeTo")
self.syncLayout_5.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.KoboDateTimeTo)
self.syncIntervalLabel_5 = QtWidgets.QLabel(self.syncGroup_4)
self.syncIntervalLabel_5.setObjectName("syncIntervalLabel_5")
self.syncLayout_5.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.syncIntervalLabel_5)
self.koboSyncInterval = QtWidgets.QSpinBox(self.syncGroup_4)
self.koboSyncInterval.setMinimum(0)
self.koboSyncInterval.setMaximum(3600)
self.koboSyncInterval.setSingleStep(10)
self.koboSyncInterval.setObjectName("koboSyncInterval")
self.syncLayout_5.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.koboSyncInterval)
self.label_3 = QtWidgets.QLabel(self.syncGroup_4)
self.label_3.setObjectName("label_3")
self.syncLayout_5.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_3)
self.koboPageSize = QgsSpinBox(self.syncGroup_4)
self.koboPageSize.setMinimum(1000)
self.koboPageSize.setMaximum(10000)
self.koboPageSize.setSingleStep(100)
self.koboPageSize.setObjectName("koboPageSize")
self.syncLayout_5.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.koboPageSize)
self.layoutWidget_4 = QtWidgets.QWidget(self.tab_3)
self.layoutWidget_4.setGeometry(QtCore.QRect(10, 540, 741, 65))
self.layoutWidget_4.setObjectName("layoutWidget_4")
self.progressLayout_4 = QtWidgets.QVBoxLayout(self.layoutWidget_4)
self.progressLayout_4.setContentsMargins(0, 0, 0, 0)
self.progressLayout_4.setSpacing(6)
self.progressLayout_4.setObjectName("progressLayout_4")
self.koboPorgressBar = QtWidgets.QProgressBar(self.layoutWidget_4)
self.koboPorgressBar.setProperty("value", 0)
self.koboPorgressBar.setObjectName("koboPorgressBar")
self.progressLayout_4.addWidget(self.koboPorgressBar)
self.buttonLayout_4 = QtWidgets.QHBoxLayout()
self.buttonLayout_4.setObjectName("buttonLayout_4")
self.koboCancelButton = QtWidgets.QPushButton(self.layoutWidget_4)
self.koboCancelButton.setObjectName("koboCancelButton")
self.buttonLayout_4.addWidget(self.koboCancelButton)
self.koboOkButton = QtWidgets.QPushButton(self.layoutWidget_4)
self.koboOkButton.setObjectName("koboOkButton")
self.buttonLayout_4.addWidget(self.koboOkButton)
self.progressLayout_4.addLayout(self.buttonLayout_4)
self.tabWidget.addTab(self.tab_3, "")
self.tab_4 = QtWidgets.QWidget()
self.tab_4.setObjectName("tab_4")
self.authGroup_4 = QtWidgets.QGroupBox(self.tab_4)
self.authGroup_4.setGeometry(QtCore.QRect(10, 10, 741, 171))
self.authGroup_4.setFlat(False)
self.authGroup_4.setObjectName("authGroup_4")
self.authLayout_5 = QtWidgets.QFormLayout(self.authGroup_4)
self.authLayout_5.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.authLayout_5.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
self.authLayout_5.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows)
self.authLayout_5.setObjectName("authLayout_5")
self.apiUrlLabel_5 = QtWidgets.QLabel(self.authGroup_4)
self.apiUrlLabel_5.setObjectName("apiUrlLabel_5")
self.authLayout_5.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.apiUrlLabel_5)
self.gts_api_url = QtWidgets.QLineEdit(self.authGroup_4)
self.gts_api_url.setObjectName("gts_api_url")
self.authLayout_5.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.gts_api_url)
self.usernameLabel_5 = QtWidgets.QLabel(self.authGroup_4)
self.usernameLabel_5.setObjectName("usernameLabel_5")
self.authLayout_5.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel_5)
self.gts_username = QtWidgets.QLineEdit(self.authGroup_4)
self.gts_username.setObjectName("gts_username")
self.authLayout_5.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.gts_username)
self.passwordLabel_5 = QtWidgets.QLabel(self.authGroup_4)
self.passwordLabel_5.setObjectName("passwordLabel_5")
self.authLayout_5.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.passwordLabel_5)
self.gtsMLineEdit = QgsPasswordLineEdit(self.authGroup_4)
self.gtsMLineEdit.setObjectName("gtsMLineEdit")
self.authLayout_5.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.gtsMLineEdit)
self.btnFetchGTSTables = QtWidgets.QPushButton(self.authGroup_4)
self.btnFetchGTSTables.setObjectName("btnFetchGTSTables")
self.authLayout_5.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.btnFetchGTSTables)
self.formGroup_5 = QtWidgets.QGroupBox(self.tab_4)
self.formGroup_5.setGeometry(QtCore.QRect(10, 200, 741, 151))
self.formGroup_5.setObjectName("formGroup_5")
self.formLayout_6 = QtWidgets.QFormLayout(self.formGroup_5)
self.formLayout_6.setObjectName("formLayout_6")
self.formSelectorLabel_6 = QtWidgets.QLabel(self.formGroup_5)
self.formSelectorLabel_6.setObjectName("formSelectorLabel_6")
self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.formSelectorLabel_6)
self.comboGTSFieldActivities = QtWidgets.QComboBox(self.formGroup_5)
self.comboGTSFieldActivities.setObjectName("comboGTSFieldActivities")
self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboGTSFieldActivities)
self.geoFieldSelectorLabel_6 = QtWidgets.QLabel(self.formGroup_5)
self.geoFieldSelectorLabel_6.setObjectName("geoFieldSelectorLabel_6")
self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.geoFieldSelectorLabel_6)
self.comboGTSTrackingRounds = QtWidgets.QComboBox(self.formGroup_5)
self.comboGTSTrackingRounds.setObjectName("comboGTSTrackingRounds")
self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.comboGTSTrackingRounds)
self.comboGTSTableTypes = QtWidgets.QComboBox(self.formGroup_5)
self.comboGTSTableTypes.setObjectName("comboGTSTableTypes")
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboGTSTableTypes)
self.label_8 = QtWidgets.QLabel(self.formGroup_5)
self.label_8.setObjectName("label_8")
self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_8)
self.layoutWidget_6 = QtWidgets.QWidget(self.tab_4)
self.layoutWidget_6.setGeometry(QtCore.QRect(10, 380, 741, 65))
self.layoutWidget_6.setObjectName("layoutWidget_6")
self.progressLayout_6 = QtWidgets.QVBoxLayout(self.layoutWidget_6)
self.progressLayout_6.setContentsMargins(0, 0, 0, 0)
self.progressLayout_6.setSpacing(6)
self.progressLayout_6.setObjectName("progressLayout_6")
self.gtsProgressBar = QtWidgets.QProgressBar(self.layoutWidget_6)
self.gtsProgressBar.setProperty("value", 0)
self.gtsProgressBar.setObjectName("gtsProgressBar")
self.progressLayout_6.addWidget(self.gtsProgressBar)
self.buttonLayout_6 = QtWidgets.QHBoxLayout()
self.buttonLayout_6.setObjectName("buttonLayout_6")
self.gtsCancelButton = QtWidgets.QPushButton(self.layoutWidget_6)
self.gtsCancelButton.setObjectName("gtsCancelButton")
self.buttonLayout_6.addWidget(self.gtsCancelButton)
self.gtsOkButton = QtWidgets.QPushButton(self.layoutWidget_6)
self.gtsOkButton.setObjectName("gtsOkButton")
self.buttonLayout_6.addWidget(self.gtsOkButton)
self.progressLayout_6.addLayout(self.buttonLayout_6)
self.tabWidget.addTab(self.tab_4, "")
self.tab_5 = QtWidgets.QWidget()
self.tab_5.setObjectName("tab_5")
self.formGroup_6 = QtWidgets.QGroupBox(self.tab_5)
self.formGroup_6.setGeometry(QtCore.QRect(10, 10, 741, 141))
self.formGroup_6.setObjectName("formGroup_6")
self.formLayout_7 = QtWidgets.QFormLayout(self.formGroup_6)
self.formLayout_7.setObjectName("formLayout_7")
self.formSelectorLabel_7 = QtWidgets.QLabel(self.formGroup_6)
self.formSelectorLabel_7.setObjectName("formSelectorLabel_7")
self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.formSelectorLabel_7)
self.geoFieldSelectorLabel_7 = QtWidgets.QLabel(self.formGroup_6)
self.geoFieldSelectorLabel_7.setObjectName("geoFieldSelectorLabel_7")
self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.geoFieldSelectorLabel_7)
self.combESTopology = QtWidgets.QComboBox(self.formGroup_6)
self.combESTopology.setObjectName("combESTopology")
self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.combESTopology)
self.esAPIVersion = QtWidgets.QLineEdit(self.formGroup_6)
self.esAPIVersion.setObjectName("esAPIVersion")
self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.esAPIVersion)
self.es_api_url = QtWidgets.QLineEdit(self.formGroup_6)
self.es_api_url.setObjectName("es_api_url")
self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.es_api_url)
self.label_4 = QtWidgets.QLabel(self.formGroup_6)
self.label_4.setObjectName("label_4")
self.formLayout_7.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_4)
self.layoutWidget_7 = QtWidgets.QWidget(self.tab_5)
self.layoutWidget_7.setGeometry(QtCore.QRect(10, 180, 741, 65))
self.layoutWidget_7.setObjectName("layoutWidget_7")
self.progressLayout_7 = QtWidgets.QVBoxLayout(self.layoutWidget_7)
self.progressLayout_7.setContentsMargins(0, 0, 0, 0)
self.progressLayout_7.setSpacing(6)
self.progressLayout_7.setObjectName("progressLayout_7")
self.esProgressBar = QtWidgets.QProgressBar(self.layoutWidget_7)
self.esProgressBar.setProperty("value", 0)
self.esProgressBar.setObjectName("esProgressBar")
self.progressLayout_7.addWidget(self.esProgressBar)
self.buttonLayout_7 = QtWidgets.QHBoxLayout()
self.buttonLayout_7.setObjectName("buttonLayout_7")
self.esCancelButton = QtWidgets.QPushButton(self.layoutWidget_7)
self.esCancelButton.setObjectName("esCancelButton")
self.buttonLayout_7.addWidget(self.esCancelButton)
self.esOkButton = QtWidgets.QPushButton(self.layoutWidget_7)
self.esOkButton.setObjectName("esOkButton")
self.buttonLayout_7.addWidget(self.esOkButton)
self.progressLayout_7.addLayout(self.buttonLayout_7)
self.tabWidget.addTab(self.tab_5, "")
self.tab_6 = QtWidgets.QWidget()
self.tab_6.setObjectName("tab_6")
self.authGroup_5 = QtWidgets.QGroupBox(self.tab_6)
self.authGroup_5.setGeometry(QtCore.QRect(10, 10, 741, 171))
self.authGroup_5.setFlat(False)
self.authGroup_5.setObjectName("authGroup_5")
self.authLayout_6 = QtWidgets.QFormLayout(self.authGroup_5)
self.authLayout_6.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.authLayout_6.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
self.authLayout_6.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows)
self.authLayout_6.setObjectName("authLayout_6")
self.apiUrlLabel_6 = QtWidgets.QLabel(self.authGroup_5)
self.apiUrlLabel_6.setObjectName("apiUrlLabel_6")
self.authLayout_6.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.apiUrlLabel_6)
self.dhis_api_url = QtWidgets.QLineEdit(self.authGroup_5)
self.dhis_api_url.setObjectName("dhis_api_url")
self.authLayout_6.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.dhis_api_url)
self.usernameLabel_6 = QtWidgets.QLabel(self.authGroup_5)
self.usernameLabel_6.setObjectName("usernameLabel_6")
self.authLayout_6.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel_6)
self.dhis_username = QtWidgets.QLineEdit(self.authGroup_5)
self.dhis_username.setObjectName("dhis_username")
self.authLayout_6.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.dhis_username)
self.passwordLabel_6 = QtWidgets.QLabel(self.authGroup_5)
self.passwordLabel_6.setObjectName("passwordLabel_6")
self.authLayout_6.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.passwordLabel_6)
self.dhisMLineEdit = QgsPasswordLineEdit(self.authGroup_5)
self.dhisMLineEdit.setObjectName("dhisMLineEdit")
self.authLayout_6.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.dhisMLineEdit)
self.btnFetchDhisOrgUnits = QtWidgets.QPushButton(self.authGroup_5)
self.btnFetchDhisOrgUnits.setObjectName("btnFetchDhisOrgUnits")
self.authLayout_6.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.btnFetchDhisOrgUnits)
self.formGroup_7 = QtWidgets.QGroupBox(self.tab_6)
self.formGroup_7.setGeometry(QtCore.QRect(10, 200, 741, 201))
self.formGroup_7.setObjectName("formGroup_7")
self.formLayout_8 = QtWidgets.QFormLayout(self.formGroup_7)
self.formLayout_8.setObjectName("formLayout_8")
self.label_6 = QtWidgets.QLabel(self.formGroup_7)
self.label_6.setObjectName("label_6")
self.formLayout_8.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_6)
self.ComboDhisAdminLevels = QtWidgets.QComboBox(self.formGroup_7)
self.ComboDhisAdminLevels.setObjectName("ComboDhisAdminLevels")
self.formLayout_8.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.ComboDhisAdminLevels)
self.formSelectorLabel_8 = QtWidgets.QLabel(self.formGroup_7)
self.formSelectorLabel_8.setObjectName("formSelectorLabel_8")
self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.formSelectorLabel_8)
self.comboDhisOrgUnits = QtWidgets.QComboBox(self.formGroup_7)
self.comboDhisOrgUnits.setObjectName("comboDhisOrgUnits")
self.formLayout_8.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.comboDhisOrgUnits)
self.geoFieldSelectorLabel_8 = QtWidgets.QLabel(self.formGroup_7)
self.geoFieldSelectorLabel_8.setObjectName("geoFieldSelectorLabel_8")
self.formLayout_8.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.geoFieldSelectorLabel_8)
self.comboDhisDataSets = QtWidgets.QComboBox(self.formGroup_7)
self.comboDhisDataSets.setObjectName("comboDhisDataSets")
self.formLayout_8.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.comboDhisDataSets)
self.label_5 = QtWidgets.QLabel(self.formGroup_7)
self.label_5.setObjectName("label_5")
self.formLayout_8.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_5)
self.comboDhisIndicators = QtWidgets.QComboBox(self.formGroup_7)
self.comboDhisIndicators.setObjectName("comboDhisIndicators")
self.formLayout_8.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.comboDhisIndicators)
self.label_7 = QtWidgets.QLabel(self.formGroup_7)
self.label_7.setObjectName("label_7")
self.formLayout_8.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_7)
self.comboDhisPeriod = QtWidgets.QComboBox(self.formGroup_7)
self.comboDhisPeriod.setObjectName("comboDhisPeriod")
self.formLayout_8.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.comboDhisPeriod)
self.layoutWidget_5 = QtWidgets.QWidget(self.tab_6)
self.layoutWidget_5.setGeometry(QtCore.QRect(10, 430, 741, 65))
self.layoutWidget_5.setObjectName("layoutWidget_5")
self.progressLayout_5 = QtWidgets.QVBoxLayout(self.layoutWidget_5)
self.progressLayout_5.setContentsMargins(0, 0, 0, 0)
self.progressLayout_5.setSpacing(6)
self.progressLayout_5.setObjectName("progressLayout_5")
self.dhisProgressBar = QtWidgets.QProgressBar(self.layoutWidget_5)
self.dhisProgressBar.setProperty("value", 0)
self.dhisProgressBar.setObjectName("dhisProgressBar")
self.progressLayout_5.addWidget(self.dhisProgressBar)
self.buttonLayout_5 = QtWidgets.QHBoxLayout()
self.buttonLayout_5.setObjectName("buttonLayout_5")
self.dhisCancelButton = QtWidgets.QPushButton(self.layoutWidget_5)
self.dhisCancelButton.setObjectName("dhisCancelButton")
self.buttonLayout_5.addWidget(self.dhisCancelButton)
self.dhisOkButton = QtWidgets.QPushButton(self.layoutWidget_5)
self.dhisOkButton.setObjectName("dhisOkButton")
self.buttonLayout_5.addWidget(self.dhisOkButton)
self.progressLayout_5.addLayout(self.buttonLayout_5)
self.tabWidget.addTab(self.tab_6, "")
self.tab_7 = QtWidgets.QWidget()
self.tab_7.setObjectName("tab_7")
self.app_logs = QtWidgets.QPlainTextEdit(self.tab_7)
self.app_logs.setGeometry(QtCore.QRect(0, 0, 611, 431))
self.app_logs.setObjectName("app_logs")
self.btnRemoveAll = QtWidgets.QPushButton(self.tab_7)
self.btnRemoveAll.setGeometry(QtCore.QRect(240, 450, 134, 25))
self.btnRemoveAll.setObjectName("btnRemoveAll")
self.tabWidget.addTab(self.tab_7, "")
self.tab_8 = QtWidgets.QWidget()
self.tab_8.setObjectName("tab_8")
self.about_text = QtWidgets.QTextBrowser(self.tab_8)
self.about_text.setGeometry(QtCore.QRect(0, 0, 641, 451))
self.about_text.setObjectName("about_text")
self.tabWidget.addTab(self.tab_8, "")
self.retranslateUi(AfpolGISDialogBase)
self.tabWidget.setCurrentIndex(4)
QtCore.QMetaObject.connectSlotsByName(AfpolGISDialogBase)
def retranslateUi(self, AfpolGISDialogBase):
_translate = QtCore.QCoreApplication.translate
AfpolGISDialogBase.setWindowTitle(_translate("AfpolGISDialogBase", "AfpolGIS Data Connector"))
self.onaProgressBar.setFormat(_translate("AfpolGISDialogBase", "%p%"))
self.onaCancelButton.setText(_translate("AfpolGISDialogBase", "Cancel"))
self.onaOkButton.setText(_translate("AfpolGISDialogBase", "OK"))
self.formGroup.setTitle(_translate("AfpolGISDialogBase", "Form Selection"))
self.formSelectorLabel_2.setText(_translate("AfpolGISDialogBase", "Select Form:"))
self.geoFieldSelectorLabel_2.setText(_translate("AfpolGISDialogBase", "Select Geo Field:"))
self.authGroup.setTitle(_translate("AfpolGISDialogBase", "Authentication"))
self.apiUrlLabel_2.setText(_translate("AfpolGISDialogBase", "API Base URL:"))
self.usernameLabel_2.setText(_translate("AfpolGISDialogBase", "Username:"))
self.passwordLabel_2.setText(_translate("AfpolGISDialogBase", "Password:"))
self.btnFetchOnaForms.setText(_translate("AfpolGISDialogBase", "Connect"))
self.syncGroup.setTitle(_translate("AfpolGISDialogBase", "Sync Options"))
self.dateFromLabel_2.setText(_translate("AfpolGISDialogBase", "Date Range From:"))
self.onaDateTimeFrom.setDisplayFormat(_translate("AfpolGISDialogBase", "yyyy-MM-dd"))
self.dateToLabel_2.setText(_translate("AfpolGISDialogBase", "Date Range To:"))
self.onaDateTimeTo.setDisplayFormat(_translate("AfpolGISDialogBase", "yyyy-MM-dd"))
self.syncIntervalLabel_2.setText(_translate("AfpolGISDialogBase", "Sync Interval:"))
self.label.setText(_translate("AfpolGISDialogBase", "Page Size"))
self.onaSyncInterval.setSuffix(_translate("AfpolGISDialogBase", " Seconds"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("AfpolGISDialogBase", "OnaData"))
self.authGroup_2.setTitle(_translate("AfpolGISDialogBase", "Authentication"))
self.apiUrlLabel_3.setText(_translate("AfpolGISDialogBase", "API Base URL:"))
self.usernameLabel_3.setText(_translate("AfpolGISDialogBase", "Username:"))
self.passwordLabel_3.setText(_translate("AfpolGISDialogBase", "Password:"))
self.btnFetchODKForms.setText(_translate("AfpolGISDialogBase", "Connect"))
self.formGroup_3.setTitle(_translate("AfpolGISDialogBase", "Form Selection"))
self.formSelectorLabel_4.setText(_translate("AfpolGISDialogBase", "Select Form:"))
self.geoFieldSelectorLabel_4.setText(_translate("AfpolGISDialogBase", "Select Geo Field:"))
self.syncGroup_3.setTitle(_translate("AfpolGISDialogBase", "Sync Options"))
self.dateFromLabel_4.setText(_translate("AfpolGISDialogBase", "Date Range From:"))
self.ODKDateTimeFrom.setDisplayFormat(_translate("AfpolGISDialogBase", "yyyy-MM-dd"))
self.dateToLabel_4.setText(_translate("AfpolGISDialogBase", "Date Range To:"))
self.ODKDateTimeTo.setDisplayFormat(_translate("AfpolGISDialogBase", "yyyy-MM-dd"))
self.syncIntervalLabel_4.setText(_translate("AfpolGISDialogBase", "Sync Interval:"))
self.odkSyncInterval.setSuffix(_translate("AfpolGISDialogBase", " Seconds"))
self.label_2.setText(_translate("AfpolGISDialogBase", "Page Size"))
self.odkCancelButton.setText(_translate("AfpolGISDialogBase", "Cancel"))
self.odkOkButton.setText(_translate("AfpolGISDialogBase", "OK"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("AfpolGISDialogBase", "ODK"))
self.authGroup_3.setTitle(_translate("AfpolGISDialogBase", "Authentication"))
self.apiUrlLabel_4.setText(_translate("AfpolGISDialogBase", "API Base URL:"))
self.usernameLabel_4.setText(_translate("AfpolGISDialogBase", "Username:"))
self.passwordLabel_4.setText(_translate("AfpolGISDialogBase", "Password:"))
self.btnFetchKoboForms.setText(_translate("AfpolGISDialogBase", "Connect"))
self.formGroup_4.setTitle(_translate("AfpolGISDialogBase", "Form Selection"))
self.formSelectorLabel_5.setText(_translate("AfpolGISDialogBase", "Select Form:"))
self.geoFieldSelectorLabel_5.setText(_translate("AfpolGISDialogBase", "Select Geo Field:"))
self.syncGroup_4.setTitle(_translate("AfpolGISDialogBase", "Sync Options"))
self.dateFromLabel_5.setText(_translate("AfpolGISDialogBase", "Date Range From:"))
self.KoboDateTimeFrom.setDisplayFormat(_translate("AfpolGISDialogBase", "yyyy-MM-dd"))
self.dateToLabel_5.setText(_translate("AfpolGISDialogBase", "Date Range To:"))
self.KoboDateTimeTo.setDisplayFormat(_translate("AfpolGISDialogBase", "yyyy-MM-dd"))
self.syncIntervalLabel_5.setText(_translate("AfpolGISDialogBase", "Sync Interval:"))
self.koboSyncInterval.setSuffix(_translate("AfpolGISDialogBase", " Seconds"))
self.label_3.setText(_translate("AfpolGISDialogBase", "Page Size"))
self.koboCancelButton.setText(_translate("AfpolGISDialogBase", "Cancel"))
self.koboOkButton.setText(_translate("AfpolGISDialogBase", "OK"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("AfpolGISDialogBase", "Kobo"))
self.authGroup_4.setTitle(_translate("AfpolGISDialogBase", "Authentication"))
self.apiUrlLabel_5.setText(_translate("AfpolGISDialogBase", "API Base URL:"))
self.usernameLabel_5.setText(_translate("AfpolGISDialogBase", "Username:"))
self.passwordLabel_5.setText(_translate("AfpolGISDialogBase", "Password:"))
self.btnFetchGTSTables.setText(_translate("AfpolGISDialogBase", "Connect"))
self.formGroup_5.setTitle(_translate("AfpolGISDialogBase", "Select Options"))
self.formSelectorLabel_6.setText(_translate("AfpolGISDialogBase", "Field Activity"))
self.geoFieldSelectorLabel_6.setText(_translate("AfpolGISDialogBase", "Tracking Rounds"))
self.label_8.setText(_translate("AfpolGISDialogBase", "Select Category"))
self.gtsCancelButton.setText(_translate("AfpolGISDialogBase", "Cancel"))
self.gtsOkButton.setText(_translate("AfpolGISDialogBase", "OK"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("AfpolGISDialogBase", "GTS"))
self.formGroup_6.setTitle(_translate("AfpolGISDialogBase", "Options"))
self.formSelectorLabel_7.setText(_translate("AfpolGISDialogBase", "Version"))
self.geoFieldSelectorLabel_7.setText(_translate("AfpolGISDialogBase", "Topography:"))
self.label_4.setText(_translate("AfpolGISDialogBase", "API Base URL"))
self.esCancelButton.setText(_translate("AfpolGISDialogBase", "Cancel"))
self.esOkButton.setText(_translate("AfpolGISDialogBase", "OK"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("AfpolGISDialogBase", "ES"))
self.authGroup_5.setTitle(_translate("AfpolGISDialogBase", "Authentication"))
self.apiUrlLabel_6.setText(_translate("AfpolGISDialogBase", "API Base URL:"))
self.usernameLabel_6.setText(_translate("AfpolGISDialogBase", "Username:"))
self.passwordLabel_6.setText(_translate("AfpolGISDialogBase", "Password:"))
self.btnFetchDhisOrgUnits.setText(_translate("AfpolGISDialogBase", "Connect"))
self.formGroup_7.setTitle(_translate("AfpolGISDialogBase", "Select Options"))
self.label_6.setText(_translate("AfpolGISDialogBase", "Select Admin Level:"))
self.formSelectorLabel_8.setText(_translate("AfpolGISDialogBase", "Select Org Unit:"))
self.geoFieldSelectorLabel_8.setText(_translate("AfpolGISDialogBase", "Select Dataset"))
self.label_5.setText(_translate("AfpolGISDialogBase", "Select Indicator"))
self.label_7.setText(_translate("AfpolGISDialogBase", "Period"))
self.dhisCancelButton.setText(_translate("AfpolGISDialogBase", "Cancel"))
self.dhisOkButton.setText(_translate("AfpolGISDialogBase", "OK"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), _translate("AfpolGISDialogBase", "DHIS"))
self.btnRemoveAll.setToolTip(_translate("AfpolGISDialogBase", "Remove all published geodata and metadata"))
self.btnRemoveAll.setText(_translate("AfpolGISDialogBase", "Clear All"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), _translate("AfpolGISDialogBase", "Logs"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_8), _translate("AfpolGISDialogBase", "About"))
from qgspasswordlineedit import QgsPasswordLineEdit
from qgsspinbox import QgsSpinBox