Skip to content
Permalink
Browse files

Added colorramps to the select by group export

This completes the fix #11681
  • Loading branch information
elpaso committed Oct 29, 2015
1 parent bcb7e44 commit d24f40c91622cbabf39ecb8ac0d74068426b5ee6
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/gui/symbology-ng/qgsstylev2exportimportdialog.cpp
@@ -106,7 +106,6 @@ QgsStyleV2ExportImportDialog::QgsStyleV2ExportImportDialog( QgsStyleV2* style, Q
}

}

// use Ok button for starting import and export operations
disconnect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( doExportImport() ) );
@@ -393,7 +392,6 @@ void QgsStyleV2ExportImportDialog::clearSelection()
listItems->clearSelection();
}


void QgsStyleV2ExportImportDialog::selectSymbols( const QStringList symbolNames )
{
foreach ( QString symbolName, symbolNames )
@@ -406,7 +404,6 @@ void QgsStyleV2ExportImportDialog::selectSymbols( const QStringList symbolNames
}
}


void QgsStyleV2ExportImportDialog::deselectSymbols( const QStringList symbolNames )
{
foreach ( QString symbolName, symbolNames )
@@ -424,30 +421,35 @@ void QgsStyleV2ExportImportDialog::selectGroup( const QString groupName )
{
QStringList symbolNames = mQgisStyle->symbolsOfGroup( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle->groupId( groupName ) );
selectSymbols( symbolNames );
symbolNames = mQgisStyle->symbolsOfGroup( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle->groupId( groupName ) );
selectSymbols( symbolNames );
}


void QgsStyleV2ExportImportDialog::deselectGroup( const QString groupName )
{
QStringList symbolNames = mQgisStyle->symbolsOfGroup( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle->groupId( groupName ) );
deselectSymbols( symbolNames );
symbolNames = mQgisStyle->symbolsOfGroup( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle->groupId( groupName ) );
deselectSymbols( symbolNames );
}


void QgsStyleV2ExportImportDialog::selectSmartgroup( const QString groupName )
{
QStringList symbolNames = mQgisStyle->symbolsOfSmartgroup( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle->smartgroupId( groupName ) );
selectSymbols( symbolNames );
symbolNames = mQgisStyle->symbolsOfSmartgroup( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle->smartgroupId( groupName ) );
selectSymbols( symbolNames );
}


void QgsStyleV2ExportImportDialog::deselectSmartgroup( const QString groupName )
{
QStringList symbolNames = mQgisStyle->symbolsOfSmartgroup( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle->smartgroupId( groupName ) );
deselectSymbols( symbolNames );
symbolNames = mQgisStyle->symbolsOfSmartgroup( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle->smartgroupId( groupName ) );
deselectSymbols( symbolNames );
}


void QgsStyleV2ExportImportDialog::selectByGroup( )
{
if ( ! mGroupSelectionDlg )
@@ -466,7 +468,6 @@ void QgsStyleV2ExportImportDialog::selectByGroup( )
mGroupSelectionDlg->activateWindow();
}


void QgsStyleV2ExportImportDialog::importTypeChanged( int index )
{
QString type = importTypeCombo->itemData( index ).toString();

0 comments on commit d24f40c

Please sign in to comment.