|
61 | 61 | bool QgsGrassNewMapset::mRunning = false;
|
62 | 62 |
|
63 | 63 | QgsGrassNewMapset::QgsGrassNewMapset ( QgisApp *qgisApp, QgisIface *iface,
|
64 |
| - QgsGrassPlugin *plugin, |
65 |
| - QWidget * parent, const char * name, Qt::WFlags f ) |
66 |
| -//:QgsGrassNewMapsetBase ( parent, name) //XXX removed Wflags f from this call to the base class constructor |
67 |
| -//Tim moved all parms during qt4 port - FIXME |
68 |
| -:QgsGrassNewMapsetBase ( ) //XXX removed Wflags f from this call to the base class constructor |
| 64 | + QgsGrassPlugin *plugin, QWidget * parent, |
| 65 | + const char * name, Qt::WFlags f ): |
| 66 | + Q3Wizard(parent, name, false, f), |
| 67 | + QgsGrassNewMapsetBase ( ) |
69 | 68 | {
|
70 | 69 | #ifdef QGISDEBUG
|
71 | 70 | std::cerr << "QgsGrassNewMapset()" << std::endl;
|
@@ -471,9 +470,9 @@ void QgsGrassNewMapset::setGrassProjection()
|
471 | 470 | #endif
|
472 | 471 | // Note: GPJ_osr_to_grass() defaults in PROJECTION_XY if projection
|
473 | 472 | // cannot be set
|
474 |
| - // TODO: necessity of (void **)hSRS is maybe bug in GRASS library? |
| 473 | + |
475 | 474 | int ret = GPJ_osr_to_grass ( &mCellHead, &mProjInfo, &mProjUnits,
|
476 |
| - (void **)hSRS, 0); |
| 475 | + &hSRS, 0); |
477 | 476 |
|
478 | 477 | // Note: I seems that GPJ_osr_to_grass()returns always 1,
|
479 | 478 | // -> test if mProjInfo was set
|
@@ -1480,13 +1479,8 @@ void QgsGrassNewMapset::pageSelected( const QString & title )
|
1480 | 1479 |
|
1481 | 1480 | mProjectionSelector->show();
|
1482 | 1481 |
|
1483 |
| - // Warning: QgsProjectionSelector::sridSelected() is not implemented! |
1484 |
| - // -> use lstCoordinateSystems directly |
1485 | 1482 | connect( mProjectionSelector, SIGNAL(sridSelected(QString)),
|
1486 | 1483 | this, SLOT(sridSelected(QString)));
|
1487 |
| - //connect( mProjectionSelector->lstCoordinateSystems, SIGNAL(selectionChanged ()), |
1488 |
| - // this, SLOT(projectionSelected())); |
1489 |
| - |
1490 | 1484 |
|
1491 | 1485 | // Se current QGIS projection
|
1492 | 1486 | int srsid = QgsProject::instance()->readNumEntry(
|
|
0 commit comments