home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1365 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  4.5 KB  |  110 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(831, 553)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.label = QtGui.QLabel(Form)
  21.         self.label.setObjectName(_fromUtf8('label'))
  22.         self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
  23.         self.what = QtGui.QComboBox(Form)
  24.         self.what.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon)
  25.         self.what.setMinimumContentsLength(20)
  26.         self.what.setObjectName(_fromUtf8('what'))
  27.         self.gridLayout.addWidget(self.what, 0, 1, 1, 3)
  28.         self.groupBox = QtGui.QGroupBox(Form)
  29.         self.groupBox.setObjectName(_fromUtf8('groupBox'))
  30.         self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
  31.         self.verticalLayout.setObjectName(_fromUtf8('verticalLayout'))
  32.         self.all_actions = QtGui.QListView(self.groupBox)
  33.         self.all_actions.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
  34.         self.all_actions.setIconSize(QtCore.QSize(32, 32))
  35.         self.all_actions.setSpacing(10)
  36.         self.all_actions.setWordWrap(True)
  37.         self.all_actions.setObjectName(_fromUtf8('all_actions'))
  38.         self.verticalLayout.addWidget(self.all_actions)
  39.         self.gridLayout.addWidget(self.groupBox, 1, 0, 2, 1)
  40.         self.groupBox_2 = QtGui.QGroupBox(Form)
  41.         self.groupBox_2.setObjectName(_fromUtf8('groupBox_2'))
  42.         self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_2)
  43.         self.horizontalLayout.setObjectName(_fromUtf8('horizontalLayout'))
  44.         self.current_actions = QtGui.QListView(self.groupBox_2)
  45.         self.current_actions.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
  46.         self.current_actions.setIconSize(QtCore.QSize(32, 32))
  47.         self.current_actions.setSpacing(10)
  48.         self.current_actions.setWordWrap(True)
  49.         self.current_actions.setObjectName(_fromUtf8('current_actions'))
  50.         self.horizontalLayout.addWidget(self.current_actions)
  51.         self.verticalLayout_4 = QtGui.QVBoxLayout()
  52.         self.verticalLayout_4.setObjectName(_fromUtf8('verticalLayout_4'))
  53.         self.action_up_button = QtGui.QToolButton(self.groupBox_2)
  54.         icon = QtGui.QIcon()
  55.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('arrow-up.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  56.         self.action_up_button.setIcon(icon)
  57.         self.action_up_button.setIconSize(QtCore.QSize(24, 24))
  58.         self.action_up_button.setObjectName(_fromUtf8('action_up_button'))
  59.         self.verticalLayout_4.addWidget(self.action_up_button)
  60.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  61.         self.verticalLayout_4.addItem(spacerItem)
  62.         self.action_down_button = QtGui.QToolButton(self.groupBox_2)
  63.         icon1 = QtGui.QIcon()
  64.         icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I('arrow-down.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  65.         self.action_down_button.setIcon(icon1)
  66.         self.action_down_button.setIconSize(QtCore.QSize(24, 24))
  67.         self.action_down_button.setObjectName(_fromUtf8('action_down_button'))
  68.         self.verticalLayout_4.addWidget(self.action_down_button)
  69.         self.horizontalLayout.addLayout(self.verticalLayout_4)
  70.         self.gridLayout.addWidget(self.groupBox_2, 1, 2, 2, 1)
  71.         self.verticalLayout_3 = QtGui.QVBoxLayout()
  72.         self.verticalLayout_3.setObjectName(_fromUtf8('verticalLayout_3'))
  73.         self.add_action_button = QtGui.QToolButton(Form)
  74.         icon2 = QtGui.QIcon()
  75.         icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I('forward.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  76.         self.add_action_button.setIcon(icon2)
  77.         self.add_action_button.setIconSize(QtCore.QSize(24, 24))
  78.         self.add_action_button.setObjectName(_fromUtf8('add_action_button'))
  79.         self.verticalLayout_3.addWidget(self.add_action_button)
  80.         spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
  81.         self.verticalLayout_3.addItem(spacerItem1)
  82.         self.remove_action_button = QtGui.QToolButton(Form)
  83.         icon3 = QtGui.QIcon()
  84.         icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I('back.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  85.         self.remove_action_button.setIcon(icon3)
  86.         self.remove_action_button.setIconSize(QtCore.QSize(24, 24))
  87.         self.remove_action_button.setObjectName(_fromUtf8('remove_action_button'))
  88.         self.verticalLayout_3.addWidget(self.remove_action_button)
  89.         self.gridLayout.addLayout(self.verticalLayout_3, 1, 1, 2, 1)
  90.         self.retranslateUi(Form)
  91.         QtCore.QMetaObject.connectSlotsByName(Form)
  92.  
  93.     
  94.     def retranslateUi(self, Form):
  95.         Form.setWindowTitle(_('Form'))
  96.         self.label.setText(_('Customize the actions in:'))
  97.         self.groupBox.setTitle(_('A&vailable actions'))
  98.         self.groupBox_2.setTitle(_('&Current actions'))
  99.         self.action_up_button.setToolTip(_('Move selected action up'))
  100.         self.action_up_button.setText(_('...'))
  101.         self.action_down_button.setToolTip(_('Move selected action down'))
  102.         self.action_down_button.setText(_('...'))
  103.         self.action_down_button.setShortcut(_('Ctrl+S'))
  104.         self.add_action_button.setToolTip(_('Add selected actions to toolbar'))
  105.         self.add_action_button.setText(_('...'))
  106.         self.remove_action_button.setToolTip(_('Remove selected actions from toolbar'))
  107.         self.remove_action_button.setText(_('...'))
  108.  
  109.  
  110.