~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to python/core/qgscomposerpicture.sip

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** \ingroup MapComposer
 
2
 * A composer class that displays svg files or raster format (jpg, png, ...)
 
3
 * */
 
4
class QgsComposerPicture: QgsComposerItem
 
5
{
 
6
 
 
7
%TypeHeaderCode
 
8
#include "qgscomposerpicture.h"
 
9
%End
 
10
 
 
11
  public:
 
12
    QgsComposerPicture( QgsComposition *composition /TransferThis/);
 
13
    ~QgsComposerPicture();
 
14
 
 
15
    /**Reimplementation of QCanvasItem::paint*/
 
16
    void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
 
17
 
 
18
    /**Sets the source file of the image (may be svg or a raster format)*/
 
19
    void setPictureFile( const QString& path );
 
20
    QString pictureFile() const;
 
21
 
 
22
    /**Sets this items bound in scene coordinates such that 1 item size units
 
23
       corresponds to 1 scene size unit*/
 
24
    void setSceneRect( const QRectF& rectangle );
 
25
 
 
26
    /** stores state in Dom node
 
27
       * @param node is Dom node corresponding to 'Composer' tag
 
28
       * @param temp write template file
 
29
       */
 
30
    bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
 
31
 
 
32
    /** sets state from Dom document
 
33
      * @param itemElem is Dom node corresponding to item tag
 
34
      */
 
35
    bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
 
36
 
 
37
    /**Sets the map object for rotation (by id). A value of -1 disables the map rotation*/
 
38
    void setRotationMap( int composerMapId );
 
39
    /**Returns the id of the rotation map*/
 
40
    int rotationMap() const;
 
41
    /**True if the rotation is taken from a map item*/
 
42
    bool useRotationMap() const;
 
43
 
 
44
    public slots:
 
45
    virtual void setRotation( double r );
 
46
 
 
47
 
 
48
  signals:
 
49
    /**Tell the configuration widget that the settings need to be updated*/
 
50
    void settingsChanged();
 
51
};