1# -*- coding: utf-8 -*- 2 3# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/confirm_delete_location.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_Dialog(object): 15 def setupUi(self, Dialog): 16 Dialog.setObjectName("Dialog") 17 Dialog.resize(459, 300) 18 icon = QtGui.QIcon() 19 icon.addPixmap(QtGui.QPixmap(I("dialog_warning.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 20 Dialog.setWindowIcon(icon) 21 self.gridLayout = QtWidgets.QGridLayout(Dialog) 22 self.gridLayout.setObjectName("gridLayout") 23 self.horizontalLayout = QtWidgets.QHBoxLayout() 24 self.horizontalLayout.setObjectName("horizontalLayout") 25 self.label = QtWidgets.QLabel(Dialog) 26 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) 27 sizePolicy.setHorizontalStretch(0) 28 sizePolicy.setVerticalStretch(0) 29 sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) 30 self.label.setSizePolicy(sizePolicy) 31 self.label.setPixmap(QtGui.QPixmap(I("dialog_warning.png"))) 32 self.label.setObjectName("label") 33 self.horizontalLayout.addWidget(self.label) 34 self.msg = QtWidgets.QLabel(Dialog) 35 self.msg.setText("") 36 self.msg.setWordWrap(True) 37 self.msg.setObjectName("msg") 38 self.horizontalLayout.addWidget(self.msg) 39 self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) 40 self.horizontalLayout_2 = QtWidgets.QHBoxLayout() 41 self.horizontalLayout_2.setObjectName("horizontalLayout_2") 42 self.button_lib = QtWidgets.QPushButton(Dialog) 43 icon1 = QtGui.QIcon() 44 icon1.addPixmap(QtGui.QPixmap(I("lt.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 45 self.button_lib.setIcon(icon1) 46 self.button_lib.setObjectName("button_lib") 47 self.horizontalLayout_2.addWidget(self.button_lib) 48 self.button_device = QtWidgets.QPushButton(Dialog) 49 icon2 = QtGui.QIcon() 50 icon2.addPixmap(QtGui.QPixmap(I("reader.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 51 self.button_device.setIcon(icon2) 52 self.button_device.setObjectName("button_device") 53 self.horizontalLayout_2.addWidget(self.button_device) 54 self.button_both = QtWidgets.QPushButton(Dialog) 55 icon3 = QtGui.QIcon() 56 icon3.addPixmap(QtGui.QPixmap(I("trash.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 57 self.button_both.setIcon(icon3) 58 self.button_both.setObjectName("button_both") 59 self.horizontalLayout_2.addWidget(self.button_both) 60 self.buttonBox = QtWidgets.QDialogButtonBox(Dialog) 61 self.buttonBox.setOrientation(QtCore.Qt.Horizontal) 62 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel) 63 self.buttonBox.setObjectName("buttonBox") 64 self.horizontalLayout_2.addWidget(self.buttonBox) 65 self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 1) 66 67 self.retranslateUi(Dialog) 68 self.buttonBox.accepted.connect(Dialog.accept) # type: ignore 69 self.buttonBox.rejected.connect(Dialog.reject) # type: ignore 70 QtCore.QMetaObject.connectSlotsByName(Dialog) 71 72 def retranslateUi(self, Dialog): 73 74 Dialog.setWindowTitle(_("Where do you want to delete from?")) 75 self.button_lib.setText(_("Library")) 76 self.button_device.setText(_("Device")) 77 self.button_both.setText(_("Library and device")) 78 79