-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add immutable fullname and nickname fields to user profiles
- Loading branch information
1 parent
e33f8e3
commit 4e9f830
Showing
19 changed files
with
474 additions
and
182 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Form implementation generated from reading ui file 'mslib/msui/ui/ui_add_user.ui' | ||
# Form implementation generated from reading ui file 'ui_add_user_dialog.ui' | ||
# | ||
# Created by: PyQt5 UI code generator 5.9.2 | ||
# Created by: PyQt5 UI code generator 5.15.9 | ||
# | ||
# WARNING! All changes made in this file will be lost! | ||
# 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_addUserDialog(object): | ||
def setupUi(self, addUserDialog): | ||
addUserDialog.setObjectName("addUserDialog") | ||
|
@@ -19,34 +22,52 @@ def setupUi(self, addUserDialog): | |
self.formLayout = QtWidgets.QFormLayout() | ||
self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow) | ||
self.formLayout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) | ||
self.formLayout.setHorizontalSpacing(7) | ||
self.formLayout.setVerticalSpacing(14) | ||
self.formLayout.setObjectName("formLayout") | ||
self.usernameLabel = QtWidgets.QLabel(addUserDialog) | ||
self.usernameLabel.setObjectName("usernameLabel") | ||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel) | ||
self.username = QtWidgets.QLineEdit(addUserDialog) | ||
self.username.setObjectName("username") | ||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.username) | ||
self.fullnamelabel = QtWidgets.QLabel(addUserDialog) | ||
self.fullnamelabel.setObjectName("fullnamelabel") | ||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.fullnamelabel) | ||
self.fullname = QtWidgets.QLineEdit(addUserDialog) | ||
self.fullname.setText("") | ||
self.fullname.setObjectName("fullname") | ||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.fullname) | ||
self.nicknameLabel = QtWidgets.QLabel(addUserDialog) | ||
self.nicknameLabel.setObjectName("nicknameLabel") | ||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.nicknameLabel) | ||
self.nickname = QtWidgets.QLineEdit(addUserDialog) | ||
self.nickname.setText("") | ||
self.nickname.setObjectName("nickname") | ||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.nickname) | ||
self.emailIDLabel = QtWidgets.QLabel(addUserDialog) | ||
self.emailIDLabel.setObjectName("emailIDLabel") | ||
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.emailIDLabel) | ||
self.emailid = QtWidgets.QLineEdit(addUserDialog) | ||
self.emailid.setObjectName("emailid") | ||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.emailid) | ||
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.emailid) | ||
self.passwordLabel = QtWidgets.QLabel(addUserDialog) | ||
self.passwordLabel.setObjectName("passwordLabel") | ||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.passwordLabel) | ||
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.passwordLabel) | ||
self.password = QtWidgets.QLineEdit(addUserDialog) | ||
self.password.setEchoMode(QtWidgets.QLineEdit.Password) | ||
self.password.setObjectName("password") | ||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.password) | ||
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.password) | ||
self.confirmPasswordLabel = QtWidgets.QLabel(addUserDialog) | ||
self.confirmPasswordLabel.setObjectName("confirmPasswordLabel") | ||
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.confirmPasswordLabel) | ||
self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.confirmPasswordLabel) | ||
self.rePassword = QtWidgets.QLineEdit(addUserDialog) | ||
self.rePassword.setEchoMode(QtWidgets.QLineEdit.Password) | ||
self.rePassword.setObjectName("rePassword") | ||
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.rePassword) | ||
self.emailIDLabel = QtWidgets.QLabel(addUserDialog) | ||
self.emailIDLabel.setObjectName("emailIDLabel") | ||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.emailIDLabel) | ||
self.usernameLabel = QtWidgets.QLabel(addUserDialog) | ||
self.usernameLabel.setObjectName("usernameLabel") | ||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.usernameLabel) | ||
self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.rePassword) | ||
self.verticalLayout_2 = QtWidgets.QVBoxLayout() | ||
self.verticalLayout_2.setObjectName("verticalLayout_2") | ||
self.formLayout.setLayout(7, QtWidgets.QFormLayout.FieldRole, self.verticalLayout_2) | ||
self.verticalLayout.addLayout(self.formLayout) | ||
self.buttonBox = QtWidgets.QDialogButtonBox(addUserDialog) | ||
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) | ||
|
@@ -56,18 +77,32 @@ def setupUi(self, addUserDialog): | |
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) | ||
|
||
self.retranslateUi(addUserDialog) | ||
self.buttonBox.accepted.connect(addUserDialog.accept) | ||
self.buttonBox.rejected.connect(addUserDialog.reject) | ||
self.buttonBox.accepted.connect(addUserDialog.accept) # type: ignore | ||
self.buttonBox.rejected.connect(addUserDialog.reject) # type: ignore | ||
QtCore.QMetaObject.connectSlotsByName(addUserDialog) | ||
|
||
def retranslateUi(self, addUserDialog): | ||
_translate = QtCore.QCoreApplication.translate | ||
addUserDialog.setWindowTitle(_translate("addUserDialog", "Add user")) | ||
self.usernameLabel.setText(_translate("addUserDialog", "Username:")) | ||
self.username.setPlaceholderText(_translate("addUserDialog", "John Doe")) | ||
self.fullnamelabel.setText(_translate("addUserDialog", "Fullname:")) | ||
self.fullname.setPlaceholderText(_translate("addUserDialog", "John Michael Doe")) | ||
self.nicknameLabel.setText(_translate("addUserDialog", "Nickname:")) | ||
self.nickname.setPlaceholderText(_translate("addUserDialog", "Jonny")) | ||
self.emailIDLabel.setText(_translate("addUserDialog", "Email:")) | ||
self.emailid.setPlaceholderText(_translate("addUserDialog", "[email protected]")) | ||
self.passwordLabel.setText(_translate("addUserDialog", "Password:")) | ||
self.password.setPlaceholderText(_translate("addUserDialog", "Your password")) | ||
self.confirmPasswordLabel.setText(_translate("addUserDialog", "Confirm Password:")) | ||
self.rePassword.setPlaceholderText(_translate("addUserDialog", "Confirm your password")) | ||
self.emailIDLabel.setText(_translate("addUserDialog", "Email:")) | ||
self.usernameLabel.setText(_translate("addUserDialog", "Username:")) | ||
|
||
|
||
if __name__ == "__main__": | ||
import sys | ||
app = QtWidgets.QApplication(sys.argv) | ||
addUserDialog = QtWidgets.QDialog() | ||
ui = Ui_addUserDialog() | ||
ui.setupUi(addUserDialog) | ||
addUserDialog.show() | ||
sys.exit(app.exec_()) |
Oops, something went wrong.