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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_ViewerConfig(object):
  7.     
  8.     def setupUi(self, ViewerConfig):
  9.         ViewerConfig.setObjectName('ViewerConfig')
  10.         ViewerConfig.resize(373, 264)
  11.         icon = QtGui.QIcon()
  12.         icon.addPixmap(QtGui.QPixmap(I('config.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  13.         ViewerConfig.setWindowIcon(icon)
  14.         self.gridLayout = QtGui.QGridLayout(ViewerConfig)
  15.         self.gridLayout.setObjectName('gridLayout')
  16.         self.white_background = QtGui.QCheckBox(ViewerConfig)
  17.         self.white_background.setObjectName('white_background')
  18.         self.gridLayout.addWidget(self.white_background, 0, 0, 1, 1)
  19.         self.hyphenate = QtGui.QCheckBox(ViewerConfig)
  20.         self.hyphenate.setChecked(True)
  21.         self.hyphenate.setObjectName('hyphenate')
  22.         self.gridLayout.addWidget(self.hyphenate, 1, 0, 1, 1)
  23.         self.label = QtGui.QLabel(ViewerConfig)
  24.         self.label.setFrameShape(QtGui.QFrame.Box)
  25.         self.label.setTextFormat(QtCore.Qt.RichText)
  26.         self.label.setAlignment(QtCore.Qt.AlignCenter)
  27.         self.label.setWordWrap(True)
  28.         self.label.setObjectName('label')
  29.         self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
  30.         self.buttonBox = QtGui.QDialogButtonBox(ViewerConfig)
  31.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  32.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  33.         self.buttonBox.setObjectName('buttonBox')
  34.         self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 1)
  35.         self.retranslateUi(ViewerConfig)
  36.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('accepted()'), ViewerConfig.accept)
  37.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('rejected()'), ViewerConfig.reject)
  38.         QtCore.QMetaObject.connectSlotsByName(ViewerConfig)
  39.  
  40.     
  41.     def retranslateUi(self, ViewerConfig):
  42.         ViewerConfig.setWindowTitle(_('Configure Viewer'))
  43.         self.white_background.setText(_('Use white background'))
  44.         self.hyphenate.setText(_('Hyphenate'))
  45.         self.label.setText(_('<b>Changes will only take effect after a restart.</b>'))
  46.  
  47.  
  48.