home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1398 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  5.8 KB  |  133 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. try:
  7.     _fromUtf8 = QtCore.QString.fromUtf8
  8. except AttributeError:
  9.     
  10.     _fromUtf8 = lambda s: s
  11.  
  12.  
  13. class Ui_Form(object):
  14.     
  15.     def setupUi(self, Form):
  16.         Form.setObjectName(_fromUtf8('Form'))
  17.         Form.resize(585, 238)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.horizontalLayout_9 = QtGui.QHBoxLayout()
  21.         self.horizontalLayout_9.setObjectName(_fromUtf8('horizontalLayout_9'))
  22.         self.label_15 = QtGui.QLabel(Form)
  23.         self.label_15.setObjectName(_fromUtf8('label_15'))
  24.         self.horizontalLayout_9.addWidget(self.label_15)
  25.         self.email_from = QtGui.QLineEdit(Form)
  26.         self.email_from.setObjectName(_fromUtf8('email_from'))
  27.         self.horizontalLayout_9.addWidget(self.email_from)
  28.         self.gridLayout.addLayout(self.horizontalLayout_9, 0, 0, 1, 2)
  29.         self.groupBox_5 = QtGui.QGroupBox(Form)
  30.         self.groupBox_5.setObjectName(_fromUtf8('groupBox_5'))
  31.         self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_5)
  32.         self.gridLayout_3.setObjectName(_fromUtf8('gridLayout_3'))
  33.         self.label_16 = QtGui.QLabel(self.groupBox_5)
  34.         self.label_16.setWordWrap(True)
  35.         self.label_16.setObjectName(_fromUtf8('label_16'))
  36.         self.gridLayout_3.addWidget(self.label_16, 0, 0, 1, 4)
  37.         self.label_17 = QtGui.QLabel(self.groupBox_5)
  38.         self.label_17.setObjectName(_fromUtf8('label_17'))
  39.         self.gridLayout_3.addWidget(self.label_17, 1, 0, 1, 1)
  40.         self.relay_host = QtGui.QLineEdit(self.groupBox_5)
  41.         self.relay_host.setObjectName(_fromUtf8('relay_host'))
  42.         self.gridLayout_3.addWidget(self.relay_host, 1, 1, 1, 2)
  43.         self.horizontalLayout_11 = QtGui.QHBoxLayout()
  44.         self.horizontalLayout_11.setObjectName(_fromUtf8('horizontalLayout_11'))
  45.         self.label_18 = QtGui.QLabel(self.groupBox_5)
  46.         self.label_18.setObjectName(_fromUtf8('label_18'))
  47.         self.horizontalLayout_11.addWidget(self.label_18)
  48.         self.relay_port = QtGui.QSpinBox(self.groupBox_5)
  49.         self.relay_port.setMinimum(1)
  50.         self.relay_port.setMaximum(65555)
  51.         self.relay_port.setProperty(_fromUtf8('value'), 25)
  52.         self.relay_port.setObjectName(_fromUtf8('relay_port'))
  53.         self.horizontalLayout_11.addWidget(self.relay_port)
  54.         self.gridLayout_3.addLayout(self.horizontalLayout_11, 1, 3, 1, 1)
  55.         self.label_19 = QtGui.QLabel(self.groupBox_5)
  56.         self.label_19.setObjectName(_fromUtf8('label_19'))
  57.         self.gridLayout_3.addWidget(self.label_19, 2, 0, 1, 1)
  58.         self.relay_username = QtGui.QLineEdit(self.groupBox_5)
  59.         self.relay_username.setObjectName(_fromUtf8('relay_username'))
  60.         self.gridLayout_3.addWidget(self.relay_username, 2, 1, 1, 2)
  61.         self.label_20 = QtGui.QLabel(self.groupBox_5)
  62.         self.label_20.setObjectName(_fromUtf8('label_20'))
  63.         self.gridLayout_3.addWidget(self.label_20, 3, 0, 1, 1)
  64.         self.relay_password = QtGui.QLineEdit(self.groupBox_5)
  65.         self.relay_password.setEchoMode(QtGui.QLineEdit.Password)
  66.         self.relay_password.setObjectName(_fromUtf8('relay_password'))
  67.         self.gridLayout_3.addWidget(self.relay_password, 3, 1, 1, 2)
  68.         self.relay_show_password = QtGui.QCheckBox(self.groupBox_5)
  69.         self.relay_show_password.setObjectName(_fromUtf8('relay_show_password'))
  70.         self.gridLayout_3.addWidget(self.relay_show_password, 3, 3, 1, 1)
  71.         self.label_21 = QtGui.QLabel(self.groupBox_5)
  72.         self.label_21.setObjectName(_fromUtf8('label_21'))
  73.         self.gridLayout_3.addWidget(self.label_21, 4, 0, 1, 1)
  74.         self.relay_tls = QtGui.QRadioButton(self.groupBox_5)
  75.         self.relay_tls.setChecked(True)
  76.         self.relay_tls.setObjectName(_fromUtf8('relay_tls'))
  77.         self.gridLayout_3.addWidget(self.relay_tls, 4, 1, 1, 1)
  78.         self.relay_ssl = QtGui.QRadioButton(self.groupBox_5)
  79.         self.relay_ssl.setObjectName(_fromUtf8('relay_ssl'))
  80.         self.gridLayout_3.addWidget(self.relay_ssl, 4, 2, 1, 2)
  81.         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  82.         self.gridLayout_3.addItem(spacerItem, 3, 4, 1, 1)
  83.         self.gridLayout.addWidget(self.groupBox_5, 1, 0, 1, 1)
  84.         self.verticalLayout_9 = QtGui.QVBoxLayout()
  85.         self.verticalLayout_9.setObjectName(_fromUtf8('verticalLayout_9'))
  86.         self.relay_use_gmail = QtGui.QToolButton(Form)
  87.         icon = QtGui.QIcon()
  88.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('gmail_logo.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  89.         self.relay_use_gmail.setIcon(icon)
  90.         self.relay_use_gmail.setIconSize(QtCore.QSize(48, 48))
  91.         self.relay_use_gmail.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
  92.         self.relay_use_gmail.setObjectName(_fromUtf8('relay_use_gmail'))
  93.         self.verticalLayout_9.addWidget(self.relay_use_gmail)
  94.         self.test_email_button = QtGui.QPushButton(Form)
  95.         self.test_email_button.setObjectName(_fromUtf8('test_email_button'))
  96.         self.verticalLayout_9.addWidget(self.test_email_button)
  97.         self.gridLayout.addLayout(self.verticalLayout_9, 1, 1, 1, 1)
  98.         self.label_15.setBuddy(self.email_from)
  99.         self.label_17.setBuddy(self.relay_host)
  100.         self.label_18.setBuddy(self.relay_port)
  101.         self.label_19.setBuddy(self.relay_username)
  102.         self.label_20.setBuddy(self.relay_password)
  103.         self.label_21.setBuddy(self.relay_tls)
  104.         self.retranslateUi(Form)
  105.         QtCore.QMetaObject.connectSlotsByName(Form)
  106.  
  107.     
  108.     def retranslateUi(self, Form):
  109.         Form.setWindowTitle(_('Form'))
  110.         self.label_15.setText(_('Send email &from:'))
  111.         self.email_from.setToolTip(_('<p>This is what will be present in the From: field of emails sent by calibre.<br> Set it to your email address'))
  112.         self.groupBox_5.setToolTip(_('<p>A mail server is useful if the service you are sending mail to only accepts email from well know mail services.'))
  113.         self.groupBox_5.setTitle(_('Mail &Server'))
  114.         self.label_16.setText(_('calibre can <b>optionally</b> use a server to send mail'))
  115.         self.label_17.setText(_('&Hostname:'))
  116.         self.relay_host.setToolTip(_('The hostname of your mail server. For e.g. smtp.gmail.com'))
  117.         self.label_18.setText(_('&Port:'))
  118.         self.relay_port.setToolTip(_('The port your mail server listens for connections on. The default is 25'))
  119.         self.label_19.setText(_('&Username:'))
  120.         self.relay_username.setToolTip(_('Your username on the mail server'))
  121.         self.label_20.setText(_('&Password:'))
  122.         self.relay_password.setToolTip(_('Your password on the mail server'))
  123.         self.relay_show_password.setText(_('&Show'))
  124.         self.label_21.setText(_('&Encryption:'))
  125.         self.relay_tls.setToolTip(_('Use TLS encryption when connecting to the mail server. This is the most common.'))
  126.         self.relay_tls.setText(_('&TLS'))
  127.         self.relay_ssl.setToolTip(_('Use SSL encryption when connecting to the mail server.'))
  128.         self.relay_ssl.setText(_('&SSL'))
  129.         self.relay_use_gmail.setText(_('Use Gmail'))
  130.         self.test_email_button.setText(_('&Test email'))
  131.  
  132.  
  133.