settings.py 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'settings.ui'
  3. #
  4. # Created by: PyQt5 UI code generator 5.5.1
  5. #
  6. # WARNING! All changes made in this file will be lost!
  7. from PyQt5 import QtCore, QtGui, QtWidgets
  8. class Ui_Settings(object):
  9. def setupUi(self, Settings):
  10. Settings.setObjectName("Settings")
  11. Settings.resize(455, 350)
  12. Settings.setMinimumSize(QtCore.QSize(455, 350))
  13. Settings.setMaximumSize(QtCore.QSize(455, 350))
  14. icon = QtGui.QIcon()
  15. icon.addPixmap(QtGui.QPixmap("resources/icon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  16. Settings.setWindowIcon(icon)
  17. self.verticalLayout = QtWidgets.QVBoxLayout(Settings)
  18. self.verticalLayout.setObjectName("verticalLayout")
  19. self.lblWelcomeErrorsHeader = QtWidgets.QLabel(Settings)
  20. self.lblWelcomeErrorsHeader.setObjectName("lblWelcomeErrorsHeader")
  21. self.verticalLayout.addWidget(self.lblWelcomeErrorsHeader)
  22. self.lblWelcomeErrors = QtWidgets.QLabel(Settings)
  23. self.lblWelcomeErrors.setEnabled(True)
  24. self.lblWelcomeErrors.setWordWrap(True)
  25. self.lblWelcomeErrors.setObjectName("lblWelcomeErrors")
  26. self.verticalLayout.addWidget(self.lblWelcomeErrors)
  27. spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
  28. self.verticalLayout.addItem(spacerItem)
  29. self.gbXMLValidation = QtWidgets.QGroupBox(Settings)
  30. self.gbXMLValidation.setObjectName("gbXMLValidation")
  31. self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.gbXMLValidation)
  32. self.verticalLayout_2.setObjectName("verticalLayout_2")
  33. self.lblXMLValidation = QtWidgets.QLabel(self.gbXMLValidation)
  34. self.lblXMLValidation.setWordWrap(True)
  35. self.lblXMLValidation.setObjectName("lblXMLValidation")
  36. self.verticalLayout_2.addWidget(self.lblXMLValidation)
  37. self.glXMLValidation = QtWidgets.QGridLayout()
  38. self.glXMLValidation.setObjectName("glXMLValidation")
  39. self.lblXMLSchema = QtWidgets.QLabel(self.gbXMLValidation)
  40. self.lblXMLSchema.setObjectName("lblXMLSchema")
  41. self.glXMLValidation.addWidget(self.lblXMLSchema, 0, 0, 1, 1)
  42. self.leXMLSchema = QtWidgets.QLineEdit(self.gbXMLValidation)
  43. self.leXMLSchema.setReadOnly(True)
  44. self.leXMLSchema.setObjectName("leXMLSchema")
  45. self.glXMLValidation.addWidget(self.leXMLSchema, 0, 1, 1, 1)
  46. self.btnXMLSchemaBrowse = QtWidgets.QPushButton(self.gbXMLValidation)
  47. self.btnXMLSchemaBrowse.setObjectName("btnXMLSchemaBrowse")
  48. self.glXMLValidation.addWidget(self.btnXMLSchemaBrowse, 0, 2, 1, 1)
  49. self.verticalLayout_2.addLayout(self.glXMLValidation)
  50. self.verticalLayout.addWidget(self.gbXMLValidation)
  51. self.gbCertificate = QtWidgets.QGroupBox(Settings)
  52. self.gbCertificate.setObjectName("gbCertificate")
  53. self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.gbCertificate)
  54. self.verticalLayout_3.setObjectName("verticalLayout_3")
  55. self.lblCertificate = QtWidgets.QLabel(self.gbCertificate)
  56. self.lblCertificate.setWordWrap(True)
  57. self.lblCertificate.setObjectName("lblCertificate")
  58. self.verticalLayout_3.addWidget(self.lblCertificate)
  59. self.glCertificate = QtWidgets.QGridLayout()
  60. self.glCertificate.setObjectName("glCertificate")
  61. self.leCertificate = QtWidgets.QLineEdit(self.gbCertificate)
  62. self.leCertificate.setReadOnly(True)
  63. self.leCertificate.setObjectName("leCertificate")
  64. self.glCertificate.addWidget(self.leCertificate, 0, 1, 1, 1)
  65. self.lblCertificateFile = QtWidgets.QLabel(self.gbCertificate)
  66. self.lblCertificateFile.setObjectName("lblCertificateFile")
  67. self.glCertificate.addWidget(self.lblCertificateFile, 0, 0, 1, 1)
  68. self.btnCertificateBrowse = QtWidgets.QPushButton(self.gbCertificate)
  69. self.btnCertificateBrowse.setObjectName("btnCertificateBrowse")
  70. self.glCertificate.addWidget(self.btnCertificateBrowse, 0, 2, 1, 1)
  71. self.verticalLayout_3.addLayout(self.glCertificate)
  72. self.verticalLayout.addWidget(self.gbCertificate)
  73. spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
  74. self.verticalLayout.addItem(spacerItem1)
  75. self.hlButtonBox = QtWidgets.QHBoxLayout()
  76. self.hlButtonBox.setObjectName("hlButtonBox")
  77. self.btnReset = QtWidgets.QPushButton(Settings)
  78. self.btnReset.setEnabled(False)
  79. self.btnReset.setObjectName("btnReset")
  80. self.hlButtonBox.addWidget(self.btnReset)
  81. spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
  82. self.hlButtonBox.addItem(spacerItem2)
  83. self.btnCancel = QtWidgets.QPushButton(Settings)
  84. self.btnCancel.setObjectName("btnCancel")
  85. self.hlButtonBox.addWidget(self.btnCancel)
  86. self.btnOk = QtWidgets.QPushButton(Settings)
  87. self.btnOk.setEnabled(False)
  88. self.btnOk.setObjectName("btnOk")
  89. self.hlButtonBox.addWidget(self.btnOk)
  90. self.verticalLayout.addLayout(self.hlButtonBox)
  91. self.retranslateUi(Settings)
  92. QtCore.QMetaObject.connectSlotsByName(Settings)
  93. def retranslateUi(self, Settings):
  94. _translate = QtCore.QCoreApplication.translate
  95. Settings.setWindowTitle(_translate("Settings", "Settings"))
  96. self.lblWelcomeErrorsHeader.setText(_translate("Settings", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Welcome to OrdersGuru Signer!</span></p></body></html>"))
  97. self.lblWelcomeErrors.setText(_translate("Settings", "<html><head/><body><p>In order to use this tool you must provide XML schema for validating files you will sign and certificate with which you\'ll sign XMLs.</p></body></html>"))
  98. self.gbXMLValidation.setTitle(_translate("Settings", "XML Validation"))
  99. self.lblXMLValidation.setText(_translate("Settings", "Provide XML schema used for validating all XML documents."))
  100. self.lblXMLSchema.setText(_translate("Settings", "XML Schema:"))
  101. self.btnXMLSchemaBrowse.setText(_translate("Settings", "Browse"))
  102. self.gbCertificate.setTitle(_translate("Settings", "Certificate"))
  103. self.lblCertificate.setText(_translate("Settings", "Provide certificate in PKCS 12 format, used for signing documents."))
  104. self.lblCertificateFile.setText(_translate("Settings", "Certificate:"))
  105. self.btnCertificateBrowse.setText(_translate("Settings", "Browse"))
  106. self.btnReset.setText(_translate("Settings", "Reset"))
  107. self.btnCancel.setText(_translate("Settings", "&Cancel"))
  108. self.btnOk.setText(_translate("Settings", "&OK"))