[QGIS Commit] r9056 - in branches/advanced_printing_branch/src: app app/composer ui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Aug 13 09:00:03 EDT 2008


Author: mhugent
Date: 2008-08-13 09:00:01 -0400 (Wed, 13 Aug 2008)
New Revision: 9056

Added:
   branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.cpp
   branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.h
   branches/advanced_printing_branch/src/ui/qgscomposerpicturewidgetbase.ui
Removed:
   branches/advanced_printing_branch/src/ui/qgscomposerpicturebase.ui
Modified:
   branches/advanced_printing_branch/src/app/CMakeLists.txt
   branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp
   branches/advanced_printing_branch/src/app/composer/qgscomposer.h
   branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.cpp
   branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.h
   branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp
   branches/advanced_printing_branch/src/app/composer/qgscomposerview.h
   branches/advanced_printing_branch/src/ui/CMakeLists.txt
Log:
More composer picture staff

Modified: branches/advanced_printing_branch/src/app/CMakeLists.txt
===================================================================
--- branches/advanced_printing_branch/src/app/CMakeLists.txt	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/CMakeLists.txt	2008-08-13 13:00:01 UTC (rev 9056)
@@ -61,6 +61,7 @@
   composer/qgscomposerlabel.cpp
   composer/qgscomposerlabelwidget.cpp
   composer/qgscomposerpicture.cpp
+  composer/qgscomposerpicturewidget.cpp
   composer/qgscomposermap.cpp
   composer/qgscomposermapwidget.cpp
   composer/qgscomposerscalebar.cpp
@@ -74,7 +75,6 @@
   composer/qgsnumericscalebarstyle.cpp
   composer/qgssingleboxscalebarstyle.cpp
   composer/qgsticksscalebarstyle.cpp
-  #composer/qgscomposervectorlegend.cpp
   composer/qgscomposerview.cpp
   composer/qgscomposition.cpp
   composer/qgscompositionwidget.cpp
@@ -135,6 +135,7 @@
   composer/qgscomposerlegendwidget.h
   composer/qgscomposermap.h
   composer/qgscomposermapwidget.h
+  composer/qgscomposerpicturewidget.h
   composer/qgscomposerscalebar.h
   composer/qgscomposerscalebarwidget.h
   composer/qgscomposerview.h

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposer.cpp	2008-08-13 13:00:01 UTC (rev 9056)
@@ -27,6 +27,8 @@
 #include "qgscomposerlegendwidget.h"
 #include "qgscomposermap.h"
 #include "qgscomposermapwidget.h"
+#include "qgscomposerpicture.h"
+#include "qgscomposerpicturewidget.h"
 #include "qgscomposerscalebar.h"
 #include "qgscomposerscalebarwidget.h"
 #include "qgsexception.h"
@@ -117,6 +119,7 @@
   connect(mView, SIGNAL(itemRemoved(QgsComposerItem*)), this, SLOT(deleteItem(QgsComposerItem*)));
   connect(mView, SIGNAL(composerScaleBarAdded(QgsComposerScaleBar*)), this, SLOT(addComposerScaleBar(QgsComposerScaleBar*)));
   connect(mView, SIGNAL(composerLegendAdded(QgsComposerLegend*)), this, SLOT(addComposerLegend(QgsComposerLegend*)));
+  connect(mView, SIGNAL(composerPictureAdded(QgsComposerPicture*)), this, SLOT(addComposerPicture(QgsComposerPicture*)));
 
   mComposition  = new QgsComposition(mQgis->getMapCanvas());
   mView->setComposition(mComposition);
@@ -1318,6 +1321,17 @@
   mItemWidgetMap.insert(legend, lWidget);
 }
 
