[QGIS Commit] r12238 - in trunk/qgis/src: app/composer ui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Nov 24 03:47:47 EST 2009
Author: mhugent
Date: 2009-11-24 03:47:33 -0500 (Tue, 24 Nov 2009)
New Revision: 12238
Modified:
trunk/qgis/src/app/composer/qgscomposerlabelwidget.cpp
trunk/qgis/src/app/composer/qgscomposershapewidget.cpp
trunk/qgis/src/ui/qgscomposershapewidgetbase.ui
Log:
Tool box for composer shape widget. Tab rename in label widget
Modified: trunk/qgis/src/app/composer/qgscomposerlabelwidget.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposerlabelwidget.cpp 2009-11-24 07:55:03 UTC (rev 12237)
+++ trunk/qgis/src/app/composer/qgscomposerlabelwidget.cpp 2009-11-24 08:47:33 UTC (rev 12238)
@@ -28,7 +28,7 @@
//add widget for general composer item properties
QgsComposerItemWidget* itemPropertiesWidget = new QgsComposerItemWidget( this, label );
- toolBox->addItem( itemPropertiesWidget, tr( "Item properties" ) );
+ toolBox->addItem( itemPropertiesWidget, tr( "General options" ) );
if ( mComposerLabel )
{
Modified: trunk/qgis/src/app/composer/qgscomposershapewidget.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposershapewidget.cpp 2009-11-24 07:55:03 UTC (rev 12237)
+++ trunk/qgis/src/app/composer/qgscomposershapewidget.cpp 2009-11-24 08:47:33 UTC (rev 12238)
@@ -23,8 +23,10 @@
QgsComposerShapeWidget::QgsComposerShapeWidget( QgsComposerShape* composerShape ): QWidget( 0 ), mComposerShape( composerShape )
{
setupUi( this );
+
+ //add widget for general composer item properties
QgsComposerItemWidget* itemPropertiesWidget = new QgsComposerItemWidget( this, composerShape );
- gridLayout->addWidget( itemPropertiesWidget, 6, 0, 1, 1 );
+ toolBox->addItem( itemPropertiesWidget, tr( "General options" ) );
blockAllSignals( true );
Modified: trunk/qgis/src/ui/qgscomposershapewidgetbase.ui
===================================================================
--- trunk/qgis/src/ui/qgscomposershapewidgetbase.ui 2009-11-24 07:55:03 UTC (rev 12237)
+++ trunk/qgis/src/ui/qgscomposershapewidgetbase.ui 2009-11-24 08:47:33 UTC (rev 12238)
@@ -6,55 +6,77 @@
<rect>
<x>0</x>
<y>0</y>
- <width>162</width>
- <height>193</height>
+ <width>219</width>
+ <height>236</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
- <layout class="QGridLayout" name="gridLayout">
+ <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
- <widget class="QComboBox" name="mShapeComboBox"/>
- </item>
- <item row="1" column="0">
- <widget class="QPushButton" name="mOutlineColorButton">
- <property name="text">
- <string>Shape outline color...</string>
+ <widget class="QToolBox" name="toolBox">
+ <property name="currentIndex">
+ <number>0</number>
</property>
+ <widget class="QWidget" name="Shape">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>201</width>
+ <height>192</height>
+ </rect>
+ </property>
+ <attribute name="label">
+ <string>Shape</string>
+ </attribute>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QComboBox" name="mShapeComboBox"/>
+ </item>
+ <item row="1" column="0">
+ <widget class="QPushButton" name="mOutlineColorButton">
+ <property name="text">
+ <string>Shape outline color...</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QDoubleSpinBox" name="mOutlineWidthSpinBox">
+ <property name="prefix">
+ <string>Outline width </string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QCheckBox" name="mTransparentCheckBox">
+ <property name="text">
+ <string>Transparent fill</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0">
+ <widget class="QPushButton" name="mFillColorButton">
+ <property name="text">
+ <string>Shape fill Color...</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="0">
+ <widget class="QSpinBox" name="mRotationSpinBox">
+ <property name="prefix">
+ <string comment="Rotation" extracomment="Rotation">Rotation </string>
+ </property>
+ <property name="maximum">
+ <number>359</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QDoubleSpinBox" name="mOutlineWidthSpinBox">
- <property name="prefix">
- <string>Outline width </string>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
- <widget class="QCheckBox" name="mTransparentCheckBox">
- <property name="text">
- <string>Transparent fill</string>
- </property>
- </widget>
- </item>
- <item row="4" column="0">
- <widget class="QPushButton" name="mFillColorButton">
- <property name="text">
- <string>Shape fill Color...</string>
- </property>
- </widget>
- </item>
- <item row="5" column="0">
- <widget class="QSpinBox" name="mRotationSpinBox">
- <property name="prefix">
- <string comment="Rotation" extracomment="Rotation">Rotation </string>
- </property>
- <property name="maximum">
- <number>359</number>
- </property>
- </widget>
- </item>
</layout>
</widget>
<resources/>
More information about the QGIS-commit
mailing list