1# -*- coding: utf-8 -*- 2 3# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/preferences/plugins.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(723, 540) 18 self.verticalLayout = QtWidgets.QVBoxLayout(Form) 19 self.verticalLayout.setObjectName("verticalLayout") 20 self.label_8 = QtWidgets.QLabel(Form) 21 self.label_8.setWordWrap(True) 22 self.label_8.setObjectName("label_8") 23 self.verticalLayout.addWidget(self.label_8) 24 self.horizontalLayout = QtWidgets.QHBoxLayout() 25 self.horizontalLayout.setObjectName("horizontalLayout") 26 self.search = SearchBox2(Form) 27 self.search.setObjectName("search") 28 self.horizontalLayout.addWidget(self.search) 29 self.next_button = QtWidgets.QPushButton(Form) 30 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) 31 sizePolicy.setHorizontalStretch(0) 32 sizePolicy.setVerticalStretch(0) 33 sizePolicy.setHeightForWidth(self.next_button.sizePolicy().hasHeightForWidth()) 34 self.next_button.setSizePolicy(sizePolicy) 35 icon = QtGui.QIcon() 36 icon.addPixmap(QtGui.QPixmap(I("arrow-down.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 37 self.next_button.setIcon(icon) 38 self.next_button.setObjectName("next_button") 39 self.horizontalLayout.addWidget(self.next_button) 40 self.previous_button = QtWidgets.QPushButton(Form) 41 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) 42 sizePolicy.setHorizontalStretch(0) 43 sizePolicy.setVerticalStretch(0) 44 sizePolicy.setHeightForWidth(self.previous_button.sizePolicy().hasHeightForWidth()) 45 self.previous_button.setSizePolicy(sizePolicy) 46 icon1 = QtGui.QIcon() 47 icon1.addPixmap(QtGui.QPixmap(I("arrow-up.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 48 self.previous_button.setIcon(icon1) 49 self.previous_button.setObjectName("previous_button") 50 self.horizontalLayout.addWidget(self.previous_button) 51 self.verticalLayout.addLayout(self.horizontalLayout) 52 self.user_installed_plugins = QtWidgets.QCheckBox(Form) 53 self.user_installed_plugins.setObjectName("user_installed_plugins") 54 self.verticalLayout.addWidget(self.user_installed_plugins) 55 self.plugin_view = QtWidgets.QTreeView(Form) 56 self.plugin_view.setAlternatingRowColors(True) 57 self.plugin_view.setIconSize(QtCore.QSize(32, 32)) 58 self.plugin_view.setAnimated(True) 59 self.plugin_view.setWordWrap(True) 60 self.plugin_view.setHeaderHidden(True) 61 self.plugin_view.setObjectName("plugin_view") 62 self.verticalLayout.addWidget(self.plugin_view) 63 self.horizontalLayout_6 = QtWidgets.QHBoxLayout() 64 self.horizontalLayout_6.setObjectName("horizontalLayout_6") 65 self.toggle_plugin_button = QtWidgets.QPushButton(Form) 66 self.toggle_plugin_button.setObjectName("toggle_plugin_button") 67 self.horizontalLayout_6.addWidget(self.toggle_plugin_button) 68 self.customize_plugin_button = QtWidgets.QPushButton(Form) 69 self.customize_plugin_button.setObjectName("customize_plugin_button") 70 self.horizontalLayout_6.addWidget(self.customize_plugin_button) 71 self.remove_plugin_button = QtWidgets.QPushButton(Form) 72 self.remove_plugin_button.setObjectName("remove_plugin_button") 73 self.horizontalLayout_6.addWidget(self.remove_plugin_button) 74 self.verticalLayout.addLayout(self.horizontalLayout_6) 75 self.frame = QtWidgets.QFrame(Form) 76 self.frame.setFrameShape(QtWidgets.QFrame.HLine) 77 self.frame.setObjectName("frame") 78 self.verticalLayout.addWidget(self.frame) 79 self.horizontalLayout_7 = QtWidgets.QHBoxLayout() 80 self.horizontalLayout_7.setObjectName("horizontalLayout_7") 81 self.button_plugin_new = QtWidgets.QPushButton(Form) 82 icon2 = QtGui.QIcon() 83 icon2.addPixmap(QtGui.QPixmap(I("plugins/plugin_new.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 84 self.button_plugin_new.setIcon(icon2) 85 self.button_plugin_new.setObjectName("button_plugin_new") 86 self.horizontalLayout_7.addWidget(self.button_plugin_new) 87 self.button_plugin_updates = QtWidgets.QPushButton(Form) 88 icon3 = QtGui.QIcon() 89 icon3.addPixmap(QtGui.QPixmap(I("plugins/plugin_updater.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 90 self.button_plugin_updates.setIcon(icon3) 91 self.button_plugin_updates.setObjectName("button_plugin_updates") 92 self.horizontalLayout_7.addWidget(self.button_plugin_updates) 93 self.button_plugin_add = QtWidgets.QPushButton(Form) 94 icon4 = QtGui.QIcon() 95 icon4.addPixmap(QtGui.QPixmap(I("document_open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 96 self.button_plugin_add.setIcon(icon4) 97 self.button_plugin_add.setObjectName("button_plugin_add") 98 self.horizontalLayout_7.addWidget(self.button_plugin_add) 99 self.verticalLayout.addLayout(self.horizontalLayout_7) 100 101 self.retranslateUi(Form) 102 QtCore.QMetaObject.connectSlotsByName(Form) 103 104 def retranslateUi(self, Form): 105 106 Form.setWindowTitle(_("Form")) 107 self.label_8.setText(_("Here you can customize the behavior of calibre by controlling what plugins it uses.")) 108 self.next_button.setText(_("&Next")) 109 self.previous_button.setText(_("&Previous")) 110 self.user_installed_plugins.setToolTip(_("Show only those plugins that have been installed by you")) 111 self.user_installed_plugins.setText(_("Show only &user installed plugins")) 112 self.toggle_plugin_button.setText(_("Enable/&disable plugin")) 113 self.customize_plugin_button.setText(_("&Customize plugin")) 114 self.remove_plugin_button.setText(_("&Remove plugin")) 115 self.button_plugin_new.setText(_("Get &new plugins")) 116 self.button_plugin_updates.setText(_("Check for &updated plugins")) 117 self.button_plugin_add.setText(_("&Load plugin from file")) 118from calibre.gui2.search_box import SearchBox2 119 120