+void QgsComposer::addComposerPicture(QgsComposerPicture* picture)
+{
+  if(!picture)
+    {
+      return;
+    }
+
+  QgsComposerPictureWidget* pWidget = new QgsComposerPictureWidget(picture);
+  mItemWidgetMap.insert(picture, pWidget);
+}
+
 void QgsComposer::deleteItem(QgsComposerItem* item)
 {
   QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.find(item);

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposer.h
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposer.h	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposer.h	2008-08-13 13:00:01 UTC (rev 9056)
@@ -24,6 +24,7 @@
 class QgsComposerLabel;
 class QgsComposerLegend;
 class QgsComposerMap;
+class QgsComposerPicture;
 class QgsComposerScaleBar;
 class QgsComposerView;
 class QgsComposition;
@@ -171,6 +172,9 @@
     /**Adds a composer legend to the item/widget map and creates a configuration widget for it*/
     void addComposerLegend(QgsComposerLegend* legend);
 
+    /**Adds a composer picture to the item/widget map and creates a configuration widget*/
+    void addComposerPicture(QgsComposerPicture* picture);
+
     /**Removes item from the item/widget map and deletes the configuration widget*/
     void deleteItem(QgsComposerItem* item);
     

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.cpp	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.cpp	2008-08-13 13:00:01 UTC (rev 9056)
@@ -58,6 +58,10 @@
 	  updateImageFromSvg();
 	}
     }
+
+  painter->save();
+  painter->rotate(mRotation);
+
   if(mMode != UNKNOWN)
     {
       painter->drawImage(QRectF(0, 0, rect().width(), rect().height()), mImage, QRectF(0, 0, mImage.width(), mImage.height()));
@@ -69,6 +73,8 @@
     {
       drawSelectionBoxes(painter);
     }
+
+  painter->restore();
 }
 
 void QgsComposerPicture::setPictureFile(const QString& path)
@@ -131,6 +137,18 @@
   QgsComposerItem::setSceneRect(rectangle);
 }
 
