Commit b5d73154 authored by Andi Fischer's avatar Andi Fischer
Browse files

Resizing of code generation wizard pages improved.

BUG: 300288
parent 7fd01670
......@@ -28,8 +28,6 @@
// qt includes
#include <QWizardPage>
const QSize CodeGenerationWizard::c_pageSize = QSize(520, 530);
/**
* Constructor. Sets up the wizard and loads the wizard pages.
* Each wizard page has its own class.
......@@ -64,7 +62,6 @@ QWizardPage* CodeGenerationWizard::createSelectionPage(UMLClassifierList *classL
{
m_SelectionPage = new CodeGenSelectPage(this);
m_SelectionPage->setClassifierList(classList);
m_SelectionPage->setFixedSize(c_pageSize);
return m_SelectionPage;
}
......@@ -76,7 +73,6 @@ QWizardPage* CodeGenerationWizard::createSelectionPage(UMLClassifierList *classL
QWizardPage* CodeGenerationWizard::createOptionsPage()
{
m_OptionsPage = new CodeGenOptionsPage(this);
m_OptionsPage->setFixedSize(c_pageSize);
return m_OptionsPage;
}
......@@ -88,7 +84,6 @@ QWizardPage* CodeGenerationWizard::createOptionsPage()
QWizardPage* CodeGenerationWizard::createStatusPage()
{
m_StatusPage = new CodeGenStatusPage(this);
m_StatusPage->setFixedSize(c_pageSize);
return m_StatusPage;
}
......
......@@ -49,7 +49,6 @@ private:
CodeGenOptionsPage *m_OptionsPage;
CodeGenStatusPage *m_StatusPage;
static const QSize c_pageSize;
};
#endif
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CodeGenSelectPage</class>
<widget class="QWidget" name="CodeGenSelectPage" >
<property name="geometry" >
<widget class="QWidget" name="CodeGenSelectPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>530</height>
<width>642</width>
<height>300</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<property name="windowTitle">
<string>Code Generation Selection</string>
</property>
<layout class="QVBoxLayout" >
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QHBoxLayout" >
<layout class="QHBoxLayout">
<item>
<layout class="QVBoxLayout" >
<property name="leftMargin" >
<layout class="QVBoxLayout">
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="ui_labelListAvailable" >
<property name="text" >
<widget class="QLabel" name="ui_labelListAvailable">
<property name="text">
<string>Classes Available</string>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="ui_listAvailable" >
<property name="alternatingRowColors" >
<widget class="QListWidget" name="ui_listAvailable">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode" >
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="sortingEnabled" >
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
......@@ -49,16 +50,16 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<layout class="QVBoxLayout">
<item>
<spacer>
<property name="orientation" >
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>71</height>
......@@ -67,27 +68,28 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="ui_addButton" >
<property name="toolTip" >
<widget class="QPushButton" name="ui_addButton">
<property name="toolTip">
<string>Add class for code generation</string>
</property>
<property name="text" >
<string>Add >></string>
<property name="text">
<string>Add &gt;&gt;</string>
</property>
<property name="icon" >
<iconset>../../../../../../../</iconset>
<property name="icon">
<iconset>
<normaloff>../../../../../../..</normaloff>../../../../../../..</iconset>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
......@@ -96,27 +98,28 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="ui_removeButton" >
<property name="toolTip" >
<widget class="QPushButton" name="ui_removeButton">
<property name="toolTip">
<string>Remove class from Code Generation</string>
</property>
<property name="text" >
<property name="text">
<string>&lt;&lt; Remove</string>
</property>
<property name="icon" >
<iconset>../../../../../../../</iconset>
<property name="icon">
<iconset>
<normaloff>../../../../../../..</normaloff>../../../../../../..</iconset>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>51</height>
......@@ -127,26 +130,26 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="leftMargin" >
<layout class="QVBoxLayout">
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="ui_labelListSelected" >
<property name="text" >
<widget class="QLabel" name="ui_labelListSelected">
<property name="text">
<string>Classes Selected</string>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="ui_listSelected" >
<property name="alternatingRowColors" >
<widget class="QListWidget" name="ui_listSelected">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode" >
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="sortingEnabled" >
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
......
......@@ -20,7 +20,7 @@
<item>
<widget class="KTabWidget" name="ui_tabWidget">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="ui_statusTab">
<attribute name="title">
......@@ -58,51 +58,45 @@
<attribute name="title">
<string>Logger</string>
</attribute>
<widget class="QWidget" name="verticalLayoutWidget_2">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>461</width>
<height>431</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTextEdit" name="ui_textEditLogger"/>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QPushButton" name="ui_pushButtonClear">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Clear</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="ui_pushButtonExport">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Export...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTextEdit" name="ui_textEditLogger"/>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QPushButton" name="ui_pushButtonClear">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Clear</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="ui_pushButtonExport">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Export...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment