@@ -5095,37 +5095,6 @@ void QgisApp::addDatabaseLayers( QStringList const &layerPathList, QString const
5095
5095
QApplication::restoreOverrideCursor();
5096
5096
}
5097
5097
5098
-
5099
- void QgisApp::addSpatiaLiteLayer()
5100
- {
5101
- // show the SpatiaLite dialog
5102
- QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "spatialite" ), this ) );
5103
- if ( !dbs )
5104
- {
5105
- QMessageBox::warning( this, tr( "Add SpatiaLite Layer" ), tr( "Cannot get SpatiaLite select dialog from provider." ) );
5106
- return;
5107
- }
5108
- connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5109
- this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5110
- dbs->exec();
5111
- delete dbs;
5112
- } // QgisApp::addSpatiaLiteLayer()
5113
-
5114
- void QgisApp::addDelimitedTextLayer()
5115
- {
5116
- // show the Delimited text dialog
5117
- QDialog *dts = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "delimitedtext" ), this ) );
5118
- if ( !dts )
5119
- {
5120
- QMessageBox::warning( this, tr( "Add Delimited Text Layer" ), tr( "Cannot get Delimited Text select dialog from provider." ) );
5121
- return;
5122
- }
5123
- connect( dts, SIGNAL( addVectorLayer( QString, QString, QString ) ),
5124
- this, SLOT( addSelectedVectorLayer( QString, QString, QString ) ) );
5125
- dts->exec();
5126
- delete dts;
5127
- } // QgisApp::addDelimitedTextLayer()
5128
-
5129
5098
void QgisApp::addVirtualLayer()
5130
5099
{
5131
5100
// show the Delimited text dialog
@@ -5167,59 +5136,6 @@ void QgisApp::replaceSelectedVectorLayer( const QString &oldId, const QString &u
5167
5136
QgsProject::instance()->removeMapLayer( oldLayer );
5168
5137
} // QgisApp:replaceSelectedVectorLayer
5169
5138
5170
- void QgisApp::addMssqlLayer()
5171
- {
5172
- // show the MSSQL dialog
5173
- QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "mssql" ), this ) );
5174
- if ( !dbs )
5175
- {
5176
- QMessageBox::warning( this, tr( "Add MSSQL Layer" ), tr( "Cannot get MSSQL select dialog from provider." ) );
5177
- return;
5178
- }
5179
- connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5180
- this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5181
- dbs->exec();
5182
- delete dbs;
5183
- } // QgisApp::addMssqlLayer()
5184
-
5185
- void QgisApp::addDb2Layer()
5186
- {
5187
- // show the DB2 dialog
5188
- QgsDebugMsg( "Show dialog for DB2 " );
5189
- QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( QStringLiteral( "DB2" ), this ) );
5190
- if ( !dbs )
5191
- {
5192
- QMessageBox::warning( this, tr( "Add DB2 Layer" ), tr( "Cannot get DB2 select dialog from provider." ) );
5193
- return;
5194
- }
5195
- connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5196
- this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5197
- dbs->exec();
5198
- delete dbs;
5199
- } // QgisApp::addDb2Layer()
5200
-
5201
- void QgisApp::addOracleLayer()
5202
- {
5203
- #ifdef HAVE_ORACLE
5204
- // show the Oracle dialog
5205
- QDialog *dbs = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( "oracle", this ) );
5206
- if ( !dbs )
5207
- {
5208
- QMessageBox::warning( this, tr( "Add Oracle Layer" ), tr( "Cannot get Oracle select dialog from provider." ) );
5209
- return;
5210
- }
5211
- connect( dbs, SIGNAL( addDatabaseLayers( QStringList const &, QString const & ) ),
5212
- this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
5213
- connect( dbs, SIGNAL( progress( int, int ) ),
5214
- this, SLOT( showProgress( int, int ) ) );
5215
- connect( dbs, SIGNAL( progressMessage( QString ) ),
5216
- this, SLOT( showStatusMessage( QString ) ) );
5217
- dbs->exec();
5218
- delete dbs;
5219
- #endif
5220
- } // QgisApp::addOracleLayer()
5221
-
5222
-
5223
5139
void QgisApp::fileExit()
5224
5140
{
5225
5141
if ( QgsApplication::taskManager()->countActiveTasks() > 0 )
0 commit comments