mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-04-26 09:12:05 +12:00
863e8df483
- Made small changes to better fit the style of the project. - Fixed a bug that would result in a crash when details were applied with the bulk info manager. - Improved the Bulk Manager UI by adding the list-add and list-remove icons, to better fit it to Manuskript's style. Also added tooltips.
86 lines
4.4 KiB
Python
86 lines
4.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'manuskript\manuskript\ui\bulkInfoManager.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.4
|
|
#
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
class Ui_BulkInfoManager(object):
|
|
def setupUi(self, BulkInfoManager):
|
|
BulkInfoManager.setObjectName("BulkInfoManager")
|
|
BulkInfoManager.setWindowModality(QtCore.Qt.WindowModal)
|
|
BulkInfoManager.resize(644, 556)
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(BulkInfoManager)
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.lblStaticMessage = QtWidgets.QLabel(BulkInfoManager)
|
|
self.lblStaticMessage.setObjectName("lblStaticMessage")
|
|
self.verticalLayout.addWidget(self.lblStaticMessage)
|
|
self.lblCharactersDynamic = QtWidgets.QLabel(BulkInfoManager)
|
|
self.lblCharactersDynamic.setObjectName("lblCharactersDynamic")
|
|
self.verticalLayout.addWidget(self.lblCharactersDynamic)
|
|
self.tableView = QtWidgets.QTableView(BulkInfoManager)
|
|
self.tableView.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedKingdom))
|
|
self.tableView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
|
self.tableView.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
|
|
self.tableView.setAlternatingRowColors(True)
|
|
self.tableView.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
|
|
self.tableView.setTextElideMode(QtCore.Qt.ElideNone)
|
|
self.tableView.setCornerButtonEnabled(False)
|
|
self.tableView.setObjectName("tableView")
|
|
self.tableView.verticalHeader().setVisible(False)
|
|
self.verticalLayout.addWidget(self.tableView)
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
self.btnPersoBulkAddInfo = QtWidgets.QPushButton(BulkInfoManager)
|
|
self.btnPersoBulkAddInfo.setText("")
|
|
icon = QtGui.QIcon.fromTheme("list-add")
|
|
self.btnPersoBulkAddInfo.setIcon(icon)
|
|
self.btnPersoBulkAddInfo.setObjectName("btnPersoBulkAddInfo")
|
|
self.horizontalLayout.addWidget(self.btnPersoBulkAddInfo)
|
|
self.btnPersoBulkRmInfo = QtWidgets.QPushButton(BulkInfoManager)
|
|
self.btnPersoBulkRmInfo.setText("")
|
|
icon = QtGui.QIcon.fromTheme("list-remove")
|
|
self.btnPersoBulkRmInfo.setIcon(icon)
|
|
self.btnPersoBulkRmInfo.setObjectName("btnPersoBulkRmInfo")
|
|
self.horizontalLayout.addWidget(self.btnPersoBulkRmInfo)
|
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
self.horizontalLayout.addItem(spacerItem)
|
|
self.btnPersoBulkApply = QtWidgets.QPushButton(BulkInfoManager)
|
|
self.btnPersoBulkApply.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedKingdom))
|
|
self.btnPersoBulkApply.setObjectName("btnPersoBulkApply")
|
|
self.horizontalLayout.addWidget(self.btnPersoBulkApply)
|
|
self.horizontalLayout.setStretch(0, 1)
|
|
self.horizontalLayout.setStretch(1, 1)
|
|
self.horizontalLayout.setStretch(2, 5)
|
|
self.horizontalLayout.setStretch(3, 1)
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
|
|
self.retranslateUi(BulkInfoManager)
|
|
QtCore.QMetaObject.connectSlotsByName(BulkInfoManager)
|
|
|
|
def retranslateUi(self, BulkInfoManager):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
BulkInfoManager.setWindowTitle(_translate("BulkInfoManager", "Form"))
|
|
self.lblStaticMessage.setText(_translate("BulkInfoManager", "Affected Characters:"))
|
|
self.lblCharactersDynamic.setText(_translate("BulkInfoManager", "NONE"))
|
|
self.btnPersoBulkAddInfo.setToolTip(_translate("BulkInfoManager", "Add entry to the list."))
|
|
self.btnPersoBulkRmInfo.setToolTip(_translate("BulkInfoManager", "Remove entry from the list."))
|
|
self.btnPersoBulkApply.setToolTip(_translate("BulkInfoManager", "Adds all items to the selected characters."))
|
|
self.btnPersoBulkApply.setText(_translate("BulkInfoManager", "Apply Changes"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
BulkInfoManager = QtWidgets.QWidget()
|
|
ui = Ui_BulkInfoManager()
|
|
ui.setupUi(BulkInfoManager)
|
|
BulkInfoManager.show()
|
|
sys.exit(app.exec_())
|