Skip to content
Permalink
Browse files

Composermapwidget update

  • Loading branch information
mhugent committed May 17, 2011
1 parent 72b6cd1 commit c724ce5180c1a49cf50c7cc92b42acece7fc41c3
@@ -269,10 +269,12 @@ void QgsComposerMapWidget::updateGuiElements()
if ( previewMode == QgsComposerMap::Cache )
{
index = mPreviewModeComboBox->findText( tr( "Cache" ) );
mUpdatePreviewButton->setEnabled( true );
}
else if ( previewMode == QgsComposerMap::Render )
{
index = mPreviewModeComboBox->findText( tr( "Render" ) );
mUpdatePreviewButton->setEnabled( true );
}
else if ( previewMode == QgsComposerMap::Rectangle )
{
@@ -531,6 +531,12 @@ void QgsComposerMap::setNewScale( double scaleDenominator )
emit extentChanged();
}

void QgsComposerMap::setPreviewMode( PreviewMode m )
{
mPreviewMode = m;
emit itemChanged();
}

void QgsComposerMap::setOffset( double xOffset, double yOffset )
{
mXOffset = xOffset;
@@ -541,6 +547,7 @@ void QgsComposerMap::setMapRotation( double r )
{
setRotation( r );
emit rotationChanged( r );
emit itemChanged();
}

void QgsComposerMap::updateItem()
@@ -126,7 +126,7 @@ class CORE_EXPORT QgsComposerMap : public QgsComposerItem
void setNewExtent( const QgsRectangle& extent );

PreviewMode previewMode() const {return mPreviewMode;}
void setPreviewMode( PreviewMode m ) {mPreviewMode = m;}
void setPreviewMode( PreviewMode m );

/**Getter for flag that determines if the stored layer set should be used or the current layer set of the qgis mapcanvas
@note this function was added in version 1.2*/

0 comments on commit c724ce5

Please sign in to comment.
You can’t perform that action at this time.