+void QgsComposerPicture::setRotation(double rotation)
+{
+  if(rotation > 360)
+    {
+      mRotation = ((int)rotation) % 360;
+    }
+  else
+    {
+      mRotation = rotation;
+    }
+}
+
 bool QgsComposerPicture::writeXML(QDomElement& elem, QDomDocument & doc)
 {
   return false; //soon...

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.h
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.h	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerpicture.h	2008-08-13 13:00:01 UTC (rev 9056)
@@ -38,6 +38,10 @@
      corresponds to 1 scene size unit*/
   void setSceneRect(const QRectF& rectangle);
 
+  void setRotation(double rotation);
+
+  double rotation() const {return mRotation;}
+
   /** stores state in DOM node
      * @param node is DOM node corresponding to 'Composer' tag
      * @param temp write template file

Added: branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.cpp	                        (rev 0)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.cpp	2008-08-13 13:00:01 UTC (rev 9056)
@@ -0,0 +1,90 @@
+/***************************************************************************
+                         qgscomposerpicturewidget.cpp
+                         ----------------------------
+    begin                : August 13, 2008
+    copyright            : (C) 2008 by Marco Hugentobler
+    email                : marco dot hugentobler at karto dot baug dot ethz dot ch
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "qgscomposerpicturewidget.h"
+#include "qgscomposerpicture.h"
+#include <QFileDialog>
+#include <QFileInfo>
+#include <QMessageBox>
+
+QgsComposerPictureWidget::QgsComposerPictureWidget(QgsComposerPicture* picture): QWidget(), mPicture(picture)
+{
+  setupUi(this);
+}
+
+QgsComposerPictureWidget::~QgsComposerPictureWidget()
+{
+
+}
+
+void QgsComposerPictureWidget::on_mPictureBrowseButton_clicked()
+{
+  //show file dialog
+  QString filePath = QFileDialog::getOpenFileName(0, tr("Select svg/image file"));
+  if(filePath.isEmpty())
+    {
+      return;
+    }
+
+  //check if file exists
+  QFileInfo fileInfo(filePath);
+  if(!fileInfo.exists() || !fileInfo.isReadable())
+    {
+      QMessageBox::critical(0, "Invalid file", "Error, file does not exist or is not readable");
+      return;
+    }
+
+  mPictureLineEdit->blockSignals(true);
+  mPictureLineEdit->setText(filePath);
+  mPictureLineEdit->blockSignals(false);
+
+  //pass file path to QgsComposerPicture
+  if(mPicture)
+    {
+      mPicture->setPictureFile(filePath);
+      mPicture->update();
+    }
+}
+
+void QgsComposerPictureWidget::on_mPictureLineEdit_editingFinished()
+{
+  if(mPicture)
+    {
+      QString filePath = mPictureLineEdit->text();
+      
+      //check if file exists
+      QFileInfo fileInfo(filePath);
+      
+      if(!fileInfo.exists() || !fileInfo.isReadable())
+	{
+	  QMessageBox::critical(0, "Invalid file", "Error, file does not exist or is not readable");
+	  return;
+	}
+
+      mPicture->setPictureFile(filePath);
+      mPicture->update();
+    }
+}
+
+void QgsComposerPictureWidget::on_mRotationSpinBox_valueChanged(double d)
+{
+  if(mPicture)
+    {
+      mPicture->setRotation(d);
+      mPicture->update();
+    }
+}

Added: branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.h
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.h	                        (rev 0)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerpicturewidget.h	2008-08-13 13:00:01 UTC (rev 9056)
@@ -0,0 +1,42 @@
+/***************************************************************************
+                         qgscomposerpicturewidget.h
+                         --------------------------
+    begin                : August 13, 2008
+    copyright            : (C) 2008 by Marco Hugentobler
+    email                : marco dot hugentobler at karto dot baug dot ethz dot ch
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef QGSCOMPOSERPICTUREWIDGET_H
+#define QGSCOMPOSERPICTUREWIDGET_H
+
+#include "ui_qgscomposerpicturewidgetbase.h"
+
+class QgsComposerPicture;
+
+class QgsComposerPictureWidget: public QWidget, private Ui::QgsComposerPictureWidgetBase
+{
+  Q_OBJECT
+   
+ public:
+  QgsComposerPictureWidget(QgsComposerPicture* picture);
+  ~QgsComposerPictureWidget();
+
+ public slots:
+  void on_mPictureBrowseButton_clicked();
+  void on_mPictureLineEdit_editingFinished();
+  void on_mRotationSpinBox_valueChanged(double d);
+
+ private:
+  QgsComposerPicture* mPicture;
+};
+
+#endif

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerview.cpp	2008-08-13 13:00:01 UTC (rev 9056)
@@ -145,6 +145,7 @@
     {
       QgsComposerPicture* newPicture = new QgsComposerPicture(composition());
       scene()->addItem(newPicture);
+      emit composerPictureAdded(newPicture);
       scene()->clearSelection();
       newPicture->setZValue(60);
       newPicture->setSceneRect(QRectF(scenePoint.x(), scenePoint.y(), 30, 30));

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerview.h
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerview.h	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerview.h	2008-08-13 13:00:01 UTC (rev 9056)
@@ -27,6 +27,7 @@
 class QgsComposerLabel;
 class QgsComposerLegend;
 class QgsComposerMap;
+class QgsComposerPicture;
 class QgsComposerScaleBar;
 
 /**Widget to display the composer items. Manages the composer tools and the mouse/key events. 
@@ -99,6 +100,8 @@
   void composerScaleBarAdded(QgsComposerScaleBar* scalebar);
   /**Is emitted when a new composer legend has been added*/
   void composerLegendAdded(QgsComposerLegend* legend);
+  /**Is emitted when a new composer picture has been added*/
+  void composerPictureAdded(QgsComposerPicture* picture);
   /**Is emitted when a composer item has been removed from the scene*/
   void itemRemoved(QgsComposerItem*);
 };

Modified: branches/advanced_printing_branch/src/ui/CMakeLists.txt
===================================================================
--- branches/advanced_printing_branch/src/ui/CMakeLists.txt	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/ui/CMakeLists.txt	2008-08-13 13:00:01 UTC (rev 9056)
@@ -11,7 +11,7 @@
   qgscomposerlegenditemdialogbase.ui
   qgscomposerlegendwidgetbase.ui
   qgscomposermapwidgetbase.ui
