From 9a30bd780580789a7649bb84301a6f7394e0c11e Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 24 May 2010 15:11:44 +0000 Subject: [PATCH] Use fixed size for the Wizard dialog. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3813 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 4 - wizard/BWizard.py | 1 + wizard/ui/bertos_versions.ui | 72 ++++++----- wizard/ui/board_select.ui | 41 ++++--- wizard/ui/cpu_select.ui | 83 +++++++++---- wizard/ui/dir_select.ui | 198 +++++++++++++++++-------------- wizard/ui/final_page.ui | 10 +- wizard/ui/module_select.ui | 21 ++-- wizard/ui/preset_page.ui | 11 +- wizard/ui/project_creation.ui | 8 +- wizard/ui/project_type_select.ui | 17 ++- wizard/ui/route_select.ui | 44 +++++-- wizard/ui/toolchain_search.ui | 88 +++++++------- wizard/ui/toolchain_select.ui | 13 +- 14 files changed, 369 insertions(+), 242 deletions(-) diff --git a/wizard/BProject.py b/wizard/BProject.py index 4564f79d..366e9a75 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -368,10 +368,6 @@ class BProject(object): # Copyt the new *_user.mk file self._writeUserMkFileFromPreset() - if self.infos["EMPTY_MAIN"]: - # Create and empty main.c file only if the user check the box - self._writeMainFile(self.prjdir + "/main.c") - # Create project files for selected plugins self._createProjectFiles() diff --git a/wizard/BWizard.py b/wizard/BWizard.py index 55f913d6..56d37943 100644 --- a/wizard/BWizard.py +++ b/wizard/BWizard.py @@ -60,6 +60,7 @@ class BWizard(QWizard): def __init__(self, page_list): QWizard.__init__(self) + self.setFixedSize(800, 500) self.setWindowTitle(self.tr("Create a BeRTOS project - rev.%1").arg(wizard_version)) self.setWindowIcon(QIcon(":/images/appicon.png")) self.setOption(QWizard.DisabledBackButtonOnLastPage, True) diff --git a/wizard/ui/bertos_versions.ui b/wizard/ui/bertos_versions.ui index 7336a614..59a10373 100644 --- a/wizard/ui/bertos_versions.ui +++ b/wizard/ui/bertos_versions.ui @@ -1,7 +1,8 @@ - + + Form - - + + 0 0 @@ -9,45 +10,52 @@ 371 - - + + 0 0 - + Form - + - + - + + + + 300 + 100 + + + - + - - + + 26 26 - + 26 26 - + + - - + + :/images/listadd.png:/images/listadd.png - + 16 16 @@ -56,27 +64,27 @@ - - + + 26 26 - + 26 26 - + - - - + + :/images/listremove.png:/images/listremove.png - + 16 16 @@ -85,11 +93,11 @@ - - + + Qt::Horizontal - + 40 20 @@ -98,20 +106,20 @@ - - + + 0 26 - + 16777215 26 - + Update @@ -123,7 +131,7 @@ - + diff --git a/wizard/ui/board_select.ui b/wizard/ui/board_select.ui index 99949531..70f02852 100644 --- a/wizard/ui/board_select.ui +++ b/wizard/ui/board_select.ui @@ -13,35 +13,44 @@ Form - + - + + + + 0 + 0 + + + + + 150 + 0 + + + + + 16777215 + 16777215 + + + - + - - - - - - Qt::Vertical - - - - 20 - 40 - + + true - + diff --git a/wizard/ui/cpu_select.ui b/wizard/ui/cpu_select.ui index 5d40d0aa..0b4fab05 100644 --- a/wizard/ui/cpu_select.ui +++ b/wizard/ui/cpu_select.ui @@ -6,8 +6,8 @@ 0 0 - 459 - 246 + 579 + 452 @@ -19,33 +19,57 @@ Form - + - - - Qt::Horizontal - - - - - 150 - 16777215 - - - - - - Select a CPU from the list... - - - + + + + + + 150 + 0 + + + + + 16777215 + 16777215 + + + + + + + + + + Select a CPU from the list... + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + - + - CPU frequency + CPU frequency: frequencySpinBox @@ -71,6 +95,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + diff --git a/wizard/ui/dir_select.ui b/wizard/ui/dir_select.ui index 6e60aab9..030ef286 100644 --- a/wizard/ui/dir_select.ui +++ b/wizard/ui/dir_select.ui @@ -6,8 +6,8 @@ 0 0 - 401 - 250 + 558 + 314 @@ -19,97 +19,95 @@ Form - + - - - - - - - Project Name - - - - - - - Destination directory - - - - + + + + + Project Name + + - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - - 26 - 26 - - - - - 26 - 26 - - - - - 26 - 26 - - - - - - - - :/images/folderopen.png:/images/folderopen.png - - - - 26 - 26 - - - - - - - + + + + + 300 + 0 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Destination directory + + + + + + + + 300 + 0 + + + + + + + + + 26 + 26 + + + + + 26 + 26 + + + + + 26 + 26 + + + + + + + + :/images/folderopen.png:/images/folderopen.png + + + + 26 + 26 + + + - + @@ -130,8 +128,34 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 159 + + + + diff --git a/wizard/ui/final_page.ui b/wizard/ui/final_page.ui index 5b59df9f..c3c554ff 100644 --- a/wizard/ui/final_page.ui +++ b/wizard/ui/final_page.ui @@ -6,16 +6,16 @@ 0 0 - 483 - 206 + 584 + 321 Form - + - + @@ -63,7 +63,7 @@ 0 0 - 455 + 556 76 diff --git a/wizard/ui/module_select.ui b/wizard/ui/module_select.ui index 6efa7741..54e4580c 100644 --- a/wizard/ui/module_select.ui +++ b/wizard/ui/module_select.ui @@ -19,28 +19,23 @@ Form - + - + - 175 + 150 0 - 175 + 16777215 16777215 - - - 1 - - @@ -80,7 +75,7 @@ dependecies - + @@ -90,6 +85,12 @@ dependecies + + + 200 + 0 + + QAbstractItemView::NoEditTriggers diff --git a/wizard/ui/preset_page.ui b/wizard/ui/preset_page.ui index 3418f120..a7c6c507 100644 --- a/wizard/ui/preset_page.ui +++ b/wizard/ui/preset_page.ui @@ -13,9 +13,16 @@ Form - + - + + + + 150 + 0 + + + diff --git a/wizard/ui/project_creation.ui b/wizard/ui/project_creation.ui index 19ffc2f6..af4f585b 100644 --- a/wizard/ui/project_creation.ui +++ b/wizard/ui/project_creation.ui @@ -15,13 +15,7 @@ - - - - 1 - - - + diff --git a/wizard/ui/project_type_select.ui b/wizard/ui/project_type_select.ui index be438c28..67c27beb 100644 --- a/wizard/ui/project_type_select.ui +++ b/wizard/ui/project_type_select.ui @@ -13,11 +13,11 @@ Form - + - Project type + @@ -40,6 +40,19 @@ + + + + Qt::Vertical + + + + 20 + 194 + + + + diff --git a/wizard/ui/route_select.ui b/wizard/ui/route_select.ui index 3c24bbe8..9dc6ec2e 100644 --- a/wizard/ui/route_select.ui +++ b/wizard/ui/route_select.ui @@ -13,23 +13,45 @@ Form - + - - - Base - - - true + + + + + + + + Base + + + true + + + + + + + Advanced + + + + - - - Advanced + + + Qt::Vertical - + + + 20 + 194 + + + diff --git a/wizard/ui/toolchain_search.ui b/wizard/ui/toolchain_search.ui index bb166502..eeb5af01 100644 --- a/wizard/ui/toolchain_search.ui +++ b/wizard/ui/toolchain_search.ui @@ -1,94 +1,102 @@ - + + Form - - + + 0 0 - 350 - 290 + 618 + 372 - + Form - + - - - + + + 0 0 - + Search in PATH - - + + Custom directories - + - + + + + 200 + 0 + + + - + - - + + 26 26 - + 26 26 - + - - + + :/images/listadd.png:/images/listadd.png - - + + 26 26 - + 26 26 - + - - + + :/images/listremove.png:/images/listremove.png - - + + Qt::Horizontal - + 40 20 @@ -102,13 +110,13 @@ - + - - + + Qt::Horizontal - + 40 20 @@ -117,15 +125,15 @@ - - + + Cancel - - + + Search @@ -135,7 +143,7 @@ - + diff --git a/wizard/ui/toolchain_select.ui b/wizard/ui/toolchain_select.ui index 50371804..b9223fee 100644 --- a/wizard/ui/toolchain_select.ui +++ b/wizard/ui/toolchain_select.ui @@ -6,8 +6,8 @@ 0 0 - 321 - 298 + 643 + 459 @@ -15,7 +15,14 @@ - + + + + 200 + 0 + + + -- 2.25.1