OllamaInterface/Ui_OllamaHistoryEditDialog.py

Fri, 29 Nov 2024 13:09:48 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 29 Nov 2024 13:09:48 +0100
changeset 64
03ccfd615e7c
parent 44
ef9a85b8768a
child 68
ca2e671f894e
permissions
-rw-r--r--

Added the compiled forms to the repository.

44
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # Form implementation generated from reading ui file 'OllamaInterface/OllamaHistoryEditDialog.ui'
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2 #
64
03ccfd615e7c Added the compiled forms to the repository.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 44
diff changeset
3 # Created by: PyQt6 UI code generator 6.8.0.dev2411221125
44
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 # run again. Do not edit this file unless you know what you are doing.
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9 from PyQt6 import QtCore, QtGui, QtWidgets
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12 class Ui_OllamaHistoryEditDialog(object):
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 def setupUi(self, OllamaHistoryEditDialog):
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 OllamaHistoryEditDialog.setObjectName("OllamaHistoryEditDialog")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 OllamaHistoryEditDialog.resize(400, 105)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 OllamaHistoryEditDialog.setSizeGripEnabled(True)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 self.gridLayout = QtWidgets.QGridLayout(OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 self.gridLayout.setObjectName("gridLayout")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 self.label = QtWidgets.QLabel(parent=OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 self.label.setObjectName("label")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21 self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 self.chatTitleEdit = QtWidgets.QLineEdit(parent=OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 self.chatTitleEdit.setClearButtonEnabled(True)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24 self.chatTitleEdit.setObjectName("chatTitleEdit")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 self.gridLayout.addWidget(self.chatTitleEdit, 0, 1, 1, 1)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 self.label_2 = QtWidgets.QLabel(parent=OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27 self.label_2.setObjectName("label_2")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28 self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 self.modelComboBox = QtWidgets.QComboBox(parent=OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31 sizePolicy.setHorizontalStretch(0)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 sizePolicy.setVerticalStretch(0)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33 sizePolicy.setHeightForWidth(self.modelComboBox.sizePolicy().hasHeightForWidth())
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 self.modelComboBox.setSizePolicy(sizePolicy)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35 self.modelComboBox.setObjectName("modelComboBox")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 self.gridLayout.addWidget(self.modelComboBox, 1, 1, 1, 1)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
37 self.buttonBox = QtWidgets.QDialogButtonBox(parent=OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
38 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
39 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
40 self.buttonBox.setObjectName("buttonBox")
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
41 self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
42
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
43 self.retranslateUi(OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
44 self.buttonBox.accepted.connect(OllamaHistoryEditDialog.accept) # type: ignore
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
45 self.buttonBox.rejected.connect(OllamaHistoryEditDialog.reject) # type: ignore
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
46 QtCore.QMetaObject.connectSlotsByName(OllamaHistoryEditDialog)
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
47
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
48 def retranslateUi(self, OllamaHistoryEditDialog):
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
49 _translate = QtCore.QCoreApplication.translate
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
50 OllamaHistoryEditDialog.setWindowTitle(_translate("OllamaHistoryEditDialog", "Edit Chat Parameters"))
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
51 self.label.setText(_translate("OllamaHistoryEditDialog", "Chat Title:"))
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
52 self.chatTitleEdit.setToolTip(_translate("OllamaHistoryEditDialog", "Enter the title of the chat."))
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
53 self.label_2.setText(_translate("OllamaHistoryEditDialog", "Model:"))
ef9a85b8768a Added the capability to change the model of a chat.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
54 self.modelComboBox.setToolTip(_translate("OllamaHistoryEditDialog", "Select the model to be used by the chat."))

eric ide

mercurial