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