mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-30 00:07:09 -04:00 
			
		
		
		
	- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id - rename methods with SRS to Crs - rename methods with abbreviations like "dest" to "destination" - rename methods with abbreviations like "src" to "source"
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /** Item representing a grid. This is drawn separately to the underlying paper item since the grid needs to be
 | |
|  * drawn above all other composer items, while the paper item is drawn below all others.*/
 | |
| class QgsPaperGrid : QGraphicsRectItem
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgspaperitem.h>
 | |
| %End
 | |
|   public:
 | |
|     QgsPaperGrid( double x, double y, double width, double height, QgsComposition* composition );
 | |
|     ~QgsPaperGrid();
 | |
| 
 | |
|     /** \brief Reimplementation of QCanvasItem::paint*/
 | |
|     void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
 | |
| 
 | |
| };
 | |
| 
 | |
| /** Item representing the paper.*/
 | |
| class QgsPaperItem : QgsComposerItem
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgspaperitem.h>
 | |
| %End
 | |
|   public:
 | |
|     QgsPaperItem( QgsComposition* c /TransferThis/ );
 | |
|     QgsPaperItem( qreal x, qreal y, qreal width, qreal height, QgsComposition* composition /TransferThis/ );
 | |
|     ~QgsPaperItem();
 | |
| 
 | |
|     /** Return correct graphics item type. */
 | |
|     virtual int type() const;
 | |
| 
 | |
|     /** \brief Reimplementation of QCanvasItem::paint*/
 | |
|     void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
 | |
| 
 | |
|     /** Stores state in Dom element
 | |
|        * @param elem is Dom element corresponding to 'Composer' tag
 | |
|        * @param doc Dom document
 | |
|        */
 | |
|     bool writeXml( QDomElement& elem, QDomDocument & doc ) const;
 | |
| 
 | |
|     /** Sets state from Dom document
 | |
|      * @param itemElem is Dom node corresponding to item tag
 | |
|      * @param doc is the Dom document
 | |
|      */
 | |
|     bool readXml( const QDomElement& itemElem, const QDomDocument& doc );
 | |
| 
 | |
|     virtual void setSceneRect( const QRectF& rectangle );
 | |
| 
 | |
|   private:
 | |
|     QgsPaperItem();
 | |
|     /** Set flags and z-value*/
 | |
|     void initialize();
 | |
| };
 |