Skip to content

Commit

Permalink
[Atlas] Fix UI to be consistent with the use of QgsCollapsibleWidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Feb 22, 2013
1 parent eea57cf commit 34e6b9a
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 167 deletions.
21 changes: 18 additions & 3 deletions src/app/composer/qgsatlascompositionwidget.cpp
Expand Up @@ -85,12 +85,22 @@ void QgsAtlasCompositionWidget::on_mUseAtlasCheckBox_stateChanged( int state )
if ( state == Qt::Checked )
{
atlasMap->setEnabled( true );
mAtlasFrame->setEnabled( true );
mConfigurationGroup->setEnabled( true );
mVisibilityGroup->setEnabled( true );
mSortingGroup->setEnabled( true );
mFilteringGroup->setEnabled( true );
mScalingGroup->setEnabled( true );
mOutputGroup->setEnabled( true );
}
else
{
atlasMap->setEnabled( false );
mAtlasFrame->setEnabled( false );
mConfigurationGroup->setEnabled( false );
mVisibilityGroup->setEnabled( false );
mSortingGroup->setEnabled( false );
mFilteringGroup->setEnabled( false );
mScalingGroup->setEnabled( false );
mOutputGroup->setEnabled( false );
}
}

Expand Down Expand Up @@ -409,5 +419,10 @@ void QgsAtlasCompositionWidget::updateGuiElements()
void QgsAtlasCompositionWidget::blockAllSignals( bool b )
{
mUseAtlasCheckBox->blockSignals( b );
mAtlasFrame->blockSignals( b );
mConfigurationGroup->blockSignals( b );
mVisibilityGroup->blockSignals( b );
mSortingGroup->blockSignals( b );
mFilteringGroup->blockSignals( b );
mScalingGroup->blockSignals( b );
mOutputGroup->blockSignals( b );
}
1 change: 1 addition & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -320,6 +320,7 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
tabifyDockWidget( mGeneralDock, mUndoDock );
tabifyDockWidget( mItemDock, mUndoDock );
tabifyDockWidget( mGeneralDock, mItemDock );
tabifyDockWidget( mItemDock, mAtlasDock );

mGeneralDock->raise();

Expand Down

0 comments on commit 34e6b9a

Please sign in to comment.