aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiaSyncDBprefs.py
blob: daac3c067ee3c5a795fe301d99361af90c12669b (plain)
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
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'mageiaSyncDBprefs.ui'
#
# Created by: PyQt5 UI code generator 5.4.2
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_prefsDialog(object):
    def setupUi(self, prefsDialog):
        prefsDialog.setObjectName("prefsDialog")
        prefsDialog.resize(544, 257)
        self.gridLayout = QtWidgets.QGridLayout(prefsDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_7 = QtWidgets.QLabel(prefsDialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 2)
        self.label = QtWidgets.QLabel(prefsDialog)
        self.label.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.release = QtWidgets.QComboBox(prefsDialog)
        self.release.setEditable(True)
        self.release.setObjectName("release")
        self.gridLayout_2.addWidget(self.release, 1, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(prefsDialog)
        self.label_2.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 2, 0, 1, 1)
        self.user = QtWidgets.QLineEdit(prefsDialog)
        self.user.setToolTip("")
        self.user.setStatusTip("")
        self.user.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.user.setObjectName("user")
        self.gridLayout_2.addWidget(self.user, 2, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(prefsDialog)
        self.label_3.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 3, 0, 1, 1)
        self.password = QtWidgets.QLineEdit(prefsDialog)
        self.password.setToolTip("")
        self.password.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.password.setObjectName("password")
        self.gridLayout_2.addWidget(self.password, 3, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(prefsDialog)
        self.label_4.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 4, 0, 1, 1)
        self.location = QtWidgets.QLineEdit(prefsDialog)
        self.location.setToolTip("")
        self.location.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.location.setObjectName("location")
        self.gridLayout_2.addWidget(self.location, 4, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(prefsDialog)
        self.label_5.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 5, 0, 1, 1)
        self.selectDest = QtWidgets.QPushButton(prefsDialog)
        self.selectDest.setToolTip("")
        self.selectDest.setText("PushButton")
        self.selectDest.setObjectName("selectDest")
        self.gridLayout_2.addWidget(self.selectDest, 5, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(prefsDialog)
        self.label_6.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 6, 0, 1, 1)
        self.bwl = QtWidgets.QSpinBox(prefsDialog)
        self.bwl.setToolTip("")
        self.bwl.setMaximum(100000)
        self.bwl.setSingleStep(50)
        self.bwl.setObjectName("bwl")
        self.gridLayout_2.addWidget(self.bwl, 6, 1, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(prefsDialog)
        self.buttonBox.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1)

        self.retranslateUi(prefsDialog)
        self.buttonBox.accepted.connect(prefsDialog.accept)
        self.buttonBox.rejected.connect(prefsDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(prefsDialog)
        prefsDialog.setTabOrder(self.release, self.user)
        prefsDialog.setTabOrder(self.user, self.password)
        prefsDialog.setTabOrder(self.password, self.location)
        prefsDialog.setTabOrder(self.location, self.selectDest)
        prefsDialog.setTabOrder(self.selectDest, self.bwl)

    def retranslateUi(self, prefsDialog):
        _translate = QtCore.QCoreApplication.translate
        prefsDialog.setWindowTitle(_translate("prefsDialog", "Preferences"))
        self.label_7.setText(_translate("prefsDialog", "Define parameters which are stored and used for rsync"))
        self.label.setToolTip(_translate("prefsDialog", "Give the release name like \"mageia5-alpha2\""))
        self.label.setText(_translate("prefsDialog", "Release:"))
        self.label_2.setToolTip(_translate("prefsDialog", "User name to access the repository. Only for testing repository."))
        self.label_2.setText(_translate("prefsDialog", "User:"))
        self.label_3.setToolTip(_translate("prefsDialog", "Associated with user, if needed"))
        self.label_3.setText(_translate("prefsDialog", "Password:"))
        self.label_4.setToolTip(_translate("prefsDialog", "Source repository. Keep void to use the testing repo."))
        self.label_4.setText(_translate("prefsDialog", "Source:"))
        self.label_5.setToolTip(_translate("prefsDialog", "The local directory where you store ISOs. Will sync your existent ISOs already present."))
        self.label_5.setText(_translate("prefsDialog", "Destination:"))
        self.label_6.setToolTip(_translate("prefsDialog", "Set to zero if you don\'t want apply limit."))
        self.label_6.setText(_translate("prefsDialog", "Bandwith limit (kB/s):"))