home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1319 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  2.7 KB  |  55 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_ViewerConfig(object):
  14.     
  15.     def setupUi(self, ViewerConfig):
  16.         ViewerConfig.setObjectName(_fromUtf8('ViewerConfig'))
  17.         ViewerConfig.resize(373, 264)
  18.         icon = QtGui.QIcon()
  19.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('config.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  20.         ViewerConfig.setWindowIcon(icon)
  21.         self.gridLayout = QtGui.QGridLayout(ViewerConfig)
  22.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  23.         self.white_background = QtGui.QCheckBox(ViewerConfig)
  24.         self.white_background.setObjectName(_fromUtf8('white_background'))
  25.         self.gridLayout.addWidget(self.white_background, 0, 0, 1, 1)
  26.         self.hyphenate = QtGui.QCheckBox(ViewerConfig)
  27.         self.hyphenate.setChecked(True)
  28.         self.hyphenate.setObjectName(_fromUtf8('hyphenate'))
  29.         self.gridLayout.addWidget(self.hyphenate, 1, 0, 1, 1)
  30.         self.label = QtGui.QLabel(ViewerConfig)
  31.         self.label.setFrameShape(QtGui.QFrame.Box)
  32.         self.label.setTextFormat(QtCore.Qt.RichText)
  33.         self.label.setAlignment(QtCore.Qt.AlignCenter)
  34.         self.label.setWordWrap(True)
  35.         self.label.setObjectName(_fromUtf8('label'))
  36.         self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
  37.         self.buttonBox = QtGui.QDialogButtonBox(ViewerConfig)
  38.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  39.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  40.         self.buttonBox.setObjectName(_fromUtf8('buttonBox'))
  41.         self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 1)
  42.         self.retranslateUi(ViewerConfig)
  43.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('accepted()')), ViewerConfig.accept)
  44.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8('rejected()')), ViewerConfig.reject)
  45.         QtCore.QMetaObject.connectSlotsByName(ViewerConfig)
  46.  
  47.     
  48.     def retranslateUi(self, ViewerConfig):
  49.         ViewerConfig.setWindowTitle(_('Configure Viewer'))
  50.         self.white_background.setText(_('Use white background'))
  51.         self.hyphenate.setText(_('Hyphenate'))
  52.         self.label.setText(_('<b>Changes will only take effect after a restart.</b>'))
  53.  
  54.  
  55.