|
|
|
@ -61,21 +61,25 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|
|
|
|
self.__mode = Mode.ADD |
|
|
|
|
set_drawing_mode(self.__mode) |
|
|
|
|
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor)) |
|
|
|
|
self.status_bar.showMessage("ADD MODE") |
|
|
|
|
|
|
|
|
|
def __edit_points(self): |
|
|
|
|
self.__mode = Mode.EDIT |
|
|
|
|
set_drawing_mode(self.__mode) |
|
|
|
|
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor)) |
|
|
|
|
self.status_bar.showMessage("EDIT MODE") |
|
|
|
|
|
|
|
|
|
def __delete_points(self): |
|
|
|
|
self.__mode = Mode.DELETE |
|
|
|
|
set_drawing_mode(self.__mode) |
|
|
|
|
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.PointingHandCursor)) |
|
|
|
|
self.status_bar.showMessage("DELETE MODE") |
|
|
|
|
|
|
|
|
|
def __move_points(self): |
|
|
|
|
self.__mode = Mode.MOVE |
|
|
|
|
set_drawing_mode(self.__mode) |
|
|
|
|
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.SizeAllCursor)) |
|
|
|
|
self.status_bar.showMessage("MOVE MODE") |
|
|
|
|
|
|
|
|
|
@handle_exceptions |
|
|
|
|
def __solve_launcher(self): |
|
|
|
|