home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1238 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  2.8 KB  |  57 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(470, 300)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.opt_single_line_paras = QtGui.QCheckBox(Form)
  21.         self.opt_single_line_paras.setObjectName(_fromUtf8('opt_single_line_paras'))
  22.         self.gridLayout.addWidget(self.opt_single_line_paras, 0, 0, 1, 1)
  23.         self.opt_print_formatted_paras = QtGui.QCheckBox(Form)
  24.         self.opt_print_formatted_paras.setObjectName(_fromUtf8('opt_print_formatted_paras'))
  25.         self.gridLayout.addWidget(self.opt_print_formatted_paras, 1, 0, 1, 1)
  26.         self.opt_markdown = QtGui.QCheckBox(Form)
  27.         self.opt_markdown.setObjectName(_fromUtf8('opt_markdown'))
  28.         self.gridLayout.addWidget(self.opt_markdown, 2, 0, 1, 1)
  29.         self.label = QtGui.QLabel(Form)
  30.         self.label.setWordWrap(True)
  31.         self.label.setOpenExternalLinks(True)
  32.         self.label.setObjectName(_fromUtf8('label'))
  33.         self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
  34.         self.opt_markdown_disable_toc = QtGui.QCheckBox(Form)
  35.         self.opt_markdown_disable_toc.setObjectName(_fromUtf8('opt_markdown_disable_toc'))
  36.         self.gridLayout.addWidget(self.opt_markdown_disable_toc, 4, 0, 1, 1)
  37.         spacerItem = QtGui.QSpacerItem(20, 213, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  38.         self.gridLayout.addItem(spacerItem, 6, 0, 1, 1)
  39.         self.opt_preserve_spaces = QtGui.QCheckBox(Form)
  40.         self.opt_preserve_spaces.setObjectName(_fromUtf8('opt_preserve_spaces'))
  41.         self.gridLayout.addWidget(self.opt_preserve_spaces, 5, 0, 1, 1)
  42.         self.retranslateUi(Form)
  43.         QtCore.QObject.connect(self.opt_markdown, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.opt_markdown_disable_toc.setEnabled)
  44.         QtCore.QMetaObject.connectSlotsByName(Form)
  45.  
  46.     
  47.     def retranslateUi(self, Form):
  48.         Form.setWindowTitle(_('Form'))
  49.         self.opt_single_line_paras.setText(_('Treat each &line as a paragraph'))
  50.         self.opt_print_formatted_paras.setText(_('Assume print formatting'))
  51.         self.opt_markdown.setText(_('Process using markdown'))
  52.         self.label.setText(_('<p>Markdown is a simple markup language for text files, that allows for advanced formatting. To learn more visit <a href="http://daringfireball.net/projects/markdown">markdown</a>.'))
  53.         self.opt_markdown_disable_toc.setText(_('Do not insert Table of Contents into output text when using markdown'))
  54.         self.opt_preserve_spaces.setText(_('Preserve &spaces'))
  55.  
  56.  
  57.