--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OllamaInterface/Ui_RunOllamaServerDialog.py Thu Aug 08 18:33:49 2024 +0200 @@ -0,0 +1,66 @@ +# Form implementation generated from reading ui file 'OllamaInterface/RunOllamaServerDialog.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_RunOllamaServerDialog(object): + def setupUi(self, RunOllamaServerDialog): + RunOllamaServerDialog.setObjectName("RunOllamaServerDialog") + RunOllamaServerDialog.resize(600, 500) + RunOllamaServerDialog.setSizeGripEnabled(True) + self.verticalLayout_2 = QtWidgets.QVBoxLayout(RunOllamaServerDialog) + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.groupBox = QtWidgets.QGroupBox(parent=RunOllamaServerDialog) + self.groupBox.setObjectName("groupBox") + self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) + self.verticalLayout.setObjectName("verticalLayout") + self.outputEdit = QtWidgets.QPlainTextEdit(parent=self.groupBox) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.outputEdit.sizePolicy().hasHeightForWidth()) + self.outputEdit.setSizePolicy(sizePolicy) + self.outputEdit.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.WidgetWidth) + self.outputEdit.setReadOnly(True) + self.outputEdit.setObjectName("outputEdit") + self.verticalLayout.addWidget(self.outputEdit) + self.verticalLayout_2.addWidget(self.groupBox) + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.restartServerButton = QtWidgets.QPushButton(parent=RunOllamaServerDialog) + self.restartServerButton.setEnabled(False) + self.restartServerButton.setObjectName("restartServerButton") + self.horizontalLayout.addWidget(self.restartServerButton) + self.stopServerButton = QtWidgets.QPushButton(parent=RunOllamaServerDialog) + self.stopServerButton.setEnabled(False) + self.stopServerButton.setObjectName("stopServerButton") + self.horizontalLayout.addWidget(self.stopServerButton) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.horizontalLayout.addItem(spacerItem) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=RunOllamaServerDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) + self.buttonBox.setObjectName("buttonBox") + self.horizontalLayout.addWidget(self.buttonBox) + self.verticalLayout_2.addLayout(self.horizontalLayout) + + self.retranslateUi(RunOllamaServerDialog) + self.buttonBox.rejected.connect(RunOllamaServerDialog.reject) # type: ignore + QtCore.QMetaObject.connectSlotsByName(RunOllamaServerDialog) + RunOllamaServerDialog.setTabOrder(self.outputEdit, self.restartServerButton) + RunOllamaServerDialog.setTabOrder(self.restartServerButton, self.stopServerButton) + + def retranslateUi(self, RunOllamaServerDialog): + _translate = QtCore.QCoreApplication.translate + RunOllamaServerDialog.setWindowTitle(_translate("RunOllamaServerDialog", "ollama Server")) + self.groupBox.setTitle(_translate("RunOllamaServerDialog", "Output")) + self.restartServerButton.setToolTip(_translate("RunOllamaServerDialog", "Press to restart the loacl ollama server.")) + self.restartServerButton.setText(_translate("RunOllamaServerDialog", "Re-Start Server")) + self.stopServerButton.setToolTip(_translate("RunOllamaServerDialog", "Press to stop the running ollama server.")) + self.stopServerButton.setText(_translate("RunOllamaServerDialog", "Stop Server"))