-  qgscomposerpicturebase.ui
+  qgscomposerpicturewidgetbase.ui
   qgscomposerscalebarwidgetbase.ui
   qgscomposervectorlegendbase.ui
   qgscompositionbase.ui

Deleted: branches/advanced_printing_branch/src/ui/qgscomposerpicturebase.ui
===================================================================
--- branches/advanced_printing_branch/src/ui/qgscomposerpicturebase.ui	2008-08-13 11:28:36 UTC (rev 9055)
+++ branches/advanced_printing_branch/src/ui/qgscomposerpicturebase.ui	2008-08-13 13:00:01 UTC (rev 9056)
@@ -1,157 +0,0 @@
-<ui version="4.0" >
- <class>QgsComposerPictureWidgetBase</class>
- <widget class="QWidget" name="QgsComposerPictureWidgetBase" >
-  <property name="geometry" >
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>225</width>
-    <height>419</height>
-   </rect>
-  </property>
-  <property name="sizePolicy" >
-   <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
-    <horstretch>0</horstretch>
-    <verstretch>0</verstretch>
-   </sizepolicy>
-  </property>
-  <property name="windowTitle" >
-   <string>Picture Options</string>
-  </property>
-  <layout class="QGridLayout" >
-   <item row="0" column="0" >
-    <layout class="QHBoxLayout" >
-     <property name="spacing" >
-      <number>6</number>
-     </property>
-     <property name="leftMargin" >
-      <number>0</number>
-     </property>
-     <property name="topMargin" >
-      <number>0</number>
-     </property>
-     <property name="rightMargin" >
-      <number>0</number>
-     </property>
-     <property name="bottomMargin" >
-      <number>0</number>
-     </property>
-     <item>
-      <widget class="QLineEdit" name="mPictureLineEdit" />
-     </item>
-     <item>
-      <widget class="QPushButton" name="mPictureBrowseButton" >
-       <property name="sizePolicy" >
-        <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="maximumSize" >
-        <size>
-         <width>150</width>
-         <height>32767</height>
-        </size>
-       </property>
-       <property name="text" >
-        <string>Browse...</string>
-       </property>
-      </widget>
-     </item>
-    </layout>
-   </item>
-   <item row="1" column="0" >
-    <layout class="QGridLayout" >
-     <item row="0" column="0" >
-      <widget class="QLabel" name="textLabel3" >
-       <property name="sizePolicy" >
-        <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="text" >
-        <string>Width</string>
-       </property>
-       <property name="wordWrap" >
-        <bool>true</bool>
-       </property>
-      </widget>
-     </item>
-     <item row="0" column="1" >
-      <widget class="QDoubleSpinBox" name="mWidthSpinBox" />
-     </item>
-     <item row="1" column="0" >
-      <widget class="QLabel" name="textLabel4" >
-       <property name="sizePolicy" >
-        <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="text" >
-        <string>Height</string>
-       </property>
-       <property name="wordWrap" >
-        <bool>true</bool>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="1" >
-      <widget class="QDoubleSpinBox" name="mHeightSpinBox" />
-     </item>
-     <item row="2" column="0" >
-      <widget class="QLabel" name="mRotationLabel" >
-       <property name="sizePolicy" >
-        <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
-         <horstretch>0</horstretch>
-         <verstretch>0</verstretch>
-        </sizepolicy>
-       </property>
-       <property name="text" >
-        <string>Rotation</string>
-       </property>
-       <property name="wordWrap" >
-        <bool>true</bool>
-       </property>
-      </widget>
-     </item>
-     <item row="2" column="1" >
-      <widget class="QDoubleSpinBox" name="mRotationSpinBox" />
-     </item>
-    </layout>
-   </item>
-   <item row="2" column="0" >
-    <widget class="QCheckBox" name="mFrameCheckBox" >
-     <property name="text" >
-      <string>Frame</string>
-     </property>
-    </widget>
-   </item>
-   <item row="3" column="0" >
-    <spacer>
-     <property name="orientation" >
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeType" >
-      <enum>QSizePolicy::Expanding</enum>
-     </property>
-     <property name="sizeHint" >
-      <size>
-       <width>22</width>
-       <height>73</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-  </layout>
- </widget>
- <layoutdefault spacing="6" margin="11" />
- <tabstops>
-  <tabstop>mPictureBrowseButton</tabstop>
-  <tabstop>mPictureLineEdit</tabstop>
-  <tabstop>mFrameCheckBox</tabstop>
- </tabstops>
- <resources/>
- <connections/>
-</ui>

Copied: branches/advanced_printing_branch/src/ui/qgscomposerpicturewidgetbase.ui (from rev 9055, branches/advanced_printing_branch/src/ui/qgscomposerpicturebase.ui)
===================================================================
--- branches/advanced_printing_branch/src/ui/qgscomposerpicturewidgetbase.ui	                        (rev 0)
+++ branches/advanced_printing_branch/src/ui/qgscomposerpicturewidgetbase.ui	2008-08-13 13:00:01 UTC (rev 9056)
@@ -0,0 +1,157 @@
+<ui version="4.0" >
+ <class>QgsComposerPictureWidgetBase</class>
+ <widget class="QWidget" name="QgsComposerPictureWidgetBase" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>274</width>
+    <height>419</height>
+   </rect>
+  </property>
+  <property name="sizePolicy" >
+   <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
+  <property name="windowTitle" >
+   <string>Picture Options</string>
+  </property>
+  <layout class="QGridLayout" >
+   <item row="0" column="0" >
+    <layout class="QHBoxLayout" >
+     <property name="spacing" >
+      <number>6</number>
+     </property>
+     <property name="leftMargin" >
+      <number>0</number>
+     </property>
+     <property name="topMargin" >
+      <number>0</number>
+     </property>
+     <property name="rightMargin" >
+      <number>0</number>
+     </property>
+     <property name="bottomMargin" >
+      <number>0</number>
+     </property>
+     <item>
+      <widget class="QLineEdit" name="mPictureLineEdit" />
+     </item>
+     <item>
+      <widget class="QPushButton" name="mPictureBrowseButton" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="maximumSize" >
+        <size>
+         <width>150</width>
+         <height>32767</height>
+        </size>
+       </property>
+       <property name="text" >
+        <string>Browse...</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item row="1" column="0" >
+    <layout class="QGridLayout" >
+     <item row="0" column="0" >
+      <widget class="QLabel" name="textLabel3" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text" >
+        <string>Width:</string>
+       </property>
+       <property name="wordWrap" >
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item row="0" column="1" colspan="2" >
+      <widget class="QLineEdit" name="mWidthLineEdit" />
+     </item>
+     <item row="1" column="0" >
+      <widget class="QLabel" name="textLabel4" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text" >
+        <string>Height:</string>
+       </property>
+       <property name="wordWrap" >
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="1" colspan="2" >
+      <widget class="QLineEdit" name="mHeightLineEdit" />
+     </item>
+     <item row="2" column="0" colspan="2" >
+      <widget class="QLabel" name="mRotationLabel" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text" >
+        <string>Rotation:</string>
+       </property>
+       <property name="wordWrap" >
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item row="2" column="2" >
+      <widget class="QDoubleSpinBox" name="mRotationSpinBox" />
+     </item>
+    </layout>
+   </item>
+   <item row="2" column="0" >
+    <widget class="QCheckBox" name="mFrameCheckBox" >
+     <property name="text" >
+      <string>Frame</string>
+     </property>
+    </widget>
+   </item>
+   <item row="3" column="0" >
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType" >
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>22</width>
+       <height>73</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <tabstops>
+  <tabstop>mPictureBrowseButton</tabstop>
+  <tabstop>mPictureLineEdit</tabstop>
+  <tabstop>mFrameCheckBox</tabstop>
+ </tabstops>
+ <resources/>
+ <connections/>
+</ui>



More information about the QGIS-commit mailing list