Skip to content
Permalink
Browse files
wfs connection dialog: also hide pixmap transformation checkbox
ows source select: remove unused slot
  • Loading branch information
jef-n committed Jun 30, 2013
1 parent fe9b8d4 commit f76c9d053c0e792f17021074242bf641680c901d
Showing with 2 additions and 34 deletions.
  1. +2 −0 src/gui/qgsnewhttpconnection.cpp
  2. +0 −33 src/gui/qgsowssourceselect.cpp
  3. +0 −1 src/gui/qgsowssourceselect.h
@@ -75,9 +75,11 @@ QgsNewHttpConnection::QgsNewHttpConnection(
cbxIgnoreGetMapURI->setVisible( false );
cbxIgnoreAxisOrientation->setVisible( false );
cbxInvertAxisOrientation->setVisible( false );
cbxSmoothPixmapTransform->setVisible( false );
mGroupBox->layout()->removeWidget( cbxIgnoreGetMapURI );
mGroupBox->layout()->removeWidget( cbxIgnoreAxisOrientation );
mGroupBox->layout()->removeWidget( cbxInvertAxisOrientation );
mGroupBox->layout()->removeWidget( cbxSmoothPixmapTransform );
}

cbxIgnoreGetFeatureInfoURI->setVisible( false );
@@ -710,39 +710,6 @@ void QgsOWSSourceSelect::searchFinished()
r->deleteLater();
}

void QgsOWSSourceSelect::on_mAddWMSButton_clicked()
{
// TODO: deactivate button if dialog is open?
// TODO: remove from config on close?

int selectedRow = mSearchTableWidget->currentRow();
if ( selectedRow == -1 )
{
return;
}

QString wmsTitle = mSearchTableWidget->item( selectedRow, 0 )->text();
QString wmsUrl = mSearchTableWidget->item( selectedRow, 2 )->text();

QSettings settings;
if ( settings.contains( QString( "Qgis/connections-wms/%1/url" ).arg( wmsTitle ) ) )
{
QString msg = tr( "The %1 connection already exists. Do you want to overwrite it?" ).arg( wmsTitle );
QMessageBox::StandardButton result = QMessageBox::information( this, tr( "Confirm Overwrite" ), msg, QMessageBox::Ok | QMessageBox::Cancel );
if ( result != QMessageBox::Ok )
{
return;
}
}

// add selected WMS to config and mark as current
settings.setValue( QString( "Qgis/connections-wms/%1/url" ).arg( wmsTitle ), wmsUrl );
QgsOWSConnection::setSelectedConnection( mService, wmsTitle );
populateConnectionList();

mTabWidget->setCurrentIndex( 0 );
}

void QgsOWSSourceSelect::on_mSearchTableWidget_itemSelectionChanged()
{
mSearchAddButton->setEnabled( mSearchTableWidget->currentRow() != -1 );
@@ -244,7 +244,6 @@ class GUI_EXPORT QgsOWSSourceSelect : public QDialog, public Ui::QgsOWSSourceSel

private slots:
void on_mSearchButton_clicked();
void on_mAddWMSButton_clicked();
void on_mSearchTableWidget_itemSelectionChanged();
void on_mTilesetsTableWidget_itemClicked( QTableWidgetItem *item );
void on_mLayerUpButton_clicked();

0 comments on commit f76c9d0

Please sign in to comment.