From f67d2690706588338a4f9ae6ff9f5dbbc8e85d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Carrillo?= Date: Wed, 17 Apr 2024 14:23:26 +0200 Subject: [PATCH] [gui] Switch tab order (Edit tab first and Copy tab second) --- pg_service_parser/gui/dlg_pg_service.py | 5 +- pg_service_parser/ui/pg_service_dialog.ui | 176 +++++++++++----------- 2 files changed, 91 insertions(+), 90 deletions(-) diff --git a/pg_service_parser/gui/dlg_pg_service.py b/pg_service_parser/gui/dlg_pg_service.py index ae62a86..dacd738 100644 --- a/pg_service_parser/gui/dlg_pg_service.py +++ b/pg_service_parser/gui/dlg_pg_service.py @@ -13,8 +13,8 @@ from pg_service_parser.utils import get_ui_class DIALOG_UI = get_ui_class("pg_service_dialog.ui") -COPY_TAB_INDEX = 0 -EDIT_TAB_INDEX = 1 +EDIT_TAB_INDEX = 0 +COPY_TAB_INDEX = 1 class PgServiceDialog(QDialog, DIALOG_UI): @@ -45,6 +45,7 @@ def __init__(self, parent): self.cboEditService.currentIndexChanged.connect(self.__edit_service_changed) self.btnUpdateService.clicked.connect(self.__update_service_clicked) + self.__initialize_edit_services() self.__initialize_copy_services() self.__update_target_controls(True) diff --git a/pg_service_parser/ui/pg_service_dialog.ui b/pg_service_parser/ui/pg_service_dialog.ui index 5f3b429..cc7878f 100644 --- a/pg_service_parser/ui/pg_service_dialog.ui +++ b/pg_service_parser/ui/pg_service_dialog.ui @@ -77,94 +77,6 @@ 0 - - - Copy - - - - - - QLayout::SetDefaultConstraint - - - - - - 0 - 0 - - - - false - - - - - - - Overwrite - - - true - - - - - - - Create new - - - - - - - - 0 - 0 - - - - - - - - New service name - - - false - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Copy service - - - - - - - Edit @@ -258,6 +170,94 @@ + + + Copy + + + + + + QLayout::SetDefaultConstraint + + + + + + 0 + 0 + + + + false + + + + + + + Overwrite + + + true + + + + + + + Create new + + + + + + + + 0 + 0 + + + + + + + + New service name + + + false + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Copy service + + + + + + +