OllamaInterface/Ui_OllamaHistoryEditDialog.py

Mon, 07 Apr 2025 18:22:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 07 Apr 2025 18:22:30 +0200
changeset 69
eb9340034f26
parent 68
ca2e671f894e
permissions
-rw-r--r--

Created global tag <release-10.1.8>.

# Form implementation generated from reading ui file 'OllamaInterface/OllamaHistoryEditDialog.ui'
#
# Created by: PyQt6 UI code generator 6.9.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_OllamaHistoryEditDialog(object):
    def setupUi(self, OllamaHistoryEditDialog):
        OllamaHistoryEditDialog.setObjectName("OllamaHistoryEditDialog")
        OllamaHistoryEditDialog.resize(400, 105)
        OllamaHistoryEditDialog.setSizeGripEnabled(True)
        self.gridLayout = QtWidgets.QGridLayout(OllamaHistoryEditDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(parent=OllamaHistoryEditDialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.chatTitleEdit = QtWidgets.QLineEdit(parent=OllamaHistoryEditDialog)
        self.chatTitleEdit.setClearButtonEnabled(True)
        self.chatTitleEdit.setObjectName("chatTitleEdit")
        self.gridLayout.addWidget(self.chatTitleEdit, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(parent=OllamaHistoryEditDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.modelComboBox = QtWidgets.QComboBox(parent=OllamaHistoryEditDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.modelComboBox.sizePolicy().hasHeightForWidth())
        self.modelComboBox.setSizePolicy(sizePolicy)
        self.modelComboBox.setObjectName("modelComboBox")
        self.gridLayout.addWidget(self.modelComboBox, 1, 1, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=OllamaHistoryEditDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)

        self.retranslateUi(OllamaHistoryEditDialog)
        self.buttonBox.accepted.connect(OllamaHistoryEditDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(OllamaHistoryEditDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(OllamaHistoryEditDialog)

    def retranslateUi(self, OllamaHistoryEditDialog):
        _translate = QtCore.QCoreApplication.translate
        OllamaHistoryEditDialog.setWindowTitle(_translate("OllamaHistoryEditDialog", "Edit Chat Parameters"))
        self.label.setText(_translate("OllamaHistoryEditDialog", "Chat Title:"))
        self.chatTitleEdit.setToolTip(_translate("OllamaHistoryEditDialog", "Enter the title of the chat."))
        self.label_2.setText(_translate("OllamaHistoryEditDialog", "Model:"))
        self.modelComboBox.setToolTip(_translate("OllamaHistoryEditDialog", "Select the model to be used by the chat."))

eric ide

mercurial