OllamaInterface/Ui_OllamaHistoryWidget.py

Wed, 28 Aug 2024 18:20:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 28 Aug 2024 18:20:33 +0200
changeset 12
cf507e6f12d7
parent 5
6e8af43d537d
child 21
22245a10b118
permissions
-rw-r--r--

Changed the message input widget to a QPlainTextEdit to be able to enter longer texts.

# Form implementation generated from reading ui file 'OllamaInterface/OllamaHistoryWidget.ui'
#
# Created by: PyQt6 UI code generator 6.7.1
#
# 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_OllamaHistoryWidget(object):
    def setupUi(self, OllamaHistoryWidget):
        OllamaHistoryWidget.setObjectName("OllamaHistoryWidget")
        OllamaHistoryWidget.resize(400, 25)
        self.horizontalLayout = QtWidgets.QHBoxLayout(OllamaHistoryWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.titleEdit = QtWidgets.QLineEdit(parent=OllamaHistoryWidget)
        self.titleEdit.setReadOnly(True)
        self.titleEdit.setObjectName("titleEdit")
        self.horizontalLayout.addWidget(self.titleEdit)
        self.modelEdit = QtWidgets.QLineEdit(parent=OllamaHistoryWidget)
        self.modelEdit.setMaximumSize(QtCore.QSize(100, 16777215))
        self.modelEdit.setReadOnly(True)
        self.modelEdit.setObjectName("modelEdit")
        self.horizontalLayout.addWidget(self.modelEdit)
        self.newChatButton = QtWidgets.QToolButton(parent=OllamaHistoryWidget)
        self.newChatButton.setObjectName("newChatButton")
        self.horizontalLayout.addWidget(self.newChatButton)
        self.editButton = QtWidgets.QToolButton(parent=OllamaHistoryWidget)
        self.editButton.setObjectName("editButton")
        self.horizontalLayout.addWidget(self.editButton)
        self.deleteButton = QtWidgets.QToolButton(parent=OllamaHistoryWidget)
        self.deleteButton.setObjectName("deleteButton")
        self.horizontalLayout.addWidget(self.deleteButton)

        self.retranslateUi(OllamaHistoryWidget)
        QtCore.QMetaObject.connectSlotsByName(OllamaHistoryWidget)
        OllamaHistoryWidget.setTabOrder(self.titleEdit, self.modelEdit)
        OllamaHistoryWidget.setTabOrder(self.modelEdit, self.newChatButton)
        OllamaHistoryWidget.setTabOrder(self.newChatButton, self.editButton)
        OllamaHistoryWidget.setTabOrder(self.editButton, self.deleteButton)

    def retranslateUi(self, OllamaHistoryWidget):
        _translate = QtCore.QCoreApplication.translate
        self.newChatButton.setToolTip(_translate("OllamaHistoryWidget", "Press to start a new chat based on the current history or switch to an already opened chat."))
        self.editButton.setToolTip(_translate("OllamaHistoryWidget", "Press to edit the chat title."))
        self.deleteButton.setToolTip(_translate("OllamaHistoryWidget", "Press to delete this chat history."))

eric ide

mercurial