You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
190 lines
12 KiB
190 lines
12 KiB
# -*- coding: utf-8 -*- |
|
|
|
# Form implementation generated from reading ui file 'clusterview2.ui' |
|
# |
|
# Created by: PyQt5 UI code generator 5.13.0 |
|
# |
|
# WARNING! All changes made in this file will be lost! |
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets |
|
|
|
|
|
class Ui_MainWindow(object): |
|
def setupUi(self, MainWindow): |
|
MainWindow.setObjectName("MainWindow") |
|
MainWindow.resize(1280, 720) |
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum) |
|
sizePolicy.setHorizontalStretch(0) |
|
sizePolicy.setVerticalStretch(0) |
|
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) |
|
MainWindow.setSizePolicy(sizePolicy) |
|
MainWindow.setMinimumSize(QtCore.QSize(1280, 720)) |
|
MainWindow.setMaximumSize(QtCore.QSize(1280, 720)) |
|
self.centralwidget = QtWidgets.QWidget(MainWindow) |
|
self.centralwidget.setObjectName("centralwidget") |
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget) |
|
self.horizontalLayout.setObjectName("horizontalLayout") |
|
self.opengl_widget = QtWidgets.QOpenGLWidget(self.centralwidget) |
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) |
|
sizePolicy.setHorizontalStretch(0) |
|
sizePolicy.setVerticalStretch(0) |
|
sizePolicy.setHeightForWidth(self.opengl_widget.sizePolicy().hasHeightForWidth()) |
|
self.opengl_widget.setSizePolicy(sizePolicy) |
|
self.opengl_widget.setMaximumSize(QtCore.QSize(900, 16777215)) |
|
self.opengl_widget.setObjectName("opengl_widget") |
|
self.horizontalLayout.addWidget(self.opengl_widget) |
|
self.verticalLayout = QtWidgets.QVBoxLayout() |
|
self.verticalLayout.setObjectName("verticalLayout") |
|
self.groupBox = QtWidgets.QGroupBox(self.centralwidget) |
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Minimum) |
|
sizePolicy.setHorizontalStretch(0) |
|
sizePolicy.setVerticalStretch(0) |
|
sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) |
|
self.groupBox.setSizePolicy(sizePolicy) |
|
self.groupBox.setMinimumSize(QtCore.QSize(100, 0)) |
|
self.groupBox.setMaximumSize(QtCore.QSize(200, 200)) |
|
self.groupBox.setObjectName("groupBox") |
|
self.gridLayout = QtWidgets.QGridLayout(self.groupBox) |
|
self.gridLayout.setObjectName("gridLayout") |
|
self.point_list_widget = QtWidgets.QListWidget(self.groupBox) |
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
|
sizePolicy.setHorizontalStretch(0) |
|
sizePolicy.setVerticalStretch(0) |
|
sizePolicy.setHeightForWidth(self.point_list_widget.sizePolicy().hasHeightForWidth()) |
|
self.point_list_widget.setSizePolicy(sizePolicy) |
|
self.point_list_widget.setMinimumSize(QtCore.QSize(100, 0)) |
|
self.point_list_widget.setObjectName("point_list_widget") |
|
self.gridLayout.addWidget(self.point_list_widget, 0, 0, 1, 1) |
|
self.verticalLayout.addWidget(self.groupBox) |
|
self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget) |
|
self.groupBox_3.setObjectName("groupBox_3") |
|
self.formLayout = QtWidgets.QFormLayout(self.groupBox_3) |
|
self.formLayout.setObjectName("formLayout") |
|
self.label_2 = QtWidgets.QLabel(self.groupBox_3) |
|
self.label_2.setObjectName("label_2") |
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2) |
|
self.number_of_clusters = QtWidgets.QSpinBox(self.groupBox_3) |
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) |
|
sizePolicy.setHorizontalStretch(0) |
|
sizePolicy.setVerticalStretch(0) |
|
sizePolicy.setHeightForWidth(self.number_of_clusters.sizePolicy().hasHeightForWidth()) |
|
self.number_of_clusters.setSizePolicy(sizePolicy) |
|
self.number_of_clusters.setMinimumSize(QtCore.QSize(50, 26)) |
|
self.number_of_clusters.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
self.number_of_clusters.setObjectName("number_of_clusters") |
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.number_of_clusters) |
|
self.clustering_button = QtWidgets.QPushButton(self.groupBox_3) |
|
self.clustering_button.setEnabled(False) |
|
self.clustering_button.setObjectName("clustering_button") |
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.clustering_button) |
|
self.reset_button = QtWidgets.QPushButton(self.groupBox_3) |
|
self.reset_button.setObjectName("reset_button") |
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.reset_button) |
|
self.verticalLayout.addWidget(self.groupBox_3) |
|
spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) |
|
self.verticalLayout.addItem(spacerItem) |
|
self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget) |
|
self.groupBox_2.setObjectName("groupBox_2") |
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2) |
|
self.gridLayout_2.setObjectName("gridLayout_2") |
|
self.mouse_position_label = QtWidgets.QLabel(self.groupBox_2) |
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) |
|
sizePolicy.setHorizontalStretch(0) |
|
sizePolicy.setVerticalStretch(0) |
|
sizePolicy.setHeightForWidth(self.mouse_position_label.sizePolicy().hasHeightForWidth()) |
|
self.mouse_position_label.setSizePolicy(sizePolicy) |
|
self.mouse_position_label.setMinimumSize(QtCore.QSize(100, 0)) |
|
self.mouse_position_label.setText("") |
|
self.mouse_position_label.setObjectName("mouse_position_label") |
|
self.gridLayout_2.addWidget(self.mouse_position_label, 0, 3, 1, 1) |
|
spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
|
self.gridLayout_2.addItem(spacerItem1, 1, 0, 1, 1) |
|
self.label = QtWidgets.QLabel(self.groupBox_2) |
|
self.label.setObjectName("label") |
|
self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) |
|
spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) |
|
self.gridLayout_2.addItem(spacerItem2, 0, 2, 1, 1) |
|
self.verticalLayout.addWidget(self.groupBox_2) |
|
self.horizontalLayout.addLayout(self.verticalLayout) |
|
MainWindow.setCentralWidget(self.centralwidget) |
|
self.menubar = QtWidgets.QMenuBar(MainWindow) |
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 1280, 21)) |
|
self.menubar.setNativeMenuBar(True) |
|
self.menubar.setObjectName("menubar") |
|
self.menu_file = QtWidgets.QMenu(self.menubar) |
|
self.menu_file.setObjectName("menu_file") |
|
self.menu_help = QtWidgets.QMenu(self.menubar) |
|
self.menu_help.setObjectName("menu_help") |
|
MainWindow.setMenuBar(self.menubar) |
|
self.status_bar = QtWidgets.QStatusBar(MainWindow) |
|
self.status_bar.setObjectName("status_bar") |
|
MainWindow.setStatusBar(self.status_bar) |
|
self.tool_bar = QtWidgets.QToolBar(MainWindow) |
|
self.tool_bar.setMovable(False) |
|
self.tool_bar.setObjectName("tool_bar") |
|
MainWindow.addToolBar(QtCore.Qt.LeftToolBarArea, self.tool_bar) |
|
self.action_add_points = QtWidgets.QAction(MainWindow) |
|
self.action_add_points.setObjectName("action_add_points") |
|
self.action_edit_points = QtWidgets.QAction(MainWindow) |
|
self.action_edit_points.setObjectName("action_edit_points") |
|
self.action_delete_points = QtWidgets.QAction(MainWindow) |
|
self.action_delete_points.setObjectName("action_delete_points") |
|
self.action_solve = QtWidgets.QAction(MainWindow) |
|
self.action_solve.setObjectName("action_solve") |
|
self.action_move_points = QtWidgets.QAction(MainWindow) |
|
self.action_move_points.setObjectName("action_move_points") |
|
self.action_save_point_configuration = QtWidgets.QAction(MainWindow) |
|
self.action_save_point_configuration.setObjectName("action_save_point_configuration") |
|
self.action_load_point_configuration = QtWidgets.QAction(MainWindow) |
|
self.action_load_point_configuration.setObjectName("action_load_point_configuration") |
|
self.action_exit = QtWidgets.QAction(MainWindow) |
|
self.action_exit.setObjectName("action_exit") |
|
self.action_generate_random_points = QtWidgets.QAction(MainWindow) |
|
self.action_generate_random_points.setObjectName("action_generate_random_points") |
|
self.menu_file.addAction(self.action_load_point_configuration) |
|
self.menu_file.addAction(self.action_save_point_configuration) |
|
self.menu_file.addSeparator() |
|
self.menu_file.addAction(self.action_exit) |
|
self.menubar.addAction(self.menu_file.menuAction()) |
|
self.menubar.addAction(self.menu_help.menuAction()) |
|
self.tool_bar.addAction(self.action_generate_random_points) |
|
self.tool_bar.addAction(self.action_add_points) |
|
self.tool_bar.addAction(self.action_move_points) |
|
self.tool_bar.addAction(self.action_edit_points) |
|
self.tool_bar.addAction(self.action_delete_points) |
|
|
|
self.retranslateUi(MainWindow) |
|
QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
|
|
def retranslateUi(self, MainWindow): |
|
_translate = QtCore.QCoreApplication.translate |
|
MainWindow.setWindowTitle(_translate("MainWindow", "ClusterView2")) |
|
self.groupBox.setTitle(_translate("MainWindow", "Point List")) |
|
self.groupBox_3.setTitle(_translate("MainWindow", "Solver")) |
|
self.label_2.setText(_translate("MainWindow", "Clusters")) |
|
self.clustering_button.setText(_translate("MainWindow", "K-Means Clustering")) |
|
self.reset_button.setText(_translate("MainWindow", "Reset")) |
|
self.groupBox_2.setTitle(_translate("MainWindow", "Canvas Information")) |
|
self.label.setText(_translate("MainWindow", "Mouse Position:")) |
|
self.menu_file.setTitle(_translate("MainWindow", "File")) |
|
self.menu_help.setTitle(_translate("MainWindow", "Help")) |
|
self.tool_bar.setWindowTitle(_translate("MainWindow", "toolBar")) |
|
self.action_add_points.setText(_translate("MainWindow", "Add Points")) |
|
self.action_add_points.setToolTip(_translate("MainWindow", "Enables point adding mode.")) |
|
self.action_add_points.setShortcut(_translate("MainWindow", "Ctrl+A")) |
|
self.action_edit_points.setText(_translate("MainWindow", "Edit Points")) |
|
self.action_edit_points.setToolTip(_translate("MainWindow", "Enables point editing mode.")) |
|
self.action_edit_points.setShortcut(_translate("MainWindow", "Ctrl+E")) |
|
self.action_delete_points.setText(_translate("MainWindow", "Delete Points")) |
|
self.action_delete_points.setToolTip(_translate("MainWindow", "Enables point deletion mode.")) |
|
self.action_delete_points.setShortcut(_translate("MainWindow", "Ctrl+D")) |
|
self.action_solve.setText(_translate("MainWindow", "Solve")) |
|
self.action_solve.setToolTip(_translate("MainWindow", "Opens the solve dialog to choose a solving solution.")) |
|
self.action_solve.setShortcut(_translate("MainWindow", "Ctrl+S")) |
|
self.action_move_points.setText(_translate("MainWindow", "Move Points")) |
|
self.action_move_points.setToolTip(_translate("MainWindow", "Enables the movement of a selection of points.")) |
|
self.action_save_point_configuration.setText(_translate("MainWindow", "Save Point Configuration")) |
|
self.action_load_point_configuration.setText(_translate("MainWindow", "Load Point Configuration")) |
|
self.action_exit.setText(_translate("MainWindow", "Exit")) |
|
self.action_generate_random_points.setText(_translate("MainWindow", "Generate Random Points"))
|
|
|