home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1210 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  2.5 KB  |  50 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_Form(object):
  7.     
  8.     def setupUi(self, Form):
  9.         Form.setObjectName('Form')
  10.         Form.resize(470, 300)
  11.         self.gridLayout = QtGui.QGridLayout(Form)
  12.         self.gridLayout.setObjectName('gridLayout')
  13.         self.opt_single_line_paras = QtGui.QCheckBox(Form)
  14.         self.opt_single_line_paras.setObjectName('opt_single_line_paras')
  15.         self.gridLayout.addWidget(self.opt_single_line_paras, 0, 0, 1, 1)
  16.         self.opt_print_formatted_paras = QtGui.QCheckBox(Form)
  17.         self.opt_print_formatted_paras.setObjectName('opt_print_formatted_paras')
  18.         self.gridLayout.addWidget(self.opt_print_formatted_paras, 1, 0, 1, 1)
  19.         self.opt_markdown = QtGui.QCheckBox(Form)
  20.         self.opt_markdown.setObjectName('opt_markdown')
  21.         self.gridLayout.addWidget(self.opt_markdown, 2, 0, 1, 1)
  22.         self.label = QtGui.QLabel(Form)
  23.         self.label.setWordWrap(True)
  24.         self.label.setOpenExternalLinks(True)
  25.         self.label.setObjectName('label')
  26.         self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
  27.         self.opt_markdown_disable_toc = QtGui.QCheckBox(Form)
  28.         self.opt_markdown_disable_toc.setObjectName('opt_markdown_disable_toc')
  29.         self.gridLayout.addWidget(self.opt_markdown_disable_toc, 4, 0, 1, 1)
  30.         spacerItem = QtGui.QSpacerItem(20, 213, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  31.         self.gridLayout.addItem(spacerItem, 6, 0, 1, 1)
  32.         self.opt_preserve_spaces = QtGui.QCheckBox(Form)
  33.         self.opt_preserve_spaces.setObjectName('opt_preserve_spaces')
  34.         self.gridLayout.addWidget(self.opt_preserve_spaces, 5, 0, 1, 1)
  35.         self.retranslateUi(Form)
  36.         QtCore.QObject.connect(self.opt_markdown, QtCore.SIGNAL('toggled(bool)'), self.opt_markdown_disable_toc.setEnabled)
  37.         QtCore.QMetaObject.connectSlotsByName(Form)
  38.  
  39.     
  40.     def retranslateUi(self, Form):
  41.         Form.setWindowTitle(_('Form'))
  42.         self.opt_single_line_paras.setText(_('Treat each &line as a paragraph'))
  43.         self.opt_print_formatted_paras.setText(_('Assume print formatting'))
  44.         self.opt_markdown.setText(_('Process using markdown'))
  45.         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>.'))
  46.         self.opt_markdown_disable_toc.setText(_('Do not insert Table of Contents into output text when using markdown'))
  47.         self.opt_preserve_spaces.setText(_('Preserve &spaces'))
  48.  
  49.  
  50.