Fri, 30 Aug 2024 12:04:28 +0200
Did the German translations and corrected some typing issues.
7
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
1 | # Form implementation generated from reading ui file 'OllamaInterface/RunOllamaServerDialog.ui' |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
2 | # |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
3 | # Created by: PyQt6 UI code generator 6.7.1 |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
4 | # |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
5 | # WARNING: Any manual changes made to this file will be lost when pyuic6 is |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
6 | # run again. Do not edit this file unless you know what you are doing. |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
7 | |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
8 | |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
9 | from PyQt6 import QtCore, QtGui, QtWidgets |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
10 | |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
11 | |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
12 | class Ui_RunOllamaServerDialog(object): |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
13 | def setupUi(self, RunOllamaServerDialog): |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
14 | RunOllamaServerDialog.setObjectName("RunOllamaServerDialog") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
15 | RunOllamaServerDialog.resize(600, 500) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
16 | RunOllamaServerDialog.setSizeGripEnabled(True) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
17 | self.verticalLayout_2 = QtWidgets.QVBoxLayout(RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
18 | self.verticalLayout_2.setObjectName("verticalLayout_2") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
19 | self.groupBox = QtWidgets.QGroupBox(parent=RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
20 | self.groupBox.setObjectName("groupBox") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
21 | self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
22 | self.verticalLayout.setObjectName("verticalLayout") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
23 | self.outputEdit = QtWidgets.QPlainTextEdit(parent=self.groupBox) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
24 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
25 | sizePolicy.setHorizontalStretch(0) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
26 | sizePolicy.setVerticalStretch(0) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
27 | sizePolicy.setHeightForWidth(self.outputEdit.sizePolicy().hasHeightForWidth()) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
28 | self.outputEdit.setSizePolicy(sizePolicy) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
29 | self.outputEdit.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.WidgetWidth) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
30 | self.outputEdit.setReadOnly(True) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
31 | self.outputEdit.setObjectName("outputEdit") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
32 | self.verticalLayout.addWidget(self.outputEdit) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
33 | self.verticalLayout_2.addWidget(self.groupBox) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
34 | self.horizontalLayout = QtWidgets.QHBoxLayout() |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
35 | self.horizontalLayout.setObjectName("horizontalLayout") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
36 | self.restartServerButton = QtWidgets.QPushButton(parent=RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
37 | self.restartServerButton.setEnabled(False) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
38 | self.restartServerButton.setObjectName("restartServerButton") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
39 | self.horizontalLayout.addWidget(self.restartServerButton) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
40 | self.stopServerButton = QtWidgets.QPushButton(parent=RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
41 | self.stopServerButton.setEnabled(False) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
42 | self.stopServerButton.setObjectName("stopServerButton") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
43 | self.horizontalLayout.addWidget(self.stopServerButton) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
44 | spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
45 | self.horizontalLayout.addItem(spacerItem) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
46 | self.buttonBox = QtWidgets.QDialogButtonBox(parent=RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
47 | self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
48 | self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
49 | self.buttonBox.setObjectName("buttonBox") |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
50 | self.horizontalLayout.addWidget(self.buttonBox) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
51 | self.verticalLayout_2.addLayout(self.horizontalLayout) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
52 | |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
53 | self.retranslateUi(RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
54 | self.buttonBox.rejected.connect(RunOllamaServerDialog.reject) # type: ignore |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
55 | QtCore.QMetaObject.connectSlotsByName(RunOllamaServerDialog) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
56 | RunOllamaServerDialog.setTabOrder(self.outputEdit, self.restartServerButton) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
57 | RunOllamaServerDialog.setTabOrder(self.restartServerButton, self.stopServerButton) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
58 | |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
59 | def retranslateUi(self, RunOllamaServerDialog): |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
60 | _translate = QtCore.QCoreApplication.translate |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
61 | RunOllamaServerDialog.setWindowTitle(_translate("RunOllamaServerDialog", "ollama Server")) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
62 | self.groupBox.setTitle(_translate("RunOllamaServerDialog", "Output")) |
20
8cb7bfe07e15
Did the German translations and corrected some typing issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
7
diff
changeset
|
63 | self.restartServerButton.setToolTip(_translate("RunOllamaServerDialog", "Press to restart the local ollama server.")) |
7
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
64 | self.restartServerButton.setText(_translate("RunOllamaServerDialog", "Re-Start Server")) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
65 | self.stopServerButton.setToolTip(_translate("RunOllamaServerDialog", "Press to stop the running ollama server.")) |
eb1dec15b2f0
Implemented a menu, dialog and actions to start a local 'ollama' server with the capability to monitor its log output.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
66 | self.stopServerButton.setText(_translate("RunOllamaServerDialog", "Stop Server")) |