1# -*- coding: utf-8 -*- 2 3# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/preferences/toolbar.ui' 4# 5# Created by: PyQt5 UI code generator 5.15.6 6# 7# WARNING: Any manual changes made to this file will be lost when pyuic5 is 8# run again. Do not edit this file unless you know what you are doing. 9 10 11from PyQt5 import QtCore, QtGui, QtWidgets 12 13 14class Ui_Form(object): 15 def setupUi(self, Form): 16 Form.setObjectName("Form") 17 Form.resize(831, 553) 18 self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form) 19 self.verticalLayout_2.setObjectName("verticalLayout_2") 20 self.label = QtWidgets.QLabel(Form) 21 self.label.setWordWrap(True) 22 self.label.setObjectName("label") 23 self.verticalLayout_2.addWidget(self.label) 24 self.what = QtWidgets.QComboBox(Form) 25 self.what.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) 26 self.what.setMinimumContentsLength(20) 27 self.what.setObjectName("what") 28 self.verticalLayout_2.addWidget(self.what) 29 self.actions_widget = QtWidgets.QWidget(Form) 30 self.actions_widget.setObjectName("actions_widget") 31 self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.actions_widget) 32 self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) 33 self.horizontalLayout_2.setObjectName("horizontalLayout_2") 34 self.groupBox = QtWidgets.QGroupBox(self.actions_widget) 35 self.groupBox.setObjectName("groupBox") 36 self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) 37 self.verticalLayout.setObjectName("verticalLayout") 38 self.all_actions = QtWidgets.QListView(self.groupBox) 39 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) 40 sizePolicy.setHorizontalStretch(0) 41 sizePolicy.setVerticalStretch(100) 42 sizePolicy.setHeightForWidth(self.all_actions.sizePolicy().hasHeightForWidth()) 43 self.all_actions.setSizePolicy(sizePolicy) 44 self.all_actions.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) 45 self.all_actions.setIconSize(QtCore.QSize(32, 32)) 46 self.all_actions.setWordWrap(True) 47 self.all_actions.setObjectName("all_actions") 48 self.verticalLayout.addWidget(self.all_actions) 49 self.horizontalLayout_2.addWidget(self.groupBox) 50 self.verticalLayout_3 = QtWidgets.QVBoxLayout() 51 self.verticalLayout_3.setObjectName("verticalLayout_3") 52 self.add_action_button = QtWidgets.QToolButton(self.actions_widget) 53 icon = QtGui.QIcon() 54 icon.addPixmap(QtGui.QPixmap(I("forward.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 55 self.add_action_button.setIcon(icon) 56 self.add_action_button.setIconSize(QtCore.QSize(24, 24)) 57 self.add_action_button.setObjectName("add_action_button") 58 self.verticalLayout_3.addWidget(self.add_action_button) 59 spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) 60 self.verticalLayout_3.addItem(spacerItem) 61 self.remove_action_button = QtWidgets.QToolButton(self.actions_widget) 62 icon1 = QtGui.QIcon() 63 icon1.addPixmap(QtGui.QPixmap(I("back.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 64 self.remove_action_button.setIcon(icon1) 65 self.remove_action_button.setIconSize(QtCore.QSize(24, 24)) 66 self.remove_action_button.setObjectName("remove_action_button") 67 self.verticalLayout_3.addWidget(self.remove_action_button) 68 self.horizontalLayout_2.addLayout(self.verticalLayout_3) 69 self.groupBox_2 = QtWidgets.QGroupBox(self.actions_widget) 70 self.groupBox_2.setObjectName("groupBox_2") 71 self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2) 72 self.horizontalLayout.setObjectName("horizontalLayout") 73 self.current_actions = QtWidgets.QListView(self.groupBox_2) 74 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) 75 sizePolicy.setHorizontalStretch(0) 76 sizePolicy.setVerticalStretch(100) 77 sizePolicy.setHeightForWidth(self.current_actions.sizePolicy().hasHeightForWidth()) 78 self.current_actions.setSizePolicy(sizePolicy) 79 self.current_actions.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) 80 self.current_actions.setIconSize(QtCore.QSize(32, 32)) 81 self.current_actions.setWordWrap(True) 82 self.current_actions.setObjectName("current_actions") 83 self.horizontalLayout.addWidget(self.current_actions) 84 self.verticalLayout_4 = QtWidgets.QVBoxLayout() 85 self.verticalLayout_4.setObjectName("verticalLayout_4") 86 self.action_up_button = QtWidgets.QToolButton(self.groupBox_2) 87 icon2 = QtGui.QIcon() 88 icon2.addPixmap(QtGui.QPixmap(I("arrow-up.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 89 self.action_up_button.setIcon(icon2) 90 self.action_up_button.setIconSize(QtCore.QSize(24, 24)) 91 self.action_up_button.setObjectName("action_up_button") 92 self.verticalLayout_4.addWidget(self.action_up_button) 93 spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) 94 self.verticalLayout_4.addItem(spacerItem1) 95 self.action_down_button = QtWidgets.QToolButton(self.groupBox_2) 96 icon3 = QtGui.QIcon() 97 icon3.addPixmap(QtGui.QPixmap(I("arrow-down.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 98 self.action_down_button.setIcon(icon3) 99 self.action_down_button.setIconSize(QtCore.QSize(24, 24)) 100 self.action_down_button.setObjectName("action_down_button") 101 self.verticalLayout_4.addWidget(self.action_down_button) 102 self.horizontalLayout.addLayout(self.verticalLayout_4) 103 self.horizontalLayout_2.addWidget(self.groupBox_2) 104 self.verticalLayout_2.addWidget(self.actions_widget) 105 self.help_text = QtWidgets.QLabel(Form) 106 self.help_text.setText("") 107 self.help_text.setWordWrap(True) 108 self.help_text.setObjectName("help_text") 109 self.verticalLayout_2.addWidget(self.help_text) 110 self.spacer_widget = QtWidgets.QWidget(Form) 111 self.spacer_widget.setObjectName("spacer_widget") 112 self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.spacer_widget) 113 self.verticalLayout_5.setObjectName("verticalLayout_5") 114 spacerItem2 = QtWidgets.QSpacerItem(20, 224, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) 115 self.verticalLayout_5.addItem(spacerItem2) 116 self.verticalLayout_2.addWidget(self.spacer_widget) 117 118 self.retranslateUi(Form) 119 QtCore.QMetaObject.connectSlotsByName(Form) 120 121 def retranslateUi(self, Form): 122 123 Form.setWindowTitle(_("Form")) 124 self.label.setText(_("<p>The toolbar in calibre is different depending on whether a device is connected or not. Choose <b>which toolbar</b> you would like to customize:")) 125 self.what.setToolTip(_("Choose the toolbar to customize")) 126 self.groupBox.setTitle(_("A&vailable actions")) 127 self.add_action_button.setToolTip(_("Add selected actions to toolbar")) 128 self.add_action_button.setText(_("...")) 129 self.remove_action_button.setToolTip(_("Remove selected actions from toolbar")) 130 self.remove_action_button.setText(_("...")) 131 self.groupBox_2.setTitle(_("&Current actions")) 132 self.action_up_button.setToolTip(_("Move selected action up")) 133 self.action_up_button.setText(_("...")) 134 self.action_down_button.setToolTip(_("Move selected action down")) 135 self.action_down_button.setText(_("...")) 136 self.action_down_button.setShortcut(_("Ctrl+S")) 